0
0

Hello all,

i hope you can help me. I’d like to get the amplitude of my playing channel independent of the current channel volume.
Is this possible without locking the sample and getting the raw data?

I tried FSOUND_GetVolume(), FSOUND_GetAmplitude() and FSOUND_GetCurrentLevels(), but all values are affected by the volume.

Best regards,
Philip

  • You must to post comments
0
0

I think if you used FMOD Ex you could do it, with Channel::getWaveData.

  • You must to post comments
0
0

Hmm, thats bad.
I tried out a workaround, but it isn’t really satisfying.

  • mute the channel
  • set volume to max
  • FSOUND_GetCurrentLevels(..)
  • set volume to original level
  • unmute the channel

This produces hops sometimes, well, because of the mutes. Can you think of a way to improve such a workaround? I tried it with pauses instead of mutes as well, but then the effect is much stronger.

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.