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 Professional Discussion / Problem Loading Music - Please Help!

Author
Message
Blaft
13
Years of Service
User Offline
Joined: 8th Feb 2013
Location:
Posted: 10th Feb 2013 08:08 Edited at: 10th Feb 2013 08:30
Hey guys Blaft agani, and I need some more help. I am making a game right now, and have everything just about finished, except one thing: music. Okay well I have my main file, and then a Functions, Environment and Music file after. In my main file I have:



Which MusicPlaying is in the Music file. Now in my music file I have:



I just renamed the path I have the file in as Song1.mp3. Now when I compile and run it lags for a quick second or two, and then plays the music. The problem is I can't see anything, just a black screen with music playing. I was hoping someone could help me out, and maybe tell me what else I need to add and where Thanks guys =]

Also if I wanted to add several pieces of music how would I make them play 1 after another? I keep making them play all at once :\
Kezzla
17
Years of Service
User Offline
Joined: 21st Aug 2008
Location: Where beer does flow and men chunder
Posted: 11th Feb 2013 02:50
Um... Maybe this is another forum transfer error, It seems we have lost the question. Please re-post it or maybe the mods can find the original content.

I'm not a complete idiot -- Some parts are just missing.
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 11th Feb 2013 03:18
What?

Kezzla
17
Years of Service
User Offline
Joined: 21st Aug 2008
Location: Where beer does flow and men chunder
Posted: 11th Feb 2013 05:02
Nevermind the post has re-appeared.
are you calling this at the start of your game init?
if you are calling it early on, then nothing will load after it as the program is stuck within you subroutines do loop.

This will keep on looping that section of code. Try removing the loop and just calling the routine from your main game loop. That way it will update everything.

see if that works.
can't really help more than that without more code to go on.

I'm not a complete idiot -- Some parts are just missing.
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 11th Feb 2013 05:10
Also you have an endif missing...

I prefer using STYXs OGG playback... A little more control and less of a licencing hassle... Also I tend to use ... Relative paths...

".\filename.ext"

Login to post a reply

Server time is: 2026-07-07 00:49:31
Your offset time is: 2026-07-07 00:49:31