Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: pcj on Wed 10/08/2011 13:53:14

Title: SOLVED: Some sound effects do not play?
Post by: pcj on Wed 10/08/2011 13:53:14
I am working on a game where there is currently about 100 sound effects (not including music).  We are using the OGG format for audio (and video).  We are currently running into a problem where certain SFX do not play in-game, even though they play fine in the preview window in AGS as well as in other audio players.  Other SFX and all of the background music plays fine.

With some, the SFX are being played through the loop editor (the SFX occurs on a specific frame in the loop) and with others it is being played through script - it seems to make no difference.

The volume on these files is set to 100 (inherited from the SFX type setting) and priority setting is normal (though I've tried high priority) - and there should be nothing else playing.  The AudioClip.Play function returns a non-null value.

Any ideas?
Title: Re: Some sound effects do not play?
Post by: ddq on Wed 10/08/2011 14:54:50
Are they being played alone or is other audio playing at the same time? I think AGS has some (annoyingly low) limit on the number of simultaneously playing AudioChannels. I doubt that's the issue, though; sounds like a weirder problem than that.
Title: Re: Some sound effects do not play?
Post by: Khris on Wed 10/08/2011 15:12:00
Could you upload one of the sound files that don't play so we can test it?
Title: Re: Some sound effects do not play?
Post by: pcj on Wed 10/08/2011 15:27:40
Quote from: ddq on Wed 10/08/2011 14:54:50
Are they being played alone or is other audio playing at the same time? I think AGS has some (annoyingly low) limit on the number of simultaneously playing AudioChannels. I doubt that's the issue, though; sounds like a weirder problem than that.

They're playing alone; other SFX in the same scene also play fine.

Quote from: Khris on Wed 10/08/2011 15:12:00
Could you upload one of the sound files that don't play so we can test it?

http://sqvsb.com/temp/ButtonKeypad.ogg
Title: Re: Some sound effects do not play?
Post by: Scorpio82 on Wed 10/08/2011 15:42:13
They do play against music, but that hasn't stopped other sound effects from playing before. And I've been taking care to render them all in OGG at 105 kbps.
Title: Re: Some sound effects do not play?
Post by: pcj on Wed 10/08/2011 15:49:33
Quote from: Scorpio82 on Wed 10/08/2011 15:42:13
They do play against music, but that hasn't stopped other sound effects from playing before. And I've been taking care to render them all in OGG at 105 kbps.

Right, but it happens also when playing alone.  I don't think that's the issue.
Title: Re: Some sound effects do not play?
Post by: pcj on Sat 13/08/2011 14:50:02
I've resolved the issue - it seems to be some issue with the file itself.  Creating a new file from the audio seems to work fine.  Thanks for looking at this.