#include <vorbis/vorbisfile.h>
#include "Engine.hh"
-#include "Exception.hh"
#include "Library.hh"
#include "Log.hh"
#include "Sound.hh"
{
logWarning << "error while loading sound "
<< getName() << std::endl;
- throw Exception(ErrorCode::UNKNOWN_AUDIO_FORMAT, getName());
+ throw Error(Error::UNKNOWN_AUDIO_FORMAT, getName());
}
vorbis_info* vorbisInfo = ov_info(&mOggStream, -1);
void init()
{
- // make sure the engine is initialized
- Engine::getInstance();
-
mIsLoaded = false;
mIsPlaying = false;
mIsLooping = false;