I am moving from the Fmod Ex api to the designer API at the moment.
I am trying to set the master volume for all sounds (a user setting for the game). Previously I had set the volume like so: –
This doesn’t seem to work on the designer API (after getting the _fmodSystem using _eventsystem->getSystemObject(&_fmodSystem); )
Is there a different way to set the overall volume?
Thanks for your help
All the best,
Also worth noting that there’s a way to get the master category by index, it might be slightly faster as it doesn’t involve a string comparison.
The documentation says:
The index of an event category within this event system object. Indices are 0 based. Specify -1 to retrieve the master event category.[/quote:1o5mpu0a]
[code:1o5mpu0a]FMOD::EventCategory* masterCategory = NULL;
FMOD_RESULT result = m_eventSystem->getCategoryByIndex(-1, &masterCategory);
- Eliot answered 5 years ago
The eventsystem API doesn’t actually go through the system’s master channel group. Instead, it has its own master EventCategory.
Try something like the following:
[code:1i1pia40]FMOD::EventCategory* masterCategory = NULL;
FMOD_RESULT result = _eventsystem–>getCategory("master", &masterCategory);
Hope that helps!
- Adiss answered 8 years ago
Please login first to submit.