0
0

Currently I capture the volume keys and have them affect the FMOD volume. What I’d prefer to do instead is just have the device hardware volume controls bring up the standard system’s volume box and control the device’s master volume, separate from the FMOD volume.

I tried setting [code:1cw3oo11]setVolumeControlStream(AudioManager.STREAM_MUSIC);[/code:1cw3oo11] in the Activity’s OnCreate() but it’s not doing anything.

Any suggestion on how I can accomplish this? Thanks,

  • You must to post comments
0
0

Thanks! I have this working now.

  • You must to post comments
0
0

FMOD plays on the MUSIC stream, so setting the hardware controls to that stream will affect FMOD too.
The normal usage would be to leave the hardware buttons controlling all device audio and provide software volume control for your application effects and music (via channel groups).

I’m not sure if you can achieve the result of lowering all volumes except the application volume

  • You must to post comments
0
0

How did you excat solve your problem? Because I’ve something similar to solve. I like to read out the phones current ring volume and set this volume to the FMOD master volume. How can I achieve this without touching every single Channel-Group? Is this possible?

Thanks

  • You must to post comments
0
0

Sure, just modify the master channel group volume using the following APIs

[code:2x05z6z6]System::getMasterChannelGroup
ChannelGroup::setVolume[/code:2x05z6z6]

  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.