Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Candle on Thu 27/01/2005 01:35:39

Title: Anyone else having problems with PlaySoundEx(2, 3); and mp3
Post by: Candle on Thu 27/01/2005 01:35:39
I was trying to get this to work with an mp3 but damn thing would not play so I took the same mp3made it  in to a wave file and it plays ??
PlaySoundEx(2, 3);
Title: Re: Anyone else having problems with PlaySoundEx(2, 3); and mp3
Post by: TerranRich on Thu 27/01/2005 03:06:07
Was the file originally an MP3? Do you know exactly how it was encoded? Sometimes I know MP3 files don't always play on my Windows Media Player for some reason. I have to go into Adobe Audition (formerly CoolEdit Pro) and re-save it as an MP3 file. Try converting it back to MP3. Does it work then?
Title: Re: Anyone else having problems with PlaySoundEx(2, 3); and mp3
Post by: Candle on Thu 27/01/2005 03:16:24
I downloaded it as an mp3 that worked fine on my windows box with any player I tried it with but it would not work in AGS .
So then I ran it through Audacity  and made it a wave that would work .
Title: Re: Anyone else having problems with PlaySoundEx(2, 3); and mp3
Post by: TerranRich on Thu 27/01/2005 03:24:24
Did you try converting it back to MP3, like I suggested? If so, what happened then?
Title: Re: Anyone else having problems with PlaySoundEx(2, 3); and mp3
Post by: Candle on Thu 27/01/2005 03:42:54
Just gave it a try and it didn't work .
Title: Re: Anyone else having problems with PlaySoundEx(2, 3); and mp3
Post by: RickJ on Thu 27/01/2005 07:40:42
Did you rebuild the vox file (i.e. Game=>Rebuild VOX file)?   MP3,  OGG, and voice are stored in the VOX file and WAV is stored in game files.   So perhaps this is the problem you are having.  If not then are you able to play other mp3s in AGS or just this one in particular?