Welcome,
Guest
. Please
login
or
register
.
April 19, 2026
Home
Help
Search
Calendar
Login
Register
Dark Bit Factory & Gravity
»
PROGRAMMING
»
Freebasic
»
How Do you put Music in?
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: How Do you put Music in? (Read 3294 times)
0 Members and 1 Guest are viewing this topic.
Hotshot
DBF Aficionado
Posts: 2114
Karma: 91
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?
Logged
MY WEBSITE
http://www.flashtro.com/index.php
Jim
Founder Member
DBF Aficionado
Posts: 5301
Karma: 402
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
Logged
Challenge Trophies Won:
Hotshot
DBF Aficionado
Posts: 2114
Karma: 91
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 )!
«
Last Edit: September 22, 2008 by Hotshot
»
Logged
MY WEBSITE
http://www.flashtro.com/index.php
hellfire
Sponsor
Pentium
Posts: 1294
Karma: 466
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.
Logged
Challenge Trophies Won:
Jim
Founder Member
DBF Aficionado
Posts: 5301
Karma: 402
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
Logged
Challenge Trophies Won:
Hezad
Sponsor
Pentium
Posts: 613
Karma: 44
I believe .. in Patrick.
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
Logged
Music + Coding :
http://Hezad.no-ip.org
www.hezad.com
Print
Pages: [
1
]
Go Up
« previous
next »
Dark Bit Factory & Gravity
»
PROGRAMMING
»
Freebasic
»
How Do you put Music in?