Author Topic: How Do you put Music in?  (Read 3295 times)

0 Members and 1 Guest are viewing this topic.

Offline Hotshot

  • DBF Aficionado
  • ******
  • Posts: 2114
  • Karma: 91
    • View Profile
How Do you put Music in?
« on: September 22, 2008 »
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:

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Re: How Do you put Music in?
« Reply #1 on: September 22, 2008 »
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:

Offline Hotshot

  • DBF Aficionado
  • ******
  • Posts: 2114
  • Karma: 91
    • View Profile
Re: How Do you put Music in?
« Reply #2 on: September 22, 2008 »
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
« Last Edit: September 22, 2008 by Hotshot »

Offline hellfire

  • Sponsor
  • Pentium
  • *******
  • Posts: 1294
  • Karma: 466
    • View Profile
    • my stuff
Re: How Do you put Music in?
« Reply #3 on: September 23, 2008 »
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:

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Re: How Do you put Music in?
« Reply #4 on: September 23, 2008 »
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:

Offline Hezad

  • Sponsor
  • Pentium
  • *******
  • Posts: 613
  • Karma: 44
  • I believe .. in Patrick.
    • View Profile
    • Hezad.com Web hosting
Re: How Do you put Music in?
« Reply #5 on: September 23, 2008 »
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