Page 1 of 1
About playing sounds....
Posted: Tue Aug 30, 2005 2:43 am
by xKlibur
Does irrlicht handle sounds playing in a game or do i have to use native C++ functions for that?
thanX
Posted: Tue Aug 30, 2005 2:53 am
by bitplane
irrlicht is a graphics library only, you'll need an audio library.
audiere is a popular choice.
Posted: Tue Aug 30, 2005 3:48 am
by xKlibur
Thanx, but i can't find any tutorial on the site...I need to know how to implement the audiere to code to play a sound "sound.wav".
Posted: Tue Aug 30, 2005 8:49 am
by cpprules
I have tryed audiere and it sucks. FMod Rules!!!!!!
it is very simply to use, and has much more suported formats( like midi ),
and on varius platforms.
Praise FMOD...
Posted: Tue Aug 30, 2005 9:06 am
by Guest
Why does "Audiere suck" exactly? for basic load and play of sound effects and music (ogg etc)??
And more to the point - FMOD is NOT FREE for commercial games - $1000 a pop IIRC??
Posted: Tue Aug 30, 2005 9:08 am
by cpprules
Audiere doesn't support MIDI which is most important to me 'cause i make old console style rpg's which must have midi. FMOD has a better documentation, forums, much more platforms are supported. And i'm not planing to make a commercial game.
Posted: Tue Aug 30, 2005 11:32 am
by MikeR
They don't get any easier than Audiere.
Code: Select all
using namespace audiere;
#pragma comment(lib, "audiere.lib")
//initialize audio in main
AudioDevicePtr audiereDevice;
OutputStreamPtr stream;
audiereDevice = OpenDevice();
if (!audiereDevice)
return 1;
stream = OpenSound(audiereDevice.get(), "sound.wav", true);
if (!stream)
return 2;
stream->setRepeat(false);
stream->setVolume(0.5f); // 25% volume
stream->play();
Posted: Tue Aug 30, 2005 11:50 am
by cpprules
// well...
#include <fmod.h>
int main()
{
FSOUND_Init(44100, 32, 0);
FMUSIC_MODULE* Song;
Song = FMUSIC_LoadSong("hell.mid");
FMUSIC_PlaySong(Song);
return 0;
}
Posted: Wed Aug 31, 2005 12:37 am
by Acki
Yes, Audiere is preatty helpfull for playing backgound music and menu sound, etc.
For in game sounds you should use a 3D-audio lib, like FMod or OpenAL (my prefered lib) !!!
Audiere is that simple structured, taht there is only a little text file as dokumentation includet...
Posted: Wed Aug 31, 2005 7:00 pm
by Reiyn
Fmod is only
one DLL while Audiere seems to need about
4 or so... =/
Also I
can get Fmod working easily with
Dev-CPP however Audiere
doesn't like DEVCPP
I am curious though, getting FMOD to load an mp3 from a .zip is really convoluted and complicated enough I
haven't figured it out or found support here on the forums for it.
...
Can Audiere easily read zipped sound files? (ie: utilize the file structure of Irrlicht?)
Posted: Wed Aug 31, 2005 9:23 pm
by MikeR
If you can get fmod working easily, use it.
Audiere uses 1 dll. Don't know where you get 4 from, and it compiles with dev-cpp without a problem.
Personally, I will be using openal tho. It's a better and more complete library.
Posted: Thu Sep 01, 2005 10:02 am
by cpprules
FMod has a better community. But I would never even think of it if Audiere supports MIDI. And not just that, When Audiere loads a Sound Sample it can't be reloaded any more, and it can't work with arrays.
Posted: Thu Sep 01, 2005 11:42 am
by Midnight
Where is the legal documentation for OpenAL??
I want to use it for 3d sound eventually since it seems to be the best choice for potentially commercial games but I can't seem to find the info about the license
Posted: Thu Sep 01, 2005 12:07 pm
by cpprules
I've found this on wiki:
OpenAL is open source and released under the terms of the Lesser General Public Licence (LGPL) and as such is free to use and develop with.