Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: strazer on Thu 15/01/2004 15:07:57

Title: Suggestion: Crossfade ambience?
Post by: strazer on Thu 15/01/2004 15:07:57
Hi!

Seeing how it is possible to crossfade music (which uses channel 0), would it be a big problem to implement the same thing for ambience (channel 1)?
If I didn't use music, I could of course use the music channel.
I realize it would probably slow down quite a bit if the engine had to decode 4 files simultaneously. Still.

Thank you
Chris
Title: Re:Suggestion: Crossfade ambience?
Post by: Gregjazz on Thu 15/01/2004 21:43:08
I understand that AGS actually puts the ambient sounds into cache. Having four channels of ambient sound similtaneously might slow down a bit. :)
Title: Re:Suggestion: Crossfade ambience?
Post by: Pumaman on Sat 17/01/2004 12:30:51
Interesting idea, I'll have a think about it.
Title: Re:Suggestion: Crossfade ambience?
Post by: strazer on Wed 28/01/2004 05:46:25
Alternatively it would be helpful if the sound wouldn't stop playing when the player leaves the room.

Sorry I keep bringing this up but I believe sound and sound effects to be an integral part of the gaming experience.

Thank you!
Chris
Title: Re:Suggestion: Crossfade ambience?
Post by: on Wed 28/01/2004 08:28:12
Reading the helpfile earlier I noticed game.ambient_sounds_persist in the reference section.
That should keep ambient sounds playing when leaving the room, no?
Title: Re:Suggestion: Crossfade ambience?
Post by: strazer on Wed 28/01/2004 08:30:11
Awesome!

Thanks for the hint.