What is the most simplest way for loading sounds?

The forum for all of your Freebasic needs!

Moderators: Pete, Mods

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

What is the most simplest way for loading sounds?

Post by BigBadKing »

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: 2466
Joined: Mon Aug 21, 2006 12:40 am
Location: Pittsburgh, PA

Post by burger2227 »

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 : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0
Nodtveidt
Veteran
Posts: 826
Joined: Sun Jul 25, 2004 4:24 am
Location: Quebradillas, PR
Contact:

Post by Nodtveidt »

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: 83
Joined: Fri Oct 09, 2009 12:39 pm
Location: Space
Contact:

I found it! thanks.

Post by BigBadKing »

Thanks, i found the solution.
User avatar
SumoAlien
Newbie
Posts: 9
Joined: Sun Oct 11, 2009 1:49 pm

Post by SumoAlien »

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... :)
chung
Coder
Posts: 42
Joined: Tue Apr 20, 2010 8:41 am
Contact:

Post by chung »

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...
Post Reply