SOLVED: Some sound effects do not play?

Started by pcj, Wed 10/08/2011 13:53:14

Previous topic - Next topic

pcj

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?
Space Quest: Vohaul Strikes Back is now available to download!

ddq

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.

Khris

Could you upload one of the sound files that don't play so we can test it?

pcj

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
Space Quest: Vohaul Strikes Back is now available to download!

Scorpio82

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.

pcj

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.
Space Quest: Vohaul Strikes Back is now available to download!

pcj

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.
Space Quest: Vohaul Strikes Back is now available to download!

SMF spam blocked by CleanTalk