0
0

Hi,

I’m using the latest version of FMOD and doing a interface for my game project with it. It is very good work behind FMOD, I must say.
But I have one question:

When I load a sound, I also set the ChannelGroup and setting the volume for that ChannelGroup, and it all works when I start to play it. But when I want to replay the sound the volume seems to have disappeared? (reset to 1.0)
When I’m then playing up the sound again it comes to max volume (default), but the ChannelGroup still has unchanged volume (for example 0.3).
It is necessary to reset ChannelGroup after every played playSound and set the volume again?

Or am I missing something, or is there something you can do to make it keep the ChannelGroup and volume?

Thanks for any response.
Greetings
Christer

  • You must to post comments
0
0

Is seems to be the same problem with Streaming as well,

When I stream a mp3 and I set a ChannelGroup and volume it all works, but when I change the ChannelGroups’ volume it doesn’t affect the stream, but if I change the stream’s volume directly it is affected. But I want to change the volume of all streaming elements at the same time, so any ideas on solutions?

Greetings
Christer

  • You must to post comments
0
0

When I want to change volume on a whole Group on the fly, do I only need to call the function setVolume from the channelgroup?
Is all the connected channels to that group changed directly or are the volumes set to next play of them?
Beacuse if I change the volume for a single channel it works, but when I try to change the whole groups volume nothing happens.

Any ideas?

  • You must to post comments
0
0

[quote="SkitZos":2xv1dxsy]Hi,

I’m using the latest version of FMOD and doing a interface for my game project with it. It is very good work behind FMOD, I must say.
But I have one question:

When I load a sound, I also set the ChannelGroup and setting the volume for that ChannelGroup, and it all works when I start to play it. But when I want to replay the sound the volume seems to have disappeared? (reset to 1.0)
When I’m then playing up the sound again it comes to max volume (default), but the ChannelGroup still has unchanged volume (for example 0.3).
It is necessary to reset ChannelGroup after every played playSound and set the volume again?

Or am I missing something, or is there something you can do to make it keep the ChannelGroup and volume?

Thanks for any response.
Greetings
Christer[/quote:2xv1dxsy]

If you’re using FMOD_CHANNEL_FREE, you are getting a new channel, so yes of course you will have to put it into a new channel group. You are not using the same channel over and over.

  • You must to post comments
0
0

Setting a channelgroup’s volume does work.

Simply use the channelgroups example provided with fmod, change createSound to createStream, and it works fine.

you can replace

overrideMute(mute);
with
setVolume(mute ? 0.0f : 0.5f);
if you want as well and it still works.

  • You must to post comments
0
0

hehe, I solved the problem…
I used a an extra variable to store the volume and channelgroup that I re-set every time it was needed, and now it works perfect :)

Thanks for the help

  • You must to post comments
Showing 5 results
Your Answer

Please first to submit.