diff --git a/src/libtomahawk/CMakeLists.txt b/src/libtomahawk/CMakeLists.txt index 80c931efe..f2bd520a0 100644 --- a/src/libtomahawk/CMakeLists.txt +++ b/src/libtomahawk/CMakeLists.txt @@ -292,7 +292,7 @@ set( libSources sip/sipinfo.cpp audio/audioengine.cpp - + audio/audioenginethread.cpp database/database.cpp database/fuzzyindex.cpp @@ -408,6 +408,7 @@ set( libHeaders sip/sipinfo.h audio/audioengine.h + audio/audioenginethread.h database/database.h database/fuzzyindex.h diff --git a/src/libtomahawk/audio/audioengine.cpp b/src/libtomahawk/audio/audioengine.cpp index 25da732b2..6cfc25ef4 100644 --- a/src/libtomahawk/audio/audioengine.cpp +++ b/src/libtomahawk/audio/audioengine.cpp @@ -100,6 +100,7 @@ AudioEngine::~AudioEngine() delete m_audioOutput; delete m_mediaObject; + s_instance = 0; } diff --git a/src/libtomahawk/audio/audioengine.h b/src/libtomahawk/audio/audioengine.h index 0638270d3..5393cf703 100644 --- a/src/libtomahawk/audio/audioengine.h +++ b/src/libtomahawk/audio/audioengine.h @@ -19,8 +19,9 @@ #ifndef AUDIOENGINE_H #define AUDIOENGINE_H -#include -#include +#include +#include +#include #include #include diff --git a/src/libtomahawk/audio/audioenginethread.cpp b/src/libtomahawk/audio/audioenginethread.cpp new file mode 100644 index 000000000..5abb48abc --- /dev/null +++ b/src/libtomahawk/audio/audioenginethread.cpp @@ -0,0 +1,41 @@ +/* === This file is part of Tomahawk Player - === + * + * Copyright 2010-2011, Christian Muehlhaeuser + * + * Tomahawk is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Tomahawk is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Tomahawk. If not, see . + */ + +#include "audioenginethread.h" +#include +#include