Sound problems

Previous topic - Next topic

MrTAToad

I've noticed that sounds that were playing before now wont play in 9.033 and SOUNDPLAYING returns -1

I've included the sounds I'm using.

[attachment deleted by admin]

Ian Price

My current game has no obvious problems with sound.

FYI - .WAV 22.050 kHz 16bit mono/stereo

I notice your "sound118" is 44.100 kHz - try changing/testing it to 22.050.

Perhaps Gernot's been playing with sound again, as there was a problem with it in an earlier 9.XX update IIRC.
I came. I saw. I played.

MrTAToad

Yes, its possible its been brought down to allow comparability with other platforms...

MrTAToad

#3
No luck so far - still totally silent...  I wonder if they are actually loading as they work in the test program...

Ah ha - found it.  It looks like it was a bug in my playSND routine.  It appears that GENSOUND now returns a value of at least 200.  As I wasn't actually using this value, the sound wasn't playing :)

Ian Price

When converted to 22.050 "sound118.wav" works fine in my game.

???

BTW I like that sound - it works well in my game. Can I pinch errr... borrow it? :)
I came. I saw. I played.

MrTAToad

Its sorted now :)

Ian Price

What was the problem?
I came. I saw. I played.

MrTAToad

I was using the passed index to play the sound, which, as GENSOUND returns a decreasing value from 4095 meant nothing was being played.  I should have been using this index value to access the id number of the sound instead (which would have held the correct value)...

Ian Price

Glad it's sorted :)
I came. I saw. I played.

MrTAToad

Same here too :)