FMOD ChannelGroup getNumChannels always 0

Hi guys, my goal is to create an Audio Visualizer and the music have several tracks.I want to add a DSP to every track.
When i call:

int channelNumber = 0;
RuntimeManager.CoreSystem.getChannelsPlaying(out channelNumber);

the channelNumber is absolutely correct.but when i call:

ChannelGroup channelGroup;
RuntimeManager.CoreSystem.getMasterChannelGroup(out channelGroup);

int channelNumber = 0;
channelGroup.getNumChannels(out channelNumber);

the channelNumber is 0.How can i get each channel to add a DSP?

Each of the FMOD functions will return an FMOD.RESULT which may help you find the cause.

Thanks!!That helps a lot!

1 Like