X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FSound.cc;h=f9bdfd7a99622c22bb231405a768e2343c1ab690;hp=b91158a591e318fae4dba1e0ac03aa8ca5871e72;hb=a295f8def17036c8071b56e181364f99a377cae7;hpb=b357615aba1dbde81e3c6999366604e6001010a7 diff --git a/src/Moof/Sound.cc b/src/Moof/Sound.cc index b91158a..f9bdfd7 100644 --- a/src/Moof/Sound.cc +++ b/src/Moof/Sound.cc @@ -36,7 +36,6 @@ #include #include "Engine.hh" -#include "Exception.hh" #include "Library.hh" #include "Log.hh" #include "Sound.hh" @@ -99,7 +98,7 @@ public: { 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); @@ -207,9 +206,6 @@ public: void init() { - // make sure the engine is initialized - Engine::getInstance(); - mIsLoaded = false; mIsPlaying = false; mIsLooping = false;