I am looking for help with coding a background sound effect: blowing wind
Here is a small sketch of my scene and the different rooms relevant for the problem:
The player enters at the bottom of room 1. He can now climb the path to the top of the cliff.
When he reaches it, I want my sound of blowing wind to SLOWLY FADE IN.
Once it is there I want it to LOOP, of course.
It must continue looping if the player walks from room 1 to 2 and 2 to 3 (one can cross the gap).
If the player decides to walk down the path in room 1 again ... the wind must slowly fade out.
The player can also leave/enter room 2 via room 4. If he does ... wind has to stop/start blowing as well.
My thoughts on the problem:
-I can't think of a way to fade a single sound in without blocking the script.
-So perhaps I have to use 2 sound files: one with the wind fading in ... one with the wind in normal volume.
-How can I get a non-interrupting (when changing rooms) looping sound without using the Ambient-Sound function
-How about creating one continuing wind sound file of which the first half is the fade in wind and the second half is the normal volume wind sound ... and then using the SeekMP3Position function ... to loop the normal volume part of the file.
Sound and Music programming is one major difficulty I find with using AGS.
Any ideas and thoughts are very welcome.
Thanks in advance