Question about Sound and Music Overlap

Started by Bavolis, Tue 03/04/2012 00:24:09

Previous topic - Next topic

Bavolis

I've searched for the answer to this one and checked the tutorial, but somehow I've managed to completely overlook it somewhere... How do I prevent the music (ogg) from pausing when I play a speech file (also ogg)? I've seen the setting to reduce music volume when a sound plays, but it doesn't seem to have any effect because the music is turning off briefly. Any help would be greatly appreciated - thanks!

kyodai

I suggest reading the chapter "sound effects" in the manual. Let me quote just a short paragraph:

"AGS currently has an 8-channel audio system, which means that up to 8 sounds can be playing at the same time. With the default Audio Types settings, one channel is reserved for speech, one for music and one for ambient sounds; thus leaving 5 available for sound effects.

If you try to play an audio clip and there are no channels available, then an existing one will be stopped and the new one will take its place. However, this will only happen if the new audio clip has an equal or higher priority than one of the currently playing sounds.

"


There is also a seperate paragraph about how to define chanels. Also make sure the maxchannels property is not lower than the number of files you want to play simultaneously.

Bavolis

Thanks for the quick reply - It looks like they were all set to have infinite channels, which was probably a very bad thing. I also tweaked the priorities and it all seems to be working fine now. You saved me from a nasty headache, thanks again :)

SMF spam blocked by CleanTalk