trouble playing sound

Posted by Shwick on Mon 31 May 2010 06:40 PM — 3 posts, 13,467 views.

#0

whenever i play a sound using world.Sound('bomb_x.wav') in my trigger, it just plays a beep not the sound

it returns 0, meaning eOk

i know the path is right b/c i tried it in a different standalone trigger

Amended on Mon 31 May 2010 08:22 PM by Shwick
Australia Forum Administrator #1
I don't see a path there (just a file name). When you used it in a trigger it would have stored the full path to the sound file.

Also, the sound file should have the properties:

  • "Wave" file (ie. ending in .wav)
  • Audio sample size: 16 bit
  • Channels: 2
  • Audio sample rate: 22 kHz
  • Audio format: PCM



You can use programs like Audacity (which is free) to convert sound files from one format to another.

http://audacity.sourceforge.net/
#2
thanks it was in the wrong format

audacity got it converted