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.

Newcomers DBPro Corner / Uploading music into my games

Author
Message
GenTekZ
20
Years of Service
User Offline
Joined: 30th Dec 2003
Location: Virtual Reality
Posted: 4th Jan 2004 22:12
I dont know how to upload music from the files that came with darkbasic. i want to upload boss from the fantasy section. how can i post this in my game?!?
Bishop
21
Years of Service
User Offline
Joined: 18th Dec 2002
Location: In my favorite chair...
Posted: 5th Jan 2004 00:24
load music "filename",1

then to use it

play music 1
loop music 1

"When you were born, you cried and the world rejoiced. Live so when you die, the world cries and you rejoice."
GenTekZ
20
Years of Service
User Offline
Joined: 30th Dec 2003
Location: Virtual Reality
Posted: 5th Jan 2004 02:42
i cant get it to load in. the file name is Boss and its a midi file. how should that look? the music came with DB

www.GenTekZ.tk
BearCDPOLD
20
Years of Service
User Offline
Joined: 16th Oct 2003
Location: AZ,USA
Posted: 5th Jan 2004 02:50
As Bishop said,

LOAD MUSIC "boss.midi",1

and

PLAY MUSIC 1

or

LOOP MUSIC 1

should work. Maybe try upgrading to DarkBASIC 1.13 if you haven't.
Are you using Classic or Pro?

Juvenile Industries
Current Project: The First Room (FPS)
Soon to come:An rts, and a snowball fight game
GenTekZ
20
Years of Service
User Offline
Joined: 30th Dec 2003
Location: Virtual Reality
Posted: 5th Jan 2004 02:55
it still doesnt work and im using classic version 1.12 cause i cant upgrade

www.GenTekZ.tk
BearCDPOLD
20
Years of Service
User Offline
Joined: 16th Oct 2003
Location: AZ,USA
Posted: 5th Jan 2004 03:18
That is strange......can you provide some source code?

Juvenile Industries
Current Project: The First Room (FPS)
Soon to come:An rts, and a snowball fight game
Bishop
21
Years of Service
User Offline
Joined: 18th Dec 2002
Location: In my favorite chair...
Posted: 5th Jan 2004 17:55 Edited at: 5th Jan 2004 17:57
test 1:

are your speakers on?



i have no idea why that wouldn't work unless you don't have your sound system working properly.....do other audio programs work?

"When you were born, you cried and the world rejoiced. Live so when you die, the world cries and you rejoice."
Eric T
21
Years of Service
User Offline
Joined: 7th Apr 2003
Location: My location is where I am at this time.
Posted: 5th Jan 2004 18:01
Its "boss.mid" not "boss.midi", get your file extensions right.

And if that don't work then make sur eyou have the directory right so..

Load Music "c:/program files/darkbasic/boss.mid", 1 (or whatevr the directory is for the midi)

play music 1

If i ain't here, i'm probably playing DOA2 Hardcore on the PS2
Former name : Liquidz_Snake
BearCDPOLD
20
Years of Service
User Offline
Joined: 16th Oct 2003
Location: AZ,USA
Posted: 6th Jan 2004 06:51
Oops... typo. And this probably won't solve anything, but is your sound card really really out of date, or do you have an updated version of directx?

Juvenile Industries
Current Project: The First Room (FPS)
Soon to come:An rts, and a snowball fight game
GenTekZ
20
Years of Service
User Offline
Joined: 30th Dec 2003
Location: Virtual Reality
Posted: 7th Jan 2004 00:30
i got music in my games but now i wonder how i can get the music to play in the game on another persons computer? it doesnt work

www.GenTekZ.tk
BearCDPOLD
20
Years of Service
User Offline
Joined: 16th Oct 2003
Location: AZ,USA
Posted: 7th Jan 2004 02:03
How many computers have you tried it on? It is probably something wrong with the person's system if it works on most others.

Juvenile Industries
Current Project: The First Room (FPS)
Soon to come:An rts, and a snowball fight game
GenTekZ
20
Years of Service
User Offline
Joined: 30th Dec 2003
Location: Virtual Reality
Posted: 7th Jan 2004 02:45
the games work fine but the music just wont play. ive tried 3 other peoples comps

www.GenTekZ.tk
diablo fan
20
Years of Service
User Offline
Joined: 7th Jan 2004
Location: michigan usa
Posted: 8th Jan 2004 06:00
this is just a stab in the dark....but it solved my sound /music probs

try

load sound
play sound

sometimes you need "sound" instead of "music" i havent delt with midi
so i dont know about that one. i know wav is sound and mp3 is music

me

Login to post a reply

Server time is: 2024-09-21 15:43:21
Your offset time is: 2024-09-21 15:43:21