Audiere Soun Manager - where ?

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
ASM

Audiere Soun Manager - where ?

Post by ASM »

On http://www.irrlichtnx.mmdevel.de/phpBB2 ... 1399c68edb
was a simple Audiere Sound Manager.

Link is broken. Where I can get it again ?
area51
Posts: 338
Joined: Thu Mar 18, 2004 10:20 pm
Location: UK
Contact:

Post by area51 »

There is one here if you cant find it.

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

Post by hmw »

I did so:

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;

	}
And load it as:

Code: Select all

CSound sc;
fire = sc.LoadSound("mitragliatore.wav", volume);
But if i use for example fire4->play() it plays everything... anf fire plays too.

Whats wrong?
dur

Post by dur »

Sorry!

I have found an error :)
xiuide
Posts: 4
Joined: Mon May 15, 2006 5:49 pm

Post by xiuide »

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
andrei25ni
Posts: 326
Joined: Wed Dec 14, 2005 10:08 pm

Post by andrei25ni »

have you included the files and lib from audiere ?
xiuide
Posts: 4
Joined: Mon May 15, 2006 5:49 pm

Post by xiuide »

D'OH!!!!!

why didnt i catch that myself lol, thanks for reminding me




hmm, i just linked to the lib and the includes....and i still get the same error...any suggestions?
area51
Posts: 338
Joined: Thu Mar 18, 2004 10:20 pm
Location: UK
Contact:

Post by area51 »

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
Last edited by area51 on Fri Feb 25, 2011 12:00 am, edited 1 time in total.
xiuide
Posts: 4
Joined: Mon May 15, 2006 5:49 pm

Post by xiuide »

hmm, ay i have everything set up right...could it be becuase im using Code::Blocks...i would not think so, but ya, ill give Irrwizard a try
Post Reply