Music, Sound & Speech: Difference between revisions

Jump to navigation Jump to search
*>Dasjoe
mNo edit summary
 
*>Dasjoe
mNo edit summary
Line 1: Line 1:
===Getting sound/music into your game===
==Getting sound/music into your game==
''How do I get sound/music into my game? Is there a menu or editor within AGS that I can use to add music/sound files into, or what?''
''How do I get sound/music into my game? Is there a menu or editor within AGS that I can use to add music/sound files into, or what?''


Line 6: Line 6:
For speech, that's a whole different matter altogether. You need to use scripting, whether it's text scripting or dialog scripting. Check the manual for more information on speech. (Simply search for "Speech" under the Index tab.)
For speech, that's a whole different matter altogether. You need to use scripting, whether it's text scripting or dialog scripting. Check the manual for more information on speech. (Simply search for "Speech" under the Index tab.)


===Music/speech/sound not working properly or at all===
==Music/speech/sound not working properly or at all==
''My music/speech/sound doesn't work.''
''My music/speech/sound doesn't work.''


Line 21: Line 21:
However, if none of this works, ask us at the AGS Beginners' Forum. If it's too tough for us to answer, we'll move it to the Advanced Tech Forum. If they can't answer it, then take a machine gun to your computer and start cross-dressing. We'll all be better off anyway. :P
However, if none of this works, ask us at the AGS Beginners' Forum. If it's too tough for us to answer, we'll move it to the Advanced Tech Forum. If they can't answer it, then take a machine gun to your computer and start cross-dressing. We'll all be better off anyway. :P


===Inability to hear new music/sound/speech after adding them in===
==Inability to hear new music/sound/speech after adding them in==
''I added new music/sound/speech files and now I can't hear them. What should I do?''
''I added new music/sound/speech files and now I can't hear them. What should I do?''


AGS uses a '''Speech.VOX''' or '''Music.VOX''' file to store all the sound files into (with some exceptions such as MIDI files, which are stored inside the game data files). If you add new music/sound, you need to click on '''Game -> Rebuild VOX files''' to re-compile all the '''.VOX''' files used by AGS.
AGS uses a '''Speech.VOX''' or '''Music.VOX''' file to store all the sound files into (with some exceptions such as MIDI files, which are stored inside the game data files). If you add new music/sound, you need to click on '''Game -> Rebuild VOX files''' to re-compile all the '''.VOX''' files used by AGS.


===Error: "Unable to initialize your audio hardware (problem: Failed to init digital sound driver)"===
==Error: "Unable to initialize your audio hardware (problem: Failed to init digital sound driver)"==
''When I test my game (which has NO sound or music yet), OR when I play someone else's game, I get an error that says, “Unable to initialize your audio hardware (problem: Failed to init digital sound driver)”. What is the problem?''
''When I test my game (which has NO sound or music yet), OR when I play someone else's game, I get an error that says, “Unable to initialize your audio hardware (problem: Failed to init digital sound driver)”. What is the problem?''


Line 35: Line 35:
# Also, a much quicker way is to open up the Game Setup window in AGS and change the digital sound setting from "Default Direct Sound" to "Default WaveOut Device".
# Also, a much quicker way is to open up the Game Setup window in AGS and change the digital sound setting from "Default Direct Sound" to "Default WaveOut Device".


===Adding footstep sounds to each of your characters' footsteps===
==Adding footstep sounds to each of your characters' footsteps==
''How would I set it up so that every time my character takes a step (their foot hits the floor/ground), AGS plays a footstep sound? And how would I change the footstep sound depending on the surface type?''
''How would I set it up so that every time my character takes a step (their foot hits the floor/ground), AGS plays a footstep sound? And how would I change the footstep sound depending on the surface type?''


Line 44: Line 44:
Just a side note: This function can be useful for a LOT of other things. For example, you could have it so that your character has the ability to become injured. Maybe at that point, you could change his view to one where he limps, with each footstep playing a grunt sound. To make it even more realistic, you could randomize the grunt sound as well, with the '''SetFrameSound()''' command and the '''repeatedly_execute''' game function. Just a thought.
Just a side note: This function can be useful for a LOT of other things. For example, you could have it so that your character has the ability to become injured. Maybe at that point, you could change his view to one where he limps, with each footstep playing a grunt sound. To make it even more realistic, you could randomize the grunt sound as well, with the '''SetFrameSound()''' command and the '''repeatedly_execute''' game function. Just a thought.


===Getting the background music to play continuously from room to room===
==Getting the background music to play continuously from room to room==
''What do I have to do in order to keep my background music playing from room to room?''
''What do I have to do in order to keep my background music playing from room to room?''


Quite simply, nothing. Just don't tell AGS to stop playing the music until you reach the room in which you want the music to stop. Then, just play new music or stop it altogether, whichever you want. AGS plays music from room to room automatically until you tell it otherwise.
Quite simply, nothing. Just don't tell AGS to stop playing the music until you reach the room in which you want the music to stop. Then, just play new music or stop it altogether, whichever you want. AGS plays music from room to room automatically until you tell it otherwise.


===Fading out MIDI music upon entering a new room===
==Fading out MIDI music upon entering a new room==
''How would I go about fading out MIDI music, say, upon entering a new room where the music is longer desired?''
''How would I go about fading out MIDI music, say, upon entering a new room where the music is longer desired?''