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 Discussion / help with music files

Author
Message
Nunez12
19
Years of Service
User Offline
Joined: 29th Dec 2005
Location:
Posted: 30th Dec 2005 01:34
i just bought darkbasic, the computer language one, well i was just going through the tutorials, well anyways i was on the one that teaches you how to put music files in, well, can i put wav files, i tried and it says RUNTIME WARNING, MUSIC CANNOT BE LOADED. Well, can i only use midi files or is there someway to do wav also, please help me, even though i'm a huge beginner.
Bluestar4
19
Years of Service
User Offline
Joined: 19th Dec 2005
Location: USA
Posted: 30th Dec 2005 05:46 Edited at: 30th Dec 2005 05:47
for wav & mp3 files use this :

for midi files use


Bluestar4~
andre
19
Years of Service
User Offline
Joined: 19th Dec 2005
Location:
Posted: 30th Dec 2005 06:01
dude i dont have the software and i now that.

DARK_VIRUS
Trisoft
-------------------------------------------------------------------if you worry you die and if you dont worry you die. f#%k worry
Bluestar4
19
Years of Service
User Offline
Joined: 19th Dec 2005
Location: USA
Posted: 30th Dec 2005 06:05
but he did not know or he would not have ask

Bluestar4~
Sven B
20
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 30th Dec 2005 11:55
I thoughts mp3's could also be loaded as a music file...

http://darkbasic.thegamecreators.com/?f=features
SimSmall
20
Years of Service
User Offline
Joined: 7th Aug 2004
Location: United Kingdom
Posted: 30th Dec 2005 15:45 Edited at: 30th Dec 2005 15:56
In simpler terms (if that can get any simpler) the list in Sven B's link shows:

Sound can load:
*.wav
*.mp2
*.mp3

music can load:
*.mid
*.rmi
*.mp2
*.mp3
*.wma
*.s3m
*.it
*.xt (whatever these things are)
*.mod (Again, not sure specifically what they are other than music that DBC supports)

