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 / Loading music?

Author
Message
9911MU51C
5
Years of Service
User Offline
Joined: 4th Feb 2014
Location:
Posted: 4th Feb 2014 04:15
Hello, I'm pretty new to DarkBASIC and I'm having a problem. Whenever I try to load a song, it gives me "runtime error 3502 - could not load music at line 21"

I've tried using .mp3 and .wav, and tried load sound and load music, nothing seems to work

LOAD MUSIC "Rick Astley - Never Gonna Give You Up.wav",1

CLS RGB (0,0,255,)
TEXT 10,180, "HELLO"
CENTER TEXT 75,180,N$
TEXT 100,180, "THIS IS A SIMPLE MUSIC EXPERIMENT. PRESS THE FOLLOWING TO INTERACT-"
TEXT 10,200, "1 TO PLAY ANTIX - HANDS UP"
TEXT 10,220, "2 TO PLAY ATREYU - HONOR"
TEXT 10,240, "3 TO PLAY AVENGED SEVENFOLD - HAIL TO THE KING"
TEXT 10,260, "4 TO PLAY BREAKING BENJAMIN - I WILL NOT BOW"
TEXT 10,280, "5 TO PLAY BULLET FOR MY VALENTINE - HIT THE FLOOR"
TEXT 10,300, "6 TO PLAY DEF LEPPARD - POUR SOME SUGAR ON ME"
TEXT 10,320, "7 TO PLAY FIVE FINGER DEATH PUNCH - HARD TO SEE"
TEXT 10,340, "8 TO PLAY FLOBOTS - WE ARE WINNING"
TEXT 10,360, "9 TO PLAY TRIVIUM - DOWN FROM THE SKY"
TEXT 10,380, "0 TO PLAY JUSTIN BIEBER - BABY"

DO
IF KEYSTATE(11) = 1 THEN PLAY MUSIC 1
LOOP

Login to post a reply

Server time is: 2019-04-21 18:24:47
Your offset time is: 2019-04-21 18:24:47