Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Ali on Mon 12/02/2007 10:43:02

Title: Problem playing Ogg Vorbis sounds.
Post by: Ali on Mon 12/02/2007 10:43:02
I'm using Ogg Vorbis sounds for my game, but I have a wierd problem. At one point in my game there's a 'BANG' sound effect. Instead of playing properly it plays 'B-B-B-B-B-B-B...' and won't stop until I quit the game. What's weird is, that the same sound plays properly when I play it in a different room script. there are ambient sounds also playing in both rooms.

I've got around the problem by making that sound a .WAV instead of an .OGG, but I was wondering if there might be a better solution. Sorry if I haven't given enough information, audio stuff's not really my bag.
Title: Re: Problem playing Ogg Vorbis sounds.
Post by: Gilbert on Mon 12/02/2007 11:04:28
Can you upload the file in question for us to test?

Are the ambient sounds the same in both rooms? Try disabling ambient sound in that room in question and see if the same problem persists (if it persists that means it probably isn't related to the ambient sound).
Title: Re: Problem playing Ogg Vorbis sounds.
Post by: SSH on Mon 12/02/2007 11:10:34
Can you post the code where you play it? Sounds like you keep playing it over itself by mistake...
Title: Re: Problem playing Ogg Vorbis sounds.
Post by: Ali on Tue 13/02/2007 15:29:38
I'll upload the .OGG as soon as I get the opportunity.
The ambient sounds are different, I'll experiment with changing them around.

Quote from: SSH on Mon 12/02/2007 11:10:34
Can you post the code where you play it? Sounds like you keep playing it over itself by mistake...

That does sound like the kind of thing I would do and not realise, however, it works properly with a .WAV, so I don't think it could be that. I'll post the code when I get the chance all the same.

Thanks for the help, I'll get back to you with something useful next time I'm not on a library computer!
Title: Re: Problem playing Ogg Vorbis sounds.
Post by: Kweepa on Wed 14/02/2007 01:15:44
I seem to remember having problems with very short oggs - but in my case they didn't play at all if I remember correctly. I don't know why I didn't report it at the time. I blame the pressure of OROW.