Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Sun 23/05/2004 18:58:45

Title: Problem with music and sound.
Post by: on Sun 23/05/2004 18:58:45
I am trying to use scripts to add music from mp3 but when I start my game there is no sound. Sometimes there is an alert that "in room x: valid mp3 or couldn't open" or something like that. I tryed to open meany mp3 but with the sanme result. What should I do?
Title: Re: Problem with music and sound.
Post by: .. on Sun 23/05/2004 20:24:23
Erm.. What script command are you using post the bit of code that went wrong here.
Title: Re: Problem with music and sound.
Post by: stuh505 on Sun 23/05/2004 20:47:49
let me guess, you are using the "PlayMP3File()" function?  It didn't work for me either, but this does:

try naming your music like "music1.mp3", "music2.mp3"

and then running them like "PlayMusic(2)" or by checking the play music on room load button and entering the music # there (on the room properties)

Title: Re: Problem with music and sound.
Post by: on Tue 25/05/2004 08:19:34
I was trying both but it didn,t work :(. Maybe it is something with my soundcard or something :(.
Title: Re: Problem with music and sound.
Post by: Scorpiorus on Tue 25/05/2004 10:32:38
Could you post the script code you used?

Do these mp3 work if you play them with Windows media player?

Open AGS game setup and try changing the Digital sound output to the default WaveOut device and see if it helps.
Title: Re: Problem with music and sound.
Post by: on Fri 28/05/2004 14:04:32
I used "PlayMP3Dile()" and "PlayMusic()". Ofcourse they are working in every player so I am shure that the files are correct. Finally, I tried to change sound output, but still nothing ;(. I'am desperret ;(.
Title: Re: Problem with music and sound.
Post by: TerranRich on Fri 28/05/2004 14:17:17
PlayMP3Dile()? Or PlayMP3File()?
Title: Re: Problem with music and sound.
Post by: Scorpiorus on Fri 28/05/2004 14:39:17
Are you sure they are in the "game\" folder?
What if you try a WAV or MIDI, does they play?
Title: Re: Problem with music and sound.
Post by: Edwin Xie on Sat 29/05/2004 02:39:49
You could try showing us the music and tell us where you put it.
Title: Re: Problem with music and sound.
Post by: on Mon 31/05/2004 17:08:19
I tryed to play a midi file and it works. I think the problem is in the mp3 decoder. I must try to find a decoder which AGS use and install it. Whish me luck :).

Sorry for my english I'am from poland.
Title: Re: Problem with music and sound.
Post by: Scorpiorus on Mon 31/05/2004 17:23:28
I believe, the mp3 decoder is already built into the AGS engine, so the only problem may be is that it doesn't support a specific mp3 format.
By the way, there is also a mp3-less version of AGS on the download page. Don't you use it by any chance, do you?