Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Playing a sound

Author
Message
CAJUN57
16
Years of Service
User Offline
Joined: 29th May 2008
Location:
Posted: 29th May 2008 22:21
Im having a problem playing a basic sound.
i dont know why because i load the sound and then have it play when i click the mouse, but it doesnt play and it locks the camera to the y axis so it cant go up or down.

dbLoadSound("explode.mp3",10);

The south will rise again
programing maniac
16
Years of Service
User Offline
Joined: 19th Apr 2008
Location: Bawk, Bawkity
Posted: 29th May 2008 22:42
I would do dbLoadMusic ( "explode.mp3", 10 );, it is the same thing as load sound, but IT works- I haven't really tried load sound yet...

in the mainloop, do dbPlayMusic (10); and dbStopMusic (10);.

Hopefully that works!

~~Its not about what you know, its about how you figure it out.~~
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 29th May 2008 23:33
I'm not sure mp3 is a supported sound file format is it? programming maniac might be on to something here.

programing maniac
16
Years of Service
User Offline
Joined: 19th Apr 2008
Location: Bawk, Bawkity
Posted: 30th May 2008 00:04
yeah, mp3 might not be a supported sound format, didn't think of that.... well, if not, download audacity, load the file and export it as a wave. I KNOW wave files are supported...

~~Its not about what you know, its about how you figure it out.~~
programing maniac
16
Years of Service
User Offline
Joined: 19th Apr 2008
Location: Bawk, Bawkity
Posted: 30th May 2008 00:06
This command will load a WAV sound file into the specified Sound Number. The Sound Number must be an integer value. To load other sound formats, use dbLoadMusic or in extreme cases dbLoadAnimation.


that is from the information place-- USE dbLoadMusic-- IT WORKS!!!

~~Its not about what you know, its about how you figure it out.~~
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 30th May 2008 00:42
they are, but they're bigger.. and for the 3d sounds you need single channel wave recordings versus stereo.

(They load, just don't work)

CAJUN57
16
Years of Service
User Offline
Joined: 29th May 2008
Location:
Posted: 30th May 2008 01:04
thanks everyone,
mp3's dont seem to work with dbloadsound
but i got it to work with dbloadmusic.

Thank you

The south will rise again
CAJUN57
16
Years of Service
User Offline
Joined: 29th May 2008
Location:
Posted: 30th May 2008 02:04
Yeah audacity works great too!

The south will rise again

Login to post a reply

Server time is: 2024-09-29 21:32:37
Your offset time is: 2024-09-29 21:32:37