I’ve got a member function something like this
FMOD_RESULT Musicplayer::PlayTrack(FMOD::Channel* chan)
result = AudioSystem::GetInstance()->mpSoundSystem->playSound(FMOD_CHANNEL_REUSE, m_sound, false, &chan);
result = AudioSystem::GetInstance()->mpSoundSystem->createChannelGroup("music", &m_channelgroup);
MY_ASSERT(result == FMOD_OK,"FMOD Could not create a Channel Groupo! \n");
result = chan->setChannelGroup(m_channelgroup);
MY_ASSERT(result == FMOD_OK,"FMOD Could not assign the Music Channel! \n");
result = m_channelgroup->addDSP(dsplowpass);
MY_ASSERT(result == FMOD_OK,"FMOD Could not assign DSP to this Channel! \n");
This seems to work fine with a single channel but I’m trying to call it using an array of channels, I was using an array because I want to crossfade 2 music streams using setVolume for each channel. Is there a simpler way to do it or am I missing something blatantly obvious?
- carsonfee asked 10 years ago
I think I realized the obvious bit, I should have been specifying the channel index instead of using the priority system. I just use chan 0 and 1. One other thought, does Channel::stop remove a channel from the channel group? I don’t see any example code using channel groups.(seelazy engineer should write his own damn test app ) 😀
- carsonfee answered 10 years ago
Please login first to submit.