diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2007-11-27 19:10:13 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2007-11-27 19:10:13 +0000 |
| commit | 2a9a78ddd34ac86dad084dc1102320645963df1c (patch) | |
| tree | e4d2250b04357ffd7b0c8f324c7ca09ea7014277 /lib/soundcore.cpp | |
| parent | 10923b3e9f495e70a23d4dcbc3c891b7517e667f (diff) | |
| download | qmmp-2a9a78ddd34ac86dad084dc1102320645963df1c.tar.gz qmmp-2a9a78ddd34ac86dad084dc1102320645963df1c.tar.bz2 qmmp-2a9a78ddd34ac86dad084dc1102320645963df1c.zip | |
fixed seeking; added effect plugin support; added sample rate converter plugin
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@190 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'lib/soundcore.cpp')
| -rw-r--r-- | lib/soundcore.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/soundcore.cpp b/lib/soundcore.cpp index 6c6f058e7..37c28e5f5 100644 --- a/lib/soundcore.cpp +++ b/lib/soundcore.cpp @@ -25,6 +25,7 @@ #include "decoderfactory.h" #include "constants.h" #include "streamreader.h" +#include "effect.h" #include "soundcore.h" @@ -64,6 +65,8 @@ SoundCore::SoundCore(QObject *parent) QList<DecoderFactory*> *decoderFactories = Decoder::decoderFactories(); foreach(DecoderFactory* df, *decoderFactories) qApp->installTranslator(df->createTranslator(this)); + + Effect::effectFactories(); } @@ -234,6 +237,9 @@ void SoundCore::seek(int pos) { if (m_output && m_output->isRunning()) { + m_output->recycler()->mutex()->lock (); + m_output->recycler()->clear (); + m_output->recycler()->mutex()->unlock (); m_output->mutex()->lock (); m_output->seek(pos); m_output->mutex()->unlock(); |
