On http://www.irrlichtnx.mmdevel.de/phpBB2 ... 1399c68edb
was a simple Audiere Sound Manager.
Link is broken. Where I can get it again ?
Audiere Soun Manager - where ?
There is one here if you cant find it.
http://cvs.sourceforge.net/viewcvs.py/i ... ork/sound/
usage:
________
Sebring
http://cvs.sourceforge.net/viewcvs.py/i ... ork/sound/
usage:
Code: Select all
CAudiereSoundManager* m_pSoundManager = new CAudiereSoundManager();
...
// initilise manager
m_pSoundManager->Load(); // remove the reference to CGameManager in constructor as not needed.
// play theme, looping mp3 sound
m_pSoundManager->PlaySong("media/sounds/IrrlichtTheme.mp3");
// play sound effect, single play .wav
m_pSoundManager->PlaySound("media/sounds/explode.wav");
Sebring
Last edited by area51 on Thu Feb 24, 2011 11:58 pm, edited 1 time in total.
-
hmw
I did so:
And load it as:
But if i use for example fire4->play() it plays everything... anf fire plays too.
Whats wrong?
Code: Select all
OutputStreamPtr CSound::LoadSound(const char *SoundPath, int volume){
OutputStreamPtr temp(OpenSound(m_pAudiereDevice,SoundPath, false));
m_pSound= temp;
temp=NULL;
if (!m_pSound) {
std::cout<<SoundPath<<"Was not found"<<std::endl;
}else{
m_pSound->setRepeat(false);
m_pSound->setVolume(volume/100.f); // 50% volume
}
return m_Stream;
}
bool CSound::Init(){
m_pAudiereDevice = OpenDevice();
if (!m_pAudiereDevice)
return false;
}
Code: Select all
CSound sc;
fire = sc.LoadSound("mitragliatore.wav", volume);
Whats wrong?
I don't want to revive such an old topic but, I am new to irrlicht, and I cam across this post, I got the sound manager files from irrwizard cvs, but when I go to test everything, i get this error:
undefined reference to CAudiereSoundManager::CAudiereSoundManager()'
can anyone help out?
btw, I was just using the hello world example to test out
undefined reference to CAudiereSoundManager::CAudiereSoundManager()'
can anyone help out?
btw, I was just using the hello world example to test out
-
andrei25ni
- Posts: 326
- Joined: Wed Dec 14, 2005 10:08 pm
Remember to add the include for the AudiereSoundManager.h at the top of your main.cpp.
IrrWizard 1.0 now has the Auideire and FMOD sound manager implemented, so you could download that and give it a try.
Use 'Core' or 'Full' framework and run in debug. Change to either 'Auidiere' or 'FMOD' in the config.xml file.
________
Plymouth cabana history
IrrWizard 1.0 now has the Auideire and FMOD sound manager implemented, so you could download that and give it a try.
Use 'Core' or 'Full' framework and run in debug. Change to either 'Auidiere' or 'FMOD' in the config.xml file.
________
Plymouth cabana history
Last edited by area51 on Fri Feb 25, 2011 12:00 am, edited 1 time in total.