0
0

How can I prevent a channel/channel group from being heard and still use getWaveData? For example I am recording a sound and using a timer calling getWaveData. I don’t want this particular channel to be heard but if I use channel->setVolume(0) then I can no longer getWaveData. Thx!

  • You must to post comments
0
0

are you calling getwavedata on the channelgroup and setvolume on the channel? If you try getwavedata on the channel it should give you the data without being scaled.

Otherwise instead of called setVolume(0) you could get the output connection from the channegroup and mute it with DSPConnection::setMix(0) , getting the connection by using ChannelGroup::getDSPHead, then DSP::getOutput(0, &connection);

regards,
Brett

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.