@@ -524,7 +524,7 @@ namespace RTE {
524
524
FMOD::ChannelGroup *channelGroupToPlayIn = soundContainer->IsImmobile () ? m_ImmobileSoundChannelGroup : m_MobileSoundChannelGroup;
525
525
FMOD::Channel *channel;
526
526
int channelIndex;
527
- for (SoundContainer::SoundData soundData : soundContainer->GetSelectedSoundSet ()) {
527
+ for (SoundContainer::SoundData soundData : soundContainer->GetFlattenedSelectedSoundSet ()) {
528
528
result = (result == FMOD_OK) ? m_AudioSystem->playSound (soundData.SoundObject , channelGroupToPlayIn, true , &channel) : result;
529
529
result = (result == FMOD_OK) ? channel->getIndex (&channelIndex) : result;
530
530
@@ -562,7 +562,7 @@ namespace RTE {
562
562
563
563
// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
564
564
565
- bool AudioMan::ChangeSoundContainerPlayingChannelsPosition (SoundContainer *soundContainer) {
565
+ bool AudioMan::ChangeSoundContainerPlayingChannelsPosition (const SoundContainer *soundContainer) {
566
566
if (!m_AudioEnabled || !soundContainer) {
567
567
return false ;
568
568
}
@@ -589,7 +589,7 @@ namespace RTE {
589
589
590
590
// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
591
591
592
- bool AudioMan::ChangeSoundContainerPlayingChannelsVolume (SoundContainer *soundContainer, float newVolume) {
592
+ bool AudioMan::ChangeSoundContainerPlayingChannelsVolume (const SoundContainer *soundContainer, float newVolume) {
593
593
if (!m_AudioEnabled || !soundContainer || !soundContainer->IsBeingPlayed ()) {
594
594
return false ;
595
595
}
@@ -621,7 +621,7 @@ namespace RTE {
621
621
622
622
// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
623
623
624
- bool AudioMan::ChangeSoundContainerPlayingChannelsPitch (SoundContainer *soundContainer) {
624
+ bool AudioMan::ChangeSoundContainerPlayingChannelsPitch (const SoundContainer *soundContainer) {
625
625
if (!m_AudioEnabled || !soundContainer || !soundContainer->IsBeingPlayed ()) {
626
626
return false ;
627
627
}
0 commit comments