• Welcome to Dark Bit Factory & Gravity.
 

How Do you put Music in?

Started by Hotshot, September 22, 2008

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Hotshot

Hiya all,

I have either Sid, mid, mp3 music to put in for freebasic. Do I need a music library for freebasic or somethings?

:cheers:

Jim

There are libraries you can download from here to play mod or sid or other module files, or Windows functions for playing mid and mp3.  We should be able to help you when you pick your song.

Jim

Challenge Trophies Won:

Hotshot

#2
You mean I should look at UFMOD >>Step By Step Guide<<?

I have pick the music I like but it is 3.46MB( Delerium -Silence )!  :o

hellfire

For mp3 you might want to try fmod.
If the file-size is not acceptable, you can either try a more aggressive encoder (like aac+) or use sid/mod instead.
Challenge Trophies Won:

Jim

For mp3 you can just use Windows.
iirc, something like
mciSendString("play file.mp3",0,0,0);
Same works with mid or wav or any other old-style Windows media format.  For other stuff you need custom libraries.
Jim

Challenge Trophies Won:

Hezad

And if you use Fmod finally, here's a very little tutorial explaining you how to use it, I always use it when I forget the Fmod functions :)

The tut' is for C but (very very) easily usable with FB (the syntax is almost the same if not the same)

http://www.gamedev.net/reference/articles/article2098.asp
Music + Coding :
http://Hezad.no-ip.org

Hosting / Hébergement :
www.hezad.com