From 2a9a78ddd34ac86dad084dc1102320645963df1c Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Tue, 27 Nov 2007 19:10:13 +0000 Subject: 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 --- lib/soundcore.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/soundcore.cpp') 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 *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(); -- cgit v1.2.3-13-gbd6f