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 / my music wont load :-(

Author
Message
Osiris
20
Years of Service
User Offline
Joined: 6th Aug 2004
Location: Robbinsdale, MN
Posted: 25th Sep 2004 14:50
does anyone know why this wont load (and it is in midi format and the source is in the same folder as the music
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 25th Sep 2004 15:31
I just tested a few with this snippet and they ran fine.




does the midi play in quicktime or another audio playing program?
re install your sound card drivers if it doesnt.

DB might not like that midi file so inspect the midi file in case theres something obvious DB doesnt like.

If no-one gives your an answer to a question you have asked, consider:- Is your question clear.- Did you ask nicely.- Are you showing any effort to solve the problem yourself
Osiris
20
Years of Service
User Offline
Joined: 6th Aug 2004
Location: Robbinsdale, MN
Posted: 26th Sep 2004 00:04
yes the midi does play in everything else when i mad my comp entery I hads to use wav music instead of midi because i couldand get any to work
Osiris
20
Years of Service
User Offline
Joined: 6th Aug 2004
Location: Robbinsdale, MN
Posted: 26th Sep 2004 00:23
i used you code snipit and instead of saying it dosent exist it says it cant be loaded
Dodo
20
Years of Service
User Offline
Joined: 8th Aug 2004
Location: eating lunch
Posted: 26th Sep 2004 00:49 Edited at: 26th Sep 2004 00:50
Osirius, when loading things such as objects and music, you have to make sure that the ending of the filename is correct (.JPG,.X,.MID). In your code you tried to load the music with a .MIDI ending. You should load it like this, With a .MID ending:



this should work, although I'm not sure why indi didn't spot this. Hope it works .


Thanks to Ilya for the Logo!
Osiris
20
Years of Service
User Offline
Joined: 6th Aug 2004
Location: Robbinsdale, MN
Posted: 26th Sep 2004 00:57
nope thanx anyways dodo but im thinking it eather my MIDI or darkbasic because everything else loads just fine but never the musci (but its probly not darkbasic lol)
Dodo
20
Years of Service
User Offline
Joined: 8th Aug 2004
Location: eating lunch
Posted: 26th Sep 2004 01:15
how about giving us a download link to it then, so that we can test it for ourselves, and then make code that does work?


Thanks to Ilya for the Logo!
Osiris
20
Years of Service
User Offline
Joined: 6th Aug 2004
Location: Robbinsdale, MN
Posted: 26th Sep 2004 01:17
where can i put it to download?
Osiris
20
Years of Service
User Offline
Joined: 6th Aug 2004
Location: Robbinsdale, MN
Posted: 26th Sep 2004 02:12
oh yeah im using dbc
Dodo
20
Years of Service
User Offline
Joined: 8th Aug 2004
Location: eating lunch
Posted: 26th Sep 2004 04:20
try freewebs or geocities seeing as dbspot is dead


Thanks to Ilya for the Logo!
Osiris
20
Years of Service
User Offline
Joined: 6th Aug 2004
Location: Robbinsdale, MN
Posted: 26th Sep 2004 09:16
yeah i cant find anywhere that will do it sry maybe if i put it in the reporting bugs forum???
Game pro
20
Years of Service
User Offline
Joined: 21st Mar 2004
Location: Usa
Posted: 30th Sep 2004 09:26
Ok I have Dbpro. I am not very good at programming yet in fact i am still learning the language. Anyways I am having the same problem as Osirus. It says that darkbasic cannot load the midi file. Can you give me any steps on how to load music? Like if I need to put it in a special folder or something. Secondly Could you also give me source code on how to load the music? It would help me very much thanx.

I am a newb at DbasicPro creator.
Game pro
20
Years of Service
User Offline
Joined: 21st Mar 2004
Location: Usa
Posted: 30th Sep 2004 09:31
I would also like to know how to make a 2d level for a game. like the code or such.

I am a newb at DbasicPro creator.

Login to post a reply

Server time is: 2024-11-27 10:48:54
Your offset time is: 2024-11-27 10:48:54