as you can see, only waves and midis are specific. if neither work, open it up with sound recorder, and re-save your sound as 16-bit (preferably mono, but that shouldn't matter)

mp2 files need to be loaded with "Load animation" IF they contain any video.

Edit: Sorry, almost forgot - I've now underlined 2 formats, if you don't have the enhanced version, these are all you can load...

...maybe one day I'll finish a project
Bluestar4
19
Years of Service
User Offline
Joined: 19th Dec 2005
Location: USA
Posted: 30th Dec 2005 19:27
I have noticed that the manual itself is has very few references on types allowed for each load command.
here is a good list though -
load sound - supports .mp3,.wav,.mp2
load music - supports ->.mid and those listed above
load ojbect supports .3ds ,.x
load image supports .jpg,.bmp,.png
load animation supports, .avi,.wmv
load bitmap supports .bmp
if I left out anything and you know that DBC supports it, then please post it so everybody will know.

Bluestar4~
Lavitz
20
Years of Service
User Offline
Joined: 16th Jan 2005
Location: Raddix Studio
Posted: 30th Dec 2005 21:05
In other words, the basics.

I am no noob.
blanky
20
Years of Service
User Offline
Joined: 3rd Aug 2004
Location: ./
Posted: 30th Dec 2005 23:34
Load music can load anything that you have a DirectShow filter for (i.e., stuff that can be played in Windows Media Player).

If you install http://tobias.everwicked.com/oggds.htm for example, then you can load .ogg files in with Load Music.



Support the AAANJL by doing nothing! Visit teh site below..
Bluestar4
19
Years of Service
User Offline
Joined: 19th Dec 2005
Location: USA
Posted: 31st Dec 2005 00:25
the interesting thing about that is , that if you have to have a plug in to be installed other than what the system supports, then the user of the program will then have to download the plug-in to just to get to use the program you just made ! imagine making a that the user download 3 or 4 extra plug-ins from sources other than the game creator. I can only imagine how many people would download and play it.

Bluestar4~
blanky
20
Years of Service
User Offline
Joined: 3rd Aug 2004
Location: ./
Posted: 31st Dec 2005 22:20
You include the appropriate files with your program, like when using DLLs.

Support the AAANJL by doing nothing! Visit teh site below..
Bluestar4
19
Years of Service
User Offline
Joined: 19th Dec 2005
Location: USA
Posted: 1st Jan 2006 03:27
yes you could do that. however,.. If you intend to do this you should probably write the authors of the plug-ins first to request some kind of distribution license for the simple fact that distribution of a copyrighted item is subject to international copyright laws ect,...

Bluestar4~
blanky
20
Years of Service
User Offline
Joined: 3rd Aug 2004
Location: ./
Posted: 1st Jan 2006 21:36
Excellent point; i thought it said it was GPL'd, but it isn't and there isn't any links to the source code.

Hehe, I remember when someone e-mailed me off these forums asking if they could use my 'accidental polygon flight simulator' in part of a screensaver

Support the AAANJL by doing nothing! Visit teh site below..
SimSmall
20
Years of Service
User Offline
Joined: 7th Aug 2004
Location: United Kingdom
Posted: 1st Jan 2006 21:47
Quote: "If you install http://tobias.everwicked.com/oggds.htm for example, then you can load .ogg files in with Load Music.
"


I've had the Ogg Splitter/Vorbis Decoder for about a year now, and never knew that...

...maybe one day I'll finish a project
SimSmall
20
Years of Service
User Offline
Joined: 7th Aug 2004
Location: United Kingdom
Posted: 3rd Jan 2006 20:00
Brand new post (since edit post won't alert viewers the post has changed)

This ogg music thing is a DB Pro thing only - at least I couldn't get DBC to accept the ogg file.

...maybe one day I'll finish a project
Bluestar4
19
Years of Service
User Offline
Joined: 19th Dec 2005
Location: USA
Posted: 3rd Jan 2006 21:13
I would like to add that if you use mp3 or midi files and are looping it , that programs suspend for a brief period of time when they start the loop over. a good example of this is included in the my projects folder that comes with dbc (the one called tank). if you play the game long enough it will appear to freeze and lock up - then continue like nothing was wrong.

Bluestar4~
blanky
20
Years of Service
User Offline
Joined: 3rd Aug 2004
Location: ./
Posted: 4th Jan 2006 19:10
@SimSmall: Sorry, I should check stuff before I post it

Got DBP recently and I knew it worked in there... Still, DB uses the DirectShow filter set (afaik) so why doesn't it pick it up...?

Support the AAANJL by doing nothing! Visit teh site below..
Bluestar4
19
Years of Service
User Offline
Joined: 19th Dec 2005
Location: USA
Posted: 7th Jan 2006 04:08
ok , i did some more research , in regards to my earlier post in this thread besides .bmp,jpg,and png the load bitmap command can also load the following formats :
.DDS .DIB .PCX .PSD .RLE .TGA .TIF
it is my guess that load image also supports loading of all these file types

Bluestar4~
UFO
19
Years of Service
User Offline
Joined: 11th Oct 2005
Location:
Posted: 7th Jan 2006 15:41
AWESOME!!! I never knew mp3s work!!!!!!!!!1111oneoneone


Hippopotomonstrosesquippedaliophobia-Fear of long words
Bluestar4
19
Years of Service
User Offline
Joined: 19th Dec 2005
Location: USA
Posted: 8th Jan 2006 12:55
yes , they work, as easy as

however, as posted above, if you it loop continually then the program appears to lock when it starts to loop again. I believe this is a bug in the codec itself but could also be because it might be reloading the file. either way , there is a work around to this but will have to do a little more testing.

Bluestar4~

Login to post a reply

Server time is: 2025-05-23 04:22:00
Your offset time is: 2025-05-23 04:22:00