When I was trying to implement a sound-function for a machinegun today, I encountered a little problem:
Audiere uses the Soundeffect-Class, to let you play one sound multiple times, so it's perfect for a machine-gun. However, when I try to compile my program, I get an error message
Here's the code-snippet:
Code: Select all
SoundEffect *mg = OpenSoundEffect(this->audioDevice, "../media/mg.wav", MULTIPLE);
Every other audiere-function works fine, everything is included correctly, I only cannot use the Soundeffect-classerror C2679: binary '=' : no operator found which takes a right-hand operand of type 'audiere::SoundEffectPtr' (or there is no acceptable conversion) c:\Misantrophy\SVN\source\AudiereManager.cpp
I also tried this (even if it should not be different from the code above):
Code: Select all
SoundEffectPtr mg(OpenSoundEffect(this->audioDevice, "../media/mg.wav", MULTIPLE);