Game authors and players, please read this thread!

Author Topic: SOLVED: Some sound effects do not play?  (Read 327 times)  Share 

SOLVED: Some sound effects do not play?
« on: 10 Aug 2011, 13:53 »
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?
« Last Edit: 13 Aug 2011, 14:50 by pcj »
Space Quest: Vohaul Strikes Back is now available to download!

ddq

  • Let's talk mergers
  • ddq worked on a game that was nominated for an AGS Award!
Re: Some sound effects do not play?
« Reply #1 on: 10 Aug 2011, 14:54 »
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.
< uoou> help me obi wan kenobi, I'm stuck on angry birds
...
< uoou> domestic pigs are quite prone to anal prolapse

Khris

  • Evil Dark Emperor Death-Kill
    • Lifetime Achievement Award Winner
    •  
    • I can help with play testing
    •  
    • I can help with scripting
    •  
    • I can help with translating
    •  
Re: Some sound effects do not play?
« Reply #2 on: 10 Aug 2011, 15:12 »
Could you upload one of the sound files that don't play so we can test it?
http://whathaveyoutried.com/

The other day on yahoo answers:
"Can you print colored images with black ink? If so tell me how please Thanx Kimberly"

Re: Some sound effects do not play?
« Reply #3 on: 10 Aug 2011, 15:27 »
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.

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

  • aka Datadog
Re: Some sound effects do not play?
« Reply #4 on: 10 Aug 2011, 15:42 »
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.

Re: Some sound effects do not play?
« Reply #5 on: 10 Aug 2011, 15:49 »
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!

Re: Some sound effects do not play?
« Reply #6 on: 13 Aug 2011, 14:50 »
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!