0
0

Hi,

First of all , i don’t have licence yet, but our company is going to buy multiplatform licence when we’ll get the green light from our publisher.

Now,i have this little problem.

We’re using FMOD Designer to create several events.

I made a wraping library on top of FMOD, something more object like.

So i have a CAudioEvent::Play() func that do this :

[code:2e54t5sy] FMOD_RESULT result;
ERRCHECK(result = _pEvent->start());[/code:2e54t5sy]

And CAudioEvent::AddToMasterChannelGroup() :

[code:2e54t5sy] FMOD_RESULT result;
FMOD::ChannelGroup* pChannelGroup;
ERRCHECK(result = _pEvent->getChannelGroup(&pChannelGroup));
ERRCHECK(result =AudioLibImpl::GetMasterChannelGroup()->addGroup(pChannelGroup));
[/code:2e54t5sy]

So, to play en Event, and put in in master Channel Group, if user do
[code:2e54t5sy]myEvent->Play();
myEvent->AddToMasterChannelGroup();[/code:2e54t5sy]

It’s working.

Now, i’d like that ALL event are automaticaly put in the Master Channel Group, so i can have a global mixer ,then i could use setVolume or setMute.

So i modified CAudioEvent::PLay()
[code:2e54t5sy] FMOD_RESULT result;
ERRCHECK(result = _pEvent->start());
FMOD_RESULT result;
FMOD::ChannelGroup* pChannelGroup;
ERRCHECK(result = _pEvent->getChannelGroup(&pChannelGroup));
ERRCHECK(result =AudioLibImpl::GetMasterChannelGroup()->addGroup(pChannelGroup));[/code:2e54t5sy]

When i call [code:2e54t5sy]myEvent->Play();[/code:2e54t5sy] it’s going in infinite loop in addGroup().

Sadly, i don’t have licencing FMOD yet, so i don’t have debug info, nor source code, so i don’t know why it’s doing this. It’s not a crash.

So, what am i doing Wrong?

Moreover, the CAudio functions are called from a DLL. ( my library is a DLL ).

regards,

Sebastien.

  • You must to post comments
0
0

The best way is to use the designer to set the category of each sound, then set the categories for mixing purposes.

Events automatically belong to the master category by default.

  • You must to post comments
0
0

But i have also "not event" sounds, i wanted to have only 1 call, to change global mix of all game.

With that i have to change volume of each categories, etc.

  • You must to post comments
0
0

The master category controls the volume of itself, and any children categories.

  • You must to post comments
0
0

nice, so i’d just have to set volume for master channel and master category.
EventSystem::getCategoryByIndex(-1) to get master category from manual.
I’ll try that.

But i also like to know why it’s going in infinite loop in my code.

  • You must to post comments
0
0

event category = master
add channel group master to master = looping fun!

  • You must to post comments
0
0

maybe you should look closer to my code, that is not what i did….

  • You must to post comments
0
0

[quote="sebivorytower":15q517v2]But i also like to know why it’s going in infinite loop in my code.[/quote:15q517v2]
I can’t reproduce this issue. Could you send the FDP to support@fmod.org so we can have a look? Put a link to this forum thread in your email so we know what it’s about.

  • You must to post comments
0
0

Hi,

The whole project is only 3mo in rar file, it’s a engine car sound.

you need just the fdp or the full project with wav files?

cheers,
Seb

  • You must to post comments
0
0

fdp with wav files will let us build the fev/fsb or just send us the fev/fsb we dont care.

  • You must to post comments
Showing 9 results
Your Answer

Please first to submit.