Problem with music and sound.

Started by abnaxus, Sun 23/05/2004 18:58:45

Previous topic - Next topic

abnaxus

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?

..

Erm.. What script command are you using post the bit of code that went wrong here.

stuh505

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)


abnaxus

I was trying both but it didn,t work :(. Maybe it is something with my soundcard or something :(.

Scorpiorus

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.

abnaxus

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 ;(.

TerranRich

#6
PlayMP3Dile()? Or PlayMP3File()?
Status: Trying to come up with some ideas...

Scorpiorus

Are you sure they are in the "game\" folder?
What if you try a WAV or MIDI, does they play?

Edwin Xie

You could try showing us the music and tell us where you put it.
Moving at superhigh speed getting to the planet called Earth. But it is boxed in white......thing.....

abnaxus

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.

Scorpiorus

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?

SMF spam blocked by CleanTalk