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.

Music & Sound FX / Noob Question about embedding sound

Author
Message
Sydric
9
Years of Service
User Offline
Joined: 18th Jan 2012
Location:
Posted: 18th Jan 2012 22:57
OK so from what I have read this SHOULD work but doesn't.

I have DarkBASIC Professional. I have a WAV file in "Directory X".

I want to embed it in the project. I go to "Media" and "ADD" the file. I check off that I want to copy it to the project directory.

The file is called "Action1.wav".

In my code I say:



My understanding is that with embedded files you just reference the filename (no path needed) and it should work.

I get "Runtime Error 3002 [Could not load sound] at line 10"

What gives? I am sorry if this is answered somewhere else but I can't find it. Even the reference "DarkBASIC for the Absolute Beginner" didn't help.

THANK YOU

Login to post a reply

Server time is: 2021-09-27 11:23:12
Your offset time is: 2021-09-27 11:23:12