I am working on a FMOD related project(using Java though). However we didn’t start this from scratch but based on some existing code, which is good.
Now the client is asking adding new features, one of them is to implement a VU meter for the track which is being recorded.
We can see how the VU meter works for a track in playback: when the track plays, there is a thread periodically invokes the Channel.getWaveData to get the current volume measure(a float) so we can display this value visually as in VU meter.
But during recording, we need a sound object but no channel object. How are we supposed to use this channel.getWaveData to get desired volume measure back? Is there any workaround or just mission impossible?
However I am new to FMOD, so the topics above didn’t really help me every much… 😮
Thanks a lot.
- nfxu asked 8 years ago
According to this post channel->getWaveData() does not work when volume is set to 0 because it is the final output of the channel with volume applied. Maybe you could create a custom dsp and add it to the channel, then play the channel and in the dspcallback extract the wavedata and use channel->setVolume(0.0f) to silence the output so you don’t get this "double effect".
Please login first to submit.