Playsound

Previous topic - Next topic

Hemlos

Playsound seems to be broken?
I even tried the playsound sample project...not working.


Edit:
@Gernot:
I didnt realize i needed to click the mouse to start the sound  in the sample :x
Also, thanks to nik and ian they helped me figgure out my .wav i needed to convert it to pcm 44khz 16 bit to get it working.

Summary of this entire thread is, you dont need to read all this...youve been gone a few days and probably dont have time for alot of reading.

Bing ChatGpt is pretty smart :O

MrTAToad

I here the IMAX sound in the Playsound example...

Hemlos

Well i tried mp3's and wav's and nothing is playing

plasymusic plays my files....what the heck is going on here
Bing ChatGpt is pretty smart :O

MrTAToad

Got any example code ?

Hemlos

Quote from: Hemlos on 2009-Nov-26

I even tried the playsound sample project...not working.

Sample in samples/media/Playsound.gbap
Bing ChatGpt is pretty smart :O

MrTAToad

Both the PlayMusic and PlaySound demos are fine here - If you've been using your own MP3's, can you make one available ?

Hemlos

I used the sample wav, im just trying to get sound going, and im using what is basic.

What platform os are you using your sample on?
Bing ChatGpt is pretty smart :O

Hemlos

I built a new sample....i think it should work....it loads but it wont play.

Here:


[attachment deleted by admin]
Bing ChatGpt is pretty smart :O

MrTAToad

I'm using Windows 7 x64

I presume you're on XP - so I'll try it on that too.

Hemlos

yes xp
im in the process of reinstalling my sound drivers....sigh

Let me how my sample works for you.....by the way i added GETLASTERROR$() to my project here, and it returns 0000 success
Bing ChatGpt is pretty smart :O

MrTAToad

#10
Yes, it wont play here.

It looks like the WAV isn't in the required format - need to get it converted to (probably) PCM format...

But first, will need to find an appropriate program to do so :)

Hemlos

Just replace it with one you know works....like the glbasic sample.
The glbasic sample wont play on my xp.....

compile the glbasic sample on your xp and try that wav/exe
Bing ChatGpt is pretty smart :O

Ian Price

I think it's the audio format that has a problem here - I couldn;t hear anything until I re-coded the .WAV to PCM 22.050 Mhz, 8Bit Stereo. GLB then played it properly.

Hope that helps.
I came. I saw. I played.

Hemlos


Awesome thank you two.

I really appreciate your help.
Bing ChatGpt is pretty smart :O

MrTAToad

wHat program did you use to recode it?