BGMUSIC need help
BGMUSIC need help
how do i play an mp3 and loop it? i need it to loop on at begining when the window open's
-
Conquistador
- Posts: 340
- Joined: Wed Sep 28, 2005 4:38 pm
- Location: Canada, Eh!
Check out Audiere. http://audiere.sourceforge.net
Royal Hamilton Light Infantry - http://www.rhli.ca
Paris/Port Dover Pipes'n Drums - http://www.parisdover.ca
Paris/Port Dover Pipes'n Drums - http://www.parisdover.ca
Audiere is the simplest api that you will ever use.
It's that simple. Link to the audiere lib and add it's dll to your app.
Code: Select all
#include "audiere.h"
using namespace audiere;
//in main
//initialize audio
AudioDevicePtr audiereDevice;
OutputStreamPtr stream;
audiereDevice = OpenDevice();
if (!audiereDevice)
return 1;
stream = OpenSound(audiereDevice.get(), "YOURSOUNDFILE.wav", true);
if (!stream)
return 2;
stream->setRepeat(true); //Loop??
stream->setVolume(0.15f); // 15% volume
stream->play();
If it exists in the real world, it can be created in 3d
Sys specs:
AMD 3700+ 64 processor
1.0 gb ram
e-Geforce 6600 graphics 256 mb onboard ram
Sys specs:
AMD 3700+ 64 processor
1.0 gb ram
e-Geforce 6600 graphics 256 mb onboard ram
do you happen to also know anything about one line edit boxes. i have asked others and all they do is link me to the api i looked at the api and still dont get it i would like it if some one could show me an example of how to make a one line edit box. thats probly the only way ill get it becouse the api is not very intuitive i think.
i used the code that you posted and i got the following errors
[Linker error] undefined reference to `_imp__AdrOpenSound@12'
[Linker error] undefined reference to `_imp__AdrOpenSampleSource@8'
[Linker error] undefined reference to `_imp__AdrOpenDevice@8'
ld returned 1 exit status
irrlicht-0.14.0\examples\Project\Makefile.win [Build Error] [StartMenu.exe] Error 1
[Linker error] undefined reference to `_imp__AdrOpenSound@12'
[Linker error] undefined reference to `_imp__AdrOpenSampleSource@8'
[Linker error] undefined reference to `_imp__AdrOpenDevice@8'
ld returned 1 exit status
irrlicht-0.14.0\examples\Project\Makefile.win [Build Error] [StartMenu.exe] Error 1
-
Guest