What is the most simplest way for loading sounds?

The forum for all of your Freebasic needs!

Moderators: Pete, Mods

User avatar
BigBadKing
Veteran
Posts: 85
Joined: Fri Oct 09, 2009 12:39 pm
Location: Space
Contact:

What is the most simplest way for loading sounds?

Postby BigBadKing » Fri Oct 09, 2009 1:04 pm

i design games in FreeBasic, now i want to make a game which can
play sounds, and now can i ask you that "what is the most simplest
way for playing sounds in a game". thanks for your attention.
<a href="http://mccorp.orgfree.com">Macselent Corporation Offical Site</a>

User avatar
burger2227
Veteran
Posts: 2144
Joined: Mon Aug 21, 2006 12:40 am
Location: Pittsburgh, PA

Postby burger2227 » Fri Oct 09, 2009 3:10 pm

Try QB64. It has sound functions that are simple to use.

Otherwise you may wait a long time here for an answer. Try the FB site.
Please acknowledge and thank members who answer your questions!
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : http://www.QB64.NET
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0

User avatar
Nodtveidt
Veteran
Posts: 826
Joined: Sun Jul 25, 2004 4:24 am
Location: Quebradillas, PR
Contact:

Postby Nodtveidt » Fri Oct 09, 2009 6:57 pm

burger, this forum is not for promoting QB64. Keep that propaganda in the QB forum.

BigBadKing, look into libraries such as FMOD, Bass, FBsound, etc. There are plenty to choose from.

User avatar
BigBadKing
Veteran
Posts: 85
Joined: Fri Oct 09, 2009 12:39 pm
Location: Space
Contact:

I found it! thanks.

Postby BigBadKing » Sat Oct 10, 2009 4:26 am

Thanks, i found the solution.

User avatar
SumoAlien
Newbie
Posts: 9
Joined: Sun Oct 11, 2009 1:49 pm

Postby SumoAlien » Sun Oct 11, 2009 1:58 pm

tried OpenGl? it has 3D sound, that means full control of the sound. for an example, goto your freebasic directory then to the examples and to finish to the sound direction. fire up OpenGL.bas, and use it... :)

User avatar
chung
Coder
Posts: 42
Joined: Tue Apr 20, 2010 8:41 am
Contact:

Postby chung » Tue Apr 20, 2010 9:06 am

personnaly, i use current windows system mcisendstring api to load and play mp3 files and it works.

(no added software needed)

Code: Select all

#include "win/mmsystem.bi"

Sub initsounds
   Dim As String soundfic
   soundfic="sounds/slash.mp3"
   mcisendstring("open "+chr$(34)+soundfic+chr$(34)+" shareable alias slash",0,0,0)
   soundfic="sounds/impact.mp3"
   mcisendstring("open "+chr$(34)+soundfic+chr$(34)+" shareable alias impact",0,0,0)
'etc...
End Sub
Sub closesounds 'on exit
   mcisendstring("close slash",0,0,0)
   mcisendstring("close impact",0,0,0)
End Sub
Sub soundslash
   mcisendstring("play slash from 0",0,0,0)
End Sub
Sub soundimpact
   mcisendstring("play impact from 0",0,0,0)
End Sub
'etc...


Return to “Freebasic Questions & Answers”

Who is online

Users browsing this forum: No registered users and 4 guests