0
0

Hi,

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?

I have searched the forum and found something similar as in the following:
http://52.88.2.202/forum/viewtopic.php … ata+record
http://52.88.2.202/forum/viewtopic.php … ata+record

However I am new to FMOD, so the topics above didn’t really help me every much… 😮

Thanks a lot.

Ningfeng

  • You must to post comments
0
0

Play the recorded sound immediately after system->recordStart(). Because you have a channel now you can use channel->getWaveData().

  • You must to post comments
0
0

The recorded track sounds like doubled, which is what had happened as in this post:

http://52.88.2.202/forum/viewtopic.php … ata+record

Any other input?

Thank you anyway.

Ningfeng

  • You must to post comments
0
0

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".

  • You must to post comments
0
0

We will look into this.

Ningfeng

  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.