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.

DarkBASIC Discussion / 3DSound Help

Author
Message
Maldragon
19
Years of Service
User Offline
Joined: 29th Dec 2005
Location: Here
Posted: 30th Dec 2005 06:36
Okay, I'm having some trouble with 3DSound. I've done everything you need to; I've loaded the .wav sound file, positioned it, positioned the listener, and all the rest of it, but I can't get it to work. Everything else works fine, but the sound just doesn't play. I've checked and double-checked the tutorial and example codes, and I can't see anything I'm doing wrong. Do any of you have any idea what I'm doing wrong?

"Reality is merely an illusion. Albeit a very persistant one." -Albert Einstein
new programmer
19
Years of Service
User Offline
Joined: 20th Dec 2005
Location: right behind you.
Posted: 30th Dec 2005 19:53
sound code?
Dodic
19
Years of Service
User Offline
Joined: 6th Nov 2005
Location: SNM (Serbia&Montenegro)
Posted: 30th Dec 2005 19:59
did you used the play sound command ?
(it would be best to post source code , so we can see what`s wrong.)

The Nerd
20
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 30th Dec 2005 20:07 Edited at: 30th Dec 2005 20:08
I would guess that you haven't used the "load 3dsound" command, did you do that? I had that problem myself when I first used 3D sounds.

Else I would have to look at the code. Just as another guess... Did you try to set the sound volume?

Also make sure that the sound is placed close enough to you, so you can hear it. Did you eventually try to loop it?


-The Nerd

Free Particle Engine For dbpro :
here
Maldragon
19
Years of Service
User Offline
Joined: 29th Dec 2005
Location: Here
Posted: 31st Dec 2005 01:31
I did use the "Load 3DSound" command and I'm pretty sure it's close enough to be heard.

"Reality is merely an illusion. Albeit a very persistant one." -Albert Einstein
Maldragon
19
Years of Service
User Offline
Joined: 29th Dec 2005
Location: Here
Posted: 31st Dec 2005 07:31
I did use the "Load 3DSound" command and I'm pretty sure it's close enough to be heard. I've got the source code pasted below, so please tell me if you see anything wrong.

"Reality is merely an illusion. Albeit a very persistant one." -Albert Einstein
master programmer
19
Years of Service
User Offline
Joined: 30th May 2005
Location: 3D Space
Posted: 31st Dec 2005 10:46 Edited at: 31st Dec 2005 10:50
How loud is the actual sound file, can you hear it in other players, like Windows Media Player?

Also, put your source code in brackets by clicking the "code" button and posting the code, and pressing the "code*" button when finished to enclose the entire code in code and /code brackets. The final product will look like this


Maldragon
19
Years of Service
User Offline
Joined: 29th Dec 2005
Location: Here
Posted: 31st Dec 2005 22:09
Yeah, I can hear it in other players. I also tried loading it as regular sound file and it will play. But when I try loading it as a 3DSound, I just get silence.

Sorry about the source code. I tried to put it into my last post, but something went wrong.


"Reality is merely an illusion. Albeit a very persistant one." -Albert Einstein
SimSmall
20
Years of Service
User Offline
Joined: 7th Aug 2004
Location: United Kingdom
Posted: 2nd Jan 2006 16:09 Edited at: 2nd Jan 2006 16:10
If your sound is stereo, convert it to mono

The 3D engine works out the volume of the sound for each channel, but if the sound is in stereo, it gets confused...

...maybe one day I'll finish a project
blanky
20
Years of Service
User Offline
Joined: 3rd Aug 2004
Location: ./
Posted: 2nd Jan 2006 17:57
Excellent point; In DirectMusic, the 3D channel is 'Dry' and only supports Mono.

Support the AAANJL by doing nothing! Visit teh site below..
Maldragon
19
Years of Service
User Offline
Joined: 29th Dec 2005
Location: Here
Posted: 2nd Jan 2006 20:23
Well, I checked the sound, and it's in mono, so it's not that.

"Reality is merely an illusion. Albeit a very persistant one." -Albert Einstein
headcrab 53
19
Years of Service
User Offline
Joined: 14th Jul 2005
Location:
Posted: 3rd Jan 2006 17:49 Edited at: 3rd Jan 2006 17:50
I'm not sure what your problem is - the code worked for me, so it's either your computer or the sound you're using.

"Not again!" - A Grunt
SimSmall
20
Years of Service
User Offline
Joined: 7th Aug 2004
Location: United Kingdom
Posted: 3rd Jan 2006 19:08
perhaps a sound card that isn't DX7 compatible...

...maybe one day I'll finish a project
Maldragon
19
Years of Service
User Offline
Joined: 29th Dec 2005
Location: Here
Posted: 3rd Jan 2006 22:16
Well, I've been thinking it might be the soundcard too, but I'm pretty sure it's DX7 compatible. Of course, I've sorta forgotten how to check and make sure, so I'm not certain...

"Reality is merely an illusion. Albeit a very persistant one." -Albert Einstein

Login to post a reply

Server time is: 2025-05-23 02:03:27
Your offset time is: 2025-05-23 02:03:27