aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/plugins/Effect/Effect.pro2
-rw-r--r--src/plugins/Effect/stereo/CMakeLists.txt68
-rw-r--r--src/plugins/Effect/stereo/effectstereofactory.cpp64
-rw-r--r--src/plugins/Effect/stereo/effectstereofactory.h44
-rw-r--r--src/plugins/Effect/stereo/settingsdialog.cpp61
-rw-r--r--src/plugins/Effect/stereo/settingsdialog.h51
-rw-r--r--src/plugins/Effect/stereo/settingsdialog.ui123
-rw-r--r--src/plugins/Effect/stereo/stereo.pro44
-rw-r--r--src/plugins/Effect/stereo/stereoplugin.cpp86
-rw-r--r--src/plugins/Effect/stereo/stereoplugin.h48
-rw-r--r--src/plugins/Effect/stereo/translations/stereo_plugin_cs.ts55
-rw-r--r--src/plugins/Effect/stereo/translations/stereo_plugin_de.ts55
-rw-r--r--src/plugins/Effect/stereo/translations/stereo_plugin_es.ts55
-rw-r--r--src/plugins/Effect/stereo/translations/stereo_plugin_it.ts55
-rw-r--r--src/plugins/Effect/stereo/translations/stereo_plugin_ja.ts55
-rw-r--r--src/plugins/Effect/stereo/translations/stereo_plugin_lt.ts55
-rw-r--r--src/plugins/Effect/stereo/translations/stereo_plugin_nl.ts55
-rw-r--r--src/plugins/Effect/stereo/translations/stereo_plugin_pl.ts55
-rw-r--r--src/plugins/Effect/stereo/translations/stereo_plugin_ru.ts55
-rw-r--r--src/plugins/Effect/stereo/translations/stereo_plugin_tr.ts55
-rw-r--r--src/plugins/Effect/stereo/translations/stereo_plugin_uk_UA.ts55
-rw-r--r--src/plugins/Effect/stereo/translations/stereo_plugin_zh_CN.ts55
-rw-r--r--src/plugins/Effect/stereo/translations/stereo_plugin_zh_TW.ts55
-rw-r--r--src/plugins/Effect/stereo/translations/translations.qrc18
24 files changed, 1323 insertions, 1 deletions
diff --git a/src/plugins/Effect/Effect.pro b/src/plugins/Effect/Effect.pro
index 9b190d4a0..64fc2a658 100644
--- a/src/plugins/Effect/Effect.pro
+++ b/src/plugins/Effect/Effect.pro
@@ -1,7 +1,7 @@
include (../../../qmmp.pri)
TEMPLATE = subdirs
-SUBDIRS += srconverter crossfade
+SUBDIRS += srconverter crossfade stereo
contains(CONFIG, BS2B_PLUGIN){
message(***********************)
message(* BS2B plugin enabled *)
diff --git a/src/plugins/Effect/stereo/CMakeLists.txt b/src/plugins/Effect/stereo/CMakeLists.txt
new file mode 100644
index 000000000..3c9daf6c0
--- /dev/null
+++ b/src/plugins/Effect/stereo/CMakeLists.txt
@@ -0,0 +1,68 @@
+project(libbs2b)
+
+cmake_minimum_required(VERSION 2.4.7)
+
+if(COMMAND cmake_policy)
+cmake_policy(SET CMP0003 NEW)
+endif(COMMAND cmake_policy)
+
+# qt plugin
+ADD_DEFINITIONS( -Wall )
+ADD_DEFINITIONS(${QT_DEFINITIONS})
+ADD_DEFINITIONS(-DQT_PLUGIN)
+ADD_DEFINITIONS(-DQT_NO_DEBUG)
+ADD_DEFINITIONS(-DQT_SHARED)
+ADD_DEFINITIONS(-DQT_THREAD)
+
+include_directories(${CMAKE_CURRENT_BINARY_DIR})
+
+SET(QT_INCLUDES
+ ${QT_INCLUDES}
+ ${CMAKE_CURRENT_SOURCE_DIR}/../../../
+)
+
+# libqmmp
+include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../../../)
+link_directories(${CMAKE_CURRENT_BINARY_DIR}/../../../qmmp)
+
+SET(libbs2b_SRCS
+ bs2bplugin.cpp
+ settingsdialog.cpp
+ effectbs2bfactory.cpp
+)
+
+SET(libbs2b_MOC_HDRS
+ bs2bplugin.h
+ settingsdialog.h
+ effectbs2bfactory.h
+)
+
+SET(libbs2b_RCCS translations/translations.qrc)
+
+QT4_ADD_RESOURCES(libbs2b_RCC_SRCS ${libbs2b_RCCS})
+
+QT4_WRAP_CPP(libbs2b_MOC_SRCS ${libbs2b_MOC_HDRS})
+
+pkg_search_module(BS2B libbs2b>=3.0.0)
+
+include_directories(${BS2B_INCLUDE_DIRS})
+link_directories(${BS2B_LIBRARY_DIRS})
+
+# user interface
+
+SET(libbs2b_UIS
+ settingsdialog.ui
+)
+
+QT4_WRAP_UI(libbs2b_UIS_H ${libbs2b_UIS})
+# Don't forget to include output directory, otherwise
+# the UI file won't be wrapped!
+include_directories(${CMAKE_CURRENT_BINARY_DIR})
+
+IF(BS2B_FOUND)
+ADD_LIBRARY(bs2b MODULE ${libbs2b_SRCS} ${libbs2b_MOC_SRCS} ${libbs2b_UIS_H}
+ ${libbs2b_RCC_SRCS})
+add_dependencies(bs2b qmmp)
+target_link_libraries(bs2b ${QT_LIBRARIES} -lqmmp ${BS2B_LDFLAGS} ${BS2B_CFLAGS})
+install(TARGETS bs2b DESTINATION ${LIB_DIR}/qmmp/Effect)
+ENDIF(BS2B_FOUND)
diff --git a/src/plugins/Effect/stereo/effectstereofactory.cpp b/src/plugins/Effect/stereo/effectstereofactory.cpp
new file mode 100644
index 000000000..017b20376
--- /dev/null
+++ b/src/plugins/Effect/stereo/effectstereofactory.cpp
@@ -0,0 +1,64 @@
+/***************************************************************************
+ * Copyright (C) 2009 by Ilya Kotov *
+ * forkotov02@hotmail.ru *
+ * *
+ * This program 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 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ * This program 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 this program; if not, write to the *
+ * Free Software Foundation, Inc., *
+ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
+ ***************************************************************************/
+
+#include <QtGui>
+#include <qmmp/qmmp.h>
+#include "effectstereofactory.h"
+#include "settingsdialog.h"
+#include "stereoplugin.h"
+
+const EffectProperties EffectStereoFactory::properties() const
+{
+ EffectProperties properties;
+ properties.name = tr("Extra Stereo Plugin");
+ properties.shortName = "stereo";
+ properties.hasSettings = true;
+ properties.hasAbout = true;
+ return properties;
+}
+
+Effect *EffectStereoFactory::create()
+{
+ return new StereoPlugin();
+}
+
+void EffectStereoFactory::showSettings(QWidget *parent)
+{
+ SettingsDialog *s = new SettingsDialog(parent);
+ s ->show();
+}
+
+void EffectStereoFactory::showAbout(QWidget *parent)
+{
+ QMessageBox::about (parent, tr("About Extra Stereo Plugin"),
+ tr("Qmmp Extra Stereo Plugin")+"\n"+
+ tr("Writen by: Ilya Kotov <forkotov02@hotmail.ru>")+"\n"+
+ tr("Based on the Extra Stereo Plugin for Xmms by Johan Levin"));
+}
+
+QTranslator *EffectStereoFactory::createTranslator(QObject *parent)
+{
+ QTranslator *translator = new QTranslator(parent);
+ QString locale = Qmmp::systemLanguageID();
+ translator->load(QString(":/stereo_plugin_") + locale);
+ return translator;
+}
+
+Q_EXPORT_PLUGIN2(stereo,EffectStereoFactory)
diff --git a/src/plugins/Effect/stereo/effectstereofactory.h b/src/plugins/Effect/stereo/effectstereofactory.h
new file mode 100644
index 000000000..103eca25d
--- /dev/null
+++ b/src/plugins/Effect/stereo/effectstereofactory.h
@@ -0,0 +1,44 @@
+/***************************************************************************
+ * Copyright (C) 2011 by Ilya Kotov *
+ * forkotov02@hotmail.ru *
+ * *
+ * This program 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 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ * This program 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 this program; if not, write to the *
+ * Free Software Foundation, Inc., *
+ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
+ ***************************************************************************/
+#ifndef EFFECTSTEREOFACTORY_H
+#define EFFECTSTEREOFACTORY_H
+
+#include <QObject>
+#include <qmmp/effectfactory.h>
+#include <qmmp/effect.h>
+
+/**
+ @author Ilya Kotov <forkotov02@hotmail.ru>
+*/
+class EffectStereoFactory : public QObject, public EffectFactory
+{
+Q_OBJECT
+Q_INTERFACES(EffectFactory);
+
+public:
+ const EffectProperties properties() const;
+ Effect *create();
+ void showSettings(QWidget *parent);
+ void showAbout(QWidget *parent);
+ QTranslator *createTranslator(QObject *parent);
+};
+
+
+#endif
diff --git a/src/plugins/Effect/stereo/settingsdialog.cpp b/src/plugins/Effect/stereo/settingsdialog.cpp
new file mode 100644
index 000000000..474812e26
--- /dev/null
+++ b/src/plugins/Effect/stereo/settingsdialog.cpp
@@ -0,0 +1,61 @@
+/***************************************************************************
+ * Copyright (C) 2009 by Ilya Kotov *
+ * forkotov02@hotmail.ru *
+ * *
+ * This program 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 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ * This program 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 this program; if not, write to the *
+ * Free Software Foundation, Inc., *
+ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
+ ***************************************************************************/
+
+#include <QSettings>
+#include <bs2b/bs2b.h>
+#include <qmmp/qmmp.h>
+#include "stereoplugin.h"
+#include "settingsdialog.h"
+
+SettingsDialog::SettingsDialog(QWidget *parent)
+ : QDialog(parent)
+{
+ ui.setupUi(this);
+ setAttribute(Qt::WA_DeleteOnClose, true);
+ QSettings settings(Qmmp::configFile(), QSettings::IniFormat);
+ m_level = settings.value("extra_stereo/intensity", 1.0).toDouble();
+ ui.intensitySlider->setValue(m_level * 100 / 10.0);
+}
+
+SettingsDialog::~SettingsDialog()
+{
+}
+
+void SettingsDialog::accept()
+{
+ QSettings settings(Qmmp::configFile(), QSettings::IniFormat);
+ settings.setValue("extra_stereo/intensity", ui.intensitySlider->value() * 10.0 / 100);
+ QDialog::accept();
+}
+
+void SettingsDialog::SettingsDialog::reject()
+{
+ if (StereoPlugin::instance()) //restore settings
+ StereoPlugin::instance()->setIntensity(m_level);
+ QDialog::reject();
+}
+
+void SettingsDialog::on_intensitySlider_valueChanged (int value)
+{
+ double level = value * 10.0 / 100;
+ ui.intensityLabel->setText(QString(tr("%1")).arg(level));
+ if (StereoPlugin::instance())
+ StereoPlugin::instance()->setIntensity(level);
+}
diff --git a/src/plugins/Effect/stereo/settingsdialog.h b/src/plugins/Effect/stereo/settingsdialog.h
new file mode 100644
index 000000000..713228118
--- /dev/null
+++ b/src/plugins/Effect/stereo/settingsdialog.h
@@ -0,0 +1,51 @@
+/***************************************************************************
+ * Copyright (C) 2008 by Ilya Kotov *
+ * forkotov02@hotmail.ru *
+ * *
+ * This program 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 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ * This program 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 this program; if not, write to the *
+ * Free Software Foundation, Inc., *
+ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
+ ***************************************************************************/
+#ifndef SETTINGSDIALOG_H
+#define SETTINGSDIALOG_H
+
+#include <QDialog>
+#include <bs2b/bs2b.h>
+#include "ui_settingsdialog.h"
+
+/**
+ @author Ilya Kotov <forkotov02@hotmail.ru>
+*/
+class SettingsDialog : public QDialog
+{
+Q_OBJECT
+public:
+ SettingsDialog(QWidget *parent = 0);
+
+ ~SettingsDialog();
+
+public slots:
+ virtual void accept();
+ virtual void reject();
+
+private slots:
+ void on_intensitySlider_valueChanged (int value);
+
+private:
+ Ui::SettingsDialog ui;
+ double m_level;
+
+};
+
+#endif
diff --git a/src/plugins/Effect/stereo/settingsdialog.ui b/src/plugins/Effect/stereo/settingsdialog.ui
new file mode 100644
index 000000000..7095c8e7d
--- /dev/null
+++ b/src/plugins/Effect/stereo/settingsdialog.ui
@@ -0,0 +1,123 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>SettingsDialog</class>
+ <widget class="QDialog" name="SettingsDialog">
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>383</width>
+ <height>69</height>
+ </rect>
+ </property>
+ <property name="windowTitle">
+ <string>BS2B Plugin Settings</string>
+ </property>
+ <layout class="QGridLayout" name="gridLayout">
+ <property name="leftMargin">
+ <number>6</number>
+ </property>
+ <property name="rightMargin">
+ <number>6</number>
+ </property>
+ <property name="bottomMargin">
+ <number>6</number>
+ </property>
+ <item row="0" column="0" colspan="2">
+ <layout class="QHBoxLayout" name="horizontalLayout">
+ <item>
+ <widget class="QLabel" name="label">
+ <property name="text">
+ <string>Effect intensity:</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QSlider" name="intensitySlider">
+ <property name="maximum">
+ <number>100</number>
+ </property>
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QLabel" name="intensityLabel">
+ <property name="minimumSize">
+ <size>
+ <width>28</width>
+ <height>0</height>
+ </size>
+ </property>
+ <property name="text">
+ <string>-</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </item>
+ <item row="1" column="0">
+ <spacer name="horizontalSpacer">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>229</width>
+ <height>23</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ <item row="1" column="1">
+ <widget class="QDialogButtonBox" name="buttonBox">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Maximum" vsizetype="Fixed">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="standardButtons">
+ <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </widget>
+ <resources/>
+ <connections>
+ <connection>
+ <sender>buttonBox</sender>
+ <signal>accepted()</signal>
+ <receiver>SettingsDialog</receiver>
+ <slot>accept()</slot>
+ <hints>
+ <hint type="sourcelabel">
+ <x>270</x>
+ <y>76</y>
+ </hint>
+ <hint type="destinationlabel">
+ <x>91</x>
+ <y>88</y>
+ </hint>
+ </hints>
+ </connection>
+ <connection>
+ <sender>buttonBox</sender>
+ <signal>rejected()</signal>
+ <receiver>SettingsDialog</receiver>
+ <slot>reject()</slot>
+ <hints>
+ <hint type="sourcelabel">
+ <x>326</x>
+ <y>78</y>
+ </hint>
+ <hint type="destinationlabel">
+ <x>139</x>
+ <y>60</y>
+ </hint>
+ </hints>
+ </connection>
+ </connections>
+</ui>
diff --git a/src/plugins/Effect/stereo/stereo.pro b/src/plugins/Effect/stereo/stereo.pro
new file mode 100644
index 000000000..aa11b5583
--- /dev/null
+++ b/src/plugins/Effect/stereo/stereo.pro
@@ -0,0 +1,44 @@
+include(../../plugins.pri)
+
+HEADERS += stereoplugin.h \
+ effectstereofactory.h \
+ settingsdialog.h
+
+SOURCES += stereoplugin.cpp \
+ effectstereofactory.cpp \
+ settingsdialog.cpp
+
+TARGET =$$PLUGINS_PREFIX/Effect/stereo
+QMAKE_CLEAN =$$PLUGINS_PREFIX/Effect/libstereo.so
+INCLUDEPATH += ../../../
+CONFIG += release \
+warn_on \
+plugin
+
+TEMPLATE = lib
+QMAKE_LIBDIR += ../../../../lib
+LIBS += -lqmmp -L/usr/lib -I/usr/include
+
+TRANSLATIONS = translations/stereo_plugin_cs.ts \
+ translations/stereo_plugin_de.ts \
+ translations/stereo_plugin_zh_CN.ts \
+ translations/stereo_plugin_zh_TW.ts \
+ translations/stereo_plugin_uk_UA.ts \
+ translations/stereo_plugin_pl.ts \
+ translations/stereo_plugin_ru.ts \
+ translations/stereo_plugin_it.ts \
+ translations/stereo_plugin_tr.ts \
+ translations/stereo_plugin_lt.ts \
+ translations/stereo_plugin_nl.ts \
+ translations/stereo_plugin_ja.ts \
+ translations/stereo_plugin_es.ts
+RESOURCES = translations/translations.qrc
+
+isEmpty(LIB_DIR){
+ LIB_DIR = /lib
+}
+target.path = $$LIB_DIR/qmmp/Effect
+INSTALLS += target
+
+
+FORMS += settingsdialog.ui
diff --git a/src/plugins/Effect/stereo/stereoplugin.cpp b/src/plugins/Effect/stereo/stereoplugin.cpp
new file mode 100644
index 000000000..ee96a0aa0
--- /dev/null
+++ b/src/plugins/Effect/stereo/stereoplugin.cpp
@@ -0,0 +1,86 @@
+/***************************************************************************
+ * Copyright (C) 1999 by Johan Levin *
+ * *
+ * Copyright (C) 2011 by Ilya Kotov *
+ * forkotov02@hotmail.ru *
+ * *
+ * This program 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 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ * This program 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 this program; if not, write to the *
+ * Free Software Foundation, Inc., *
+ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
+ ***************************************************************************/
+
+#include <QSettings>
+#include <math.h>
+#include <stdlib.h>
+#include <qmmp/qmmp.h>
+#include "stereoplugin.h"
+
+StereoPlugin *StereoPlugin::m_instance = 0;
+
+StereoPlugin::StereoPlugin() : Effect()
+{
+ m_instance = this;
+ m_avg = 0;
+ m_ldiff = 0;
+ m_rdiff = 0;
+ m_tmp = 0;
+ m_mul = 2.0;
+ m_chan = 0;
+ QSettings settings(Qmmp::configFile(), QSettings::IniFormat);
+ m_mul = settings.value("extra_stereo/intensity", 1.0).toDouble();
+}
+
+StereoPlugin::~StereoPlugin()
+{
+ m_instance = 0;
+}
+
+void StereoPlugin::applyEffect(Buffer *b)
+{
+ if(m_chan != 2)
+ return;
+
+ m_mutex.lock();
+ short *data = (short *)b->data;
+ for (uint i = 0; i < b->nbytes >> 1; i += 2)
+ {
+ m_avg = (data[i] + data[i + 1]) / 2;
+ m_ldiff = data[i] - m_avg;
+ m_rdiff = data[i + 1] - m_avg;
+
+ m_tmp = m_avg + m_ldiff * m_mul;
+ data[i] = qBound(-32768.0, m_tmp, 32767.0);
+ m_tmp = m_avg + m_rdiff * m_mul;
+ data[i + 1] = qBound(-32768.0, m_tmp, 32767.0);
+ }
+ m_mutex.unlock();
+}
+
+void StereoPlugin::configure(quint32 freq, int chan, Qmmp::AudioFormat format)
+{
+ m_chan = chan;
+ Effect::configure(freq, chan, format);
+}
+
+void StereoPlugin::setIntensity(double level)
+{
+ m_mutex.lock();
+ m_mul = level;
+ m_mutex.unlock();
+}
+
+StereoPlugin* StereoPlugin::instance()
+{
+ return m_instance;
+}
diff --git a/src/plugins/Effect/stereo/stereoplugin.h b/src/plugins/Effect/stereo/stereoplugin.h
new file mode 100644
index 000000000..3dba7c466
--- /dev/null
+++ b/src/plugins/Effect/stereo/stereoplugin.h
@@ -0,0 +1,48 @@
+/***************************************************************************
+ * Copyright (C) 2011 by Ilya Kotov *
+ * forkotov02@hotmail.ru *
+ * *
+ * This program 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 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ * This program 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 this program; if not, write to the *
+ * Free Software Foundation, Inc., *
+ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
+ ***************************************************************************/
+#ifndef STEREOPLUGIN_H
+#define STEREOPLUGIN_H
+
+#include <QMutex>
+#include <qmmp/effect.h>
+
+/**
+ @author Ilya Kotov <forkotov02@hotmail.ru>
+*/
+class StereoPlugin : public Effect
+{
+public:
+ StereoPlugin();
+
+ virtual ~StereoPlugin();
+
+ void applyEffect(Buffer *b);
+ void configure(quint32 freq, int chan, Qmmp::AudioFormat format);
+ void setIntensity(double level);
+ static StereoPlugin* instance();
+
+private:
+ int m_chan;
+ QMutex m_mutex;
+ double m_avg, m_ldiff, m_rdiff, m_tmp, m_mul;
+ static StereoPlugin *m_instance;
+};
+
+#endif
diff --git a/src/plugins/Effect/stereo/translations/stereo_plugin_cs.ts b/src/plugins/Effect/stereo/translations/stereo_plugin_cs.ts
new file mode 100644
index 000000000..20f7d0d7d
--- /dev/null
+++ b/src/plugins/Effect/stereo/translations/stereo_plugin_cs.ts
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS>
+<TS version="2.0" language="cs_CZ">
+<context>
+ <name>EffectStereoFactory</name>
+ <message>
+ <location filename="../effectstereofactory.cpp" line="30"/>
+ <source>Extra Stereo Plugin</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../effectstereofactory.cpp" line="50"/>
+ <source>About Extra Stereo Plugin</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../effectstereofactory.cpp" line="51"/>
+ <source>Qmmp Extra Stereo Plugin</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../effectstereofactory.cpp" line="52"/>
+ <source>Writen by: Ilya Kotov &lt;forkotov02@hotmail.ru&gt;</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../effectstereofactory.cpp" line="53"/>
+ <source>Based on the Extra Stereo Plugin for Xmms by Johan Levin</source>
+ <translation type="unfinished"></translation>
+ </message>
+</context>
+<context>
+ <name>SettingsDialog</name>
+ <message>
+ <location filename="../settingsdialog.ui" line="14"/>
+ <source>BS2B Plugin Settings</source>
+ <translation>Nastavení modulu BS2B</translation>
+ </message>
+ <message>
+ <location filename="../settingsdialog.ui" line="31"/>
+ <source>Effect intensity:</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../settingsdialog.ui" line="54"/>
+ <source>-</source>
+ <translation>-</translation>
+ </message>
+ <message>
+ <location filename="../settingsdialog.cpp" line="58"/>
+ <source>%1</source>
+ <translation type="unfinished"></translation>
+ </message>
+</context>
+</TS>
diff --git a/src/plugins/Effect/stereo/translations/stereo_plugin_de.ts b/src/plugins/Effect/stereo/translations/stereo_plugin_de.ts
new file mode 100644
index 000000000..fdf6fcf1d
--- /dev/null
+++ b/src/plugins/Effect/stereo/translations/stereo_plugin_de.ts
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS>
+<TS version="2.0" language="de_DE">
+<context>
+ <name>EffectStereoFactory</name>
+ <message>
+ <location filename="../effectstereofactory.cpp" line="30"/>
+ <source>Extra Stereo Plugin</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../effectstereofactory.cpp" line="50"/>
+ <source>About Extra Stereo Plugin</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../effectstereofactory.cpp" line="51"/>
+ <source>Qmmp Extra Stereo Plugin</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../effectstereofactory.cpp" line="52"/>
+ <source>Writen by: Ilya Kotov &lt;forkotov02@hotmail.ru&gt;</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../effectstereofactory.cpp" line="53"/>
+ <source>Based on the Extra Stereo Plugin for Xmms by Johan Levin</source>
+ <translation type="unfinished"></translation>
+ </message>
+</context>
+<context>
+ <name>SettingsDialog</name>
+ <message>
+ <location filename="../settingsdialog.ui" line="14"/>
+ <source>BS2B Plugin Settings</source>
+ <translation>Einstellungen BS2B-Modul</translation>
+ </message>
+ <message>
+ <location filename="../settingsdialog.ui" line="31"/>
+ <source>Effect intensity:</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../settingsdialog.ui" line="54"/>
+ <source>-</source>
+ <translation>-</translation>
+ </message>
+ <message>
+ <location filename="../settingsdialog.cpp" line="58"/>
+ <source>%1</source>
+ <translation type="unfinished"></translation>
+ </message>
+</context>
+</TS>
diff --git a/src/plugins/Effect/stereo/translations/stereo_plugin_es.ts b/src/plugins/Effect/stereo/translations/stereo_plugin_es.ts
new file mode 100644
index 000000000..c1659269c
--- /dev/null
+++ b/src/plugins/Effect/stereo/translations/stereo_plugin_es.ts
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS>
+<TS version="2.0" language="es">
+<context>
+ <name>EffectStereoFactory</name>
+ <message>
+ <location filename="../effectstereofactory.cpp" line="30"/>
+ <source>Extra Stereo Plugin</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../effectstereofactory.cpp" line="50"/>
+ <source>About Extra Stereo Plugin</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../effectstereofactory.cpp" line="51"/>
+ <source>Qmmp Extra Stereo Plugin</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../effectstereofactory.cpp" line="52"/>
+ <source>Writen by: Ilya Kotov &lt;forkotov02@hotmail.ru&gt;</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../effectstereofactory.cpp" line="53"/>
+ <source>Based on the Extra Stereo Plugin for Xmms by Johan Levin</source>
+ <translation type="unfinished"></translation>
+ </message>
+</context>
+<context>
+ <name>SettingsDialog</name>
+ <message>
+ <location filename="../settingsdialog.ui" line="14"/>
+ <source>BS2B Plugin Settings</source>
+ <translation>Configuración del módulo BS2B</translation>
+ </message>
+ <message>
+ <location filename="../settingsdialog.ui" line="31"/>
+ <source>Effect intensity:</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../settingsdialog.ui" line="54"/>
+ <source>-</source>
+ <translation>-</translation>
+ </message>
+ <message>
+ <location filename="../settingsdialog.cpp" line="58"/>
+ <source>%1</source>
+ <translation type="unfinished"></translation>
+ </message>
+</context>
+</TS>
diff --git a/src/plugins/Effect/stereo/translations/stereo_plugin_it.ts b/src/plugins/Effect/stereo/translations/stereo_plugin_it.ts
new file mode 100644
index 000000000..d319e0d16
--- /dev/null
+++ b/src/plugins/Effect/stereo/translations/stereo_plugin_it.ts
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS>
+<TS version="2.0" language="it">
+<context>
+ <name>EffectStereoFactory</name>
+ <message>
+ <location filename="../effectstereofactory.cpp" line="30"/>
+ <source>Extra Stereo Plugin</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../effectstereofactory.cpp" line="50"/>
+ <source>About Extra Stereo Plugin</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../effectstereofactory.cpp" line="51"/>
+ <source>Qmmp Extra Stereo Plugin</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../effectstereofactory.cpp" line="52"/>
+ <source>Writen by: Ilya Kotov &lt;forkotov02@hotmail.ru&gt;</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../effectstereofactory.cpp" line="53"/>
+ <source>Based on the Extra Stereo Plugin for Xmms by Johan Levin</source>
+ <translation type="unfinished"></translation>
+ </message>
+</context>
+<context>
+ <name>SettingsDialog</name>
+ <message>
+ <location filename="../settingsdialog.ui" line="14"/>
+ <source>BS2B Plugin Settings</source>
+ <translation>Impostazioni del modulo BS2B</translation>
+ </message>
+ <message>
+ <location filename="../settingsdialog.ui" line="31"/>
+ <source>Effect intensity:</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../settingsdialog.ui" line="54"/>
+ <source>-</source>
+ <translation>-</translation>
+ </message>
+ <message>
+ <location filename="../settingsdialog.cpp" line="58"/>
+ <source>%1</source>
+ <translation type="unfinished"></translation>
+ </message>
+</context>
+</TS>
diff --git a/src/plugins/Effect/stereo/translations/stereo_plugin_ja.ts b/src/plugins/Effect/stereo/translations/stereo_plugin_ja.ts
new file mode 100644
index 000000000..b41c71cee
--- /dev/null
+++ b/src/plugins/Effect/stereo/translations/stereo_plugin_ja.ts
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS>
+<TS version="2.0" language="ja_JP">
+<context>
+ <name>EffectStereoFactory</name>
+ <message>
+ <location filename="../effectstereofactory.cpp" line="30"/>
+ <source>Extra Stereo Plugin</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../effectstereofactory.cpp" line="50"/>
+ <source>About Extra Stereo Plugin</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../effectstereofactory.cpp" line="51"/>
+ <source>Qmmp Extra Stereo Plugin</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../effectstereofactory.cpp" line="52"/>
+ <source>Writen by: Ilya Kotov &lt;forkotov02@hotmail.ru&gt;</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../effectstereofactory.cpp" line="53"/>
+ <source>Based on the Extra Stereo Plugin for Xmms by Johan Levin</source>
+ <translation type="unfinished"></translation>
+ </message>
+</context>
+<context>
+ <name>SettingsDialog</name>
+ <message>
+ <location filename="../settingsdialog.ui" line="14"/>
+ <source>BS2B Plugin Settings</source>
+ <translation>BS2B プラグイン設定</translation>
+ </message>
+ <message>
+ <location filename="../settingsdialog.ui" line="31"/>
+ <source>Effect intensity:</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../settingsdialog.ui" line="54"/>
+ <source>-</source>
+ <translation>-</translation>
+ </message>
+ <message>
+ <location filename="../settingsdialog.cpp" line="58"/>
+ <source>%1</source>
+ <translation type="unfinished"></translation>
+ </message>
+</context>
+</TS>
diff --git a/src/plugins/Effect/stereo/translations/stereo_plugin_lt.ts b/src/plugins/Effect/stereo/translations/stereo_plugin_lt.ts
new file mode 100644
index 000000000..6efca7423
--- /dev/null
+++ b/src/plugins/Effect/stereo/translations/stereo_plugin_lt.ts
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS>
+<TS version="2.0" language="lt" sourcelanguage="lt">
+<context>
+ <name>EffectStereoFactory</name>
+ <message>
+ <location filename="../effectstereofactory.cpp" line="30"/>
+ <source>Extra Stereo Plugin</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../effectstereofactory.cpp" line="50"/>
+ <source>About Extra Stereo Plugin</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../effectstereofactory.cpp" line="51"/>
+ <source>Qmmp Extra Stereo Plugin</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../effectstereofactory.cpp" line="52"/>
+ <source>Writen by: Ilya Kotov &lt;forkotov02@hotmail.ru&gt;</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../effectstereofactory.cpp" line="53"/>
+ <source>Based on the Extra Stereo Plugin for Xmms by Johan Levin</source>
+ <translation type="unfinished"></translation>
+ </message>
+</context>
+<context>
+ <name>SettingsDialog</name>
+ <message>
+ <location filename="../settingsdialog.ui" line="14"/>
+ <source>BS2B Plugin Settings</source>
+ <translation>BS2B įskiepio nustatymai</translation>
+ </message>
+ <message>
+ <location filename="../settingsdialog.ui" line="31"/>
+ <source>Effect intensity:</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../settingsdialog.ui" line="54"/>
+ <source>-</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../settingsdialog.cpp" line="58"/>
+ <source>%1</source>
+ <translation type="unfinished"></translation>
+ </message>
+</context>
+</TS>
diff --git a/src/plugins/Effect/stereo/translations/stereo_plugin_nl.ts b/src/plugins/Effect/stereo/translations/stereo_plugin_nl.ts
new file mode 100644
index 000000000..6d11f0c55
--- /dev/null
+++ b/src/plugins/Effect/stereo/translations/stereo_plugin_nl.ts
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS>
+<TS version="2.0" language="nl">
+<context>
+ <name>EffectStereoFactory</name>
+ <message>
+ <location filename="../effectstereofactory.cpp" line="30"/>
+ <source>Extra Stereo Plugin</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../effectstereofactory.cpp" line="50"/>
+ <source>About Extra Stereo Plugin</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../effectstereofactory.cpp" line="51"/>
+ <source>Qmmp Extra Stereo Plugin</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../effectstereofactory.cpp" line="52"/>
+ <source>Writen by: Ilya Kotov &lt;forkotov02@hotmail.ru&gt;</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../effectstereofactory.cpp" line="53"/>
+ <source>Based on the Extra Stereo Plugin for Xmms by Johan Levin</source>
+ <translation type="unfinished"></translation>
+ </message>
+</context>
+<context>
+ <name>SettingsDialog</name>
+ <message>
+ <location filename="../settingsdialog.ui" line="14"/>
+ <source>BS2B Plugin Settings</source>
+ <translation>BS2B Module Instellingen</translation>
+ </message>
+ <message>
+ <location filename="../settingsdialog.ui" line="31"/>
+ <source>Effect intensity:</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../settingsdialog.ui" line="54"/>
+ <source>-</source>
+ <translation>-</translation>
+ </message>
+ <message>
+ <location filename="../settingsdialog.cpp" line="58"/>
+ <source>%1</source>
+ <translation type="unfinished"></translation>
+ </message>
+</context>
+</TS>
diff --git a/src/plugins/Effect/stereo/translations/stereo_plugin_pl.ts b/src/plugins/Effect/stereo/translations/stereo_plugin_pl.ts
new file mode 100644
index 000000000..e0add8824
--- /dev/null
+++ b/src/plugins/Effect/stereo/translations/stereo_plugin_pl.ts
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS>
+<TS version="2.0" language="pl">
+<context>
+ <name>EffectStereoFactory</name>
+ <message>
+ <location filename="../effectstereofactory.cpp" line="30"/>
+ <source>Extra Stereo Plugin</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../effectstereofactory.cpp" line="50"/>
+ <source>About Extra Stereo Plugin</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../effectstereofactory.cpp" line="51"/>
+ <source>Qmmp Extra Stereo Plugin</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../effectstereofactory.cpp" line="52"/>
+ <source>Writen by: Ilya Kotov &lt;forkotov02@hotmail.ru&gt;</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../effectstereofactory.cpp" line="53"/>
+ <source>Based on the Extra Stereo Plugin for Xmms by Johan Levin</source>
+ <translation type="unfinished"></translation>
+ </message>
+</context>
+<context>
+ <name>SettingsDialog</name>
+ <message>
+ <location filename="../settingsdialog.ui" line="14"/>
+ <source>BS2B Plugin Settings</source>
+ <translation>Ustawienia wtyczki BS2B</translation>
+ </message>
+ <message>
+ <location filename="../settingsdialog.ui" line="31"/>
+ <source>Effect intensity:</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../settingsdialog.ui" line="54"/>
+ <source>-</source>
+ <translation></translation>
+ </message>
+ <message>
+ <location filename="../settingsdialog.cpp" line="58"/>
+ <source>%1</source>
+ <translation type="unfinished"></translation>
+ </message>
+</context>
+</TS>
diff --git a/src/plugins/Effect/stereo/translations/stereo_plugin_ru.ts b/src/plugins/Effect/stereo/translations/stereo_plugin_ru.ts
new file mode 100644
index 000000000..e1cb951de
--- /dev/null
+++ b/src/plugins/Effect/stereo/translations/stereo_plugin_ru.ts
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS>
+<TS version="2.0" language="ru_RU" sourcelanguage="ru_RU">
+<context>
+ <name>EffectStereoFactory</name>
+ <message>
+ <location filename="../effectstereofactory.cpp" line="30"/>
+ <source>Extra Stereo Plugin</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../effectstereofactory.cpp" line="50"/>
+ <source>About Extra Stereo Plugin</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../effectstereofactory.cpp" line="51"/>
+ <source>Qmmp Extra Stereo Plugin</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../effectstereofactory.cpp" line="52"/>
+ <source>Writen by: Ilya Kotov &lt;forkotov02@hotmail.ru&gt;</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../effectstereofactory.cpp" line="53"/>
+ <source>Based on the Extra Stereo Plugin for Xmms by Johan Levin</source>
+ <translation type="unfinished"></translation>
+ </message>
+</context>
+<context>
+ <name>SettingsDialog</name>
+ <message>
+ <location filename="../settingsdialog.ui" line="14"/>
+ <source>BS2B Plugin Settings</source>
+ <translation>Настройки модуля BS2B</translation>
+ </message>
+ <message>
+ <location filename="../settingsdialog.ui" line="31"/>
+ <source>Effect intensity:</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../settingsdialog.ui" line="54"/>
+ <source>-</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../settingsdialog.cpp" line="58"/>
+ <source>%1</source>
+ <translation type="unfinished"></translation>
+ </message>
+</context>
+</TS>
diff --git a/src/plugins/Effect/stereo/translations/stereo_plugin_tr.ts b/src/plugins/Effect/stereo/translations/stereo_plugin_tr.ts
new file mode 100644
index 000000000..7fa917408
--- /dev/null
+++ b/src/plugins/Effect/stereo/translations/stereo_plugin_tr.ts
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS>
+<TS version="2.0" language="tr_TR">
+<context>
+ <name>EffectStereoFactory</name>
+ <message>
+ <location filename="../effectstereofactory.cpp" line="30"/>
+ <source>Extra Stereo Plugin</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../effectstereofactory.cpp" line="50"/>
+ <source>About Extra Stereo Plugin</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../effectstereofactory.cpp" line="51"/>
+ <source>Qmmp Extra Stereo Plugin</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../effectstereofactory.cpp" line="52"/>
+ <source>Writen by: Ilya Kotov &lt;forkotov02@hotmail.ru&gt;</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../effectstereofactory.cpp" line="53"/>
+ <source>Based on the Extra Stereo Plugin for Xmms by Johan Levin</source>
+ <translation type="unfinished"></translation>
+ </message>
+</context>
+<context>
+ <name>SettingsDialog</name>
+ <message>
+ <location filename="../settingsdialog.ui" line="14"/>
+ <source>BS2B Plugin Settings</source>
+ <translation>BS2B Eklenti Ayarları</translation>
+ </message>
+ <message>
+ <location filename="../settingsdialog.ui" line="31"/>
+ <source>Effect intensity:</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../settingsdialog.ui" line="54"/>
+ <source>-</source>
+ <translation>-</translation>
+ </message>
+ <message>
+ <location filename="../settingsdialog.cpp" line="58"/>
+ <source>%1</source>
+ <translation type="unfinished"></translation>
+ </message>
+</context>
+</TS>
diff --git a/src/plugins/Effect/stereo/translations/stereo_plugin_uk_UA.ts b/src/plugins/Effect/stereo/translations/stereo_plugin_uk_UA.ts
new file mode 100644
index 000000000..67c1cdc4a
--- /dev/null
+++ b/src/plugins/Effect/stereo/translations/stereo_plugin_uk_UA.ts
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS>
+<TS version="2.0" language="uk">
+<context>
+ <name>EffectStereoFactory</name>
+ <message>
+ <location filename="../effectstereofactory.cpp" line="30"/>
+ <source>Extra Stereo Plugin</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../effectstereofactory.cpp" line="50"/>
+ <source>About Extra Stereo Plugin</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../effectstereofactory.cpp" line="51"/>
+ <source>Qmmp Extra Stereo Plugin</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../effectstereofactory.cpp" line="52"/>
+ <source>Writen by: Ilya Kotov &lt;forkotov02@hotmail.ru&gt;</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../effectstereofactory.cpp" line="53"/>
+ <source>Based on the Extra Stereo Plugin for Xmms by Johan Levin</source>
+ <translation type="unfinished"></translation>
+ </message>
+</context>
+<context>
+ <name>SettingsDialog</name>
+ <message>
+ <location filename="../settingsdialog.ui" line="14"/>
+ <source>BS2B Plugin Settings</source>
+ <translation>Налаштування модуля BS2B</translation>
+ </message>
+ <message>
+ <location filename="../settingsdialog.ui" line="31"/>
+ <source>Effect intensity:</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../settingsdialog.ui" line="54"/>
+ <source>-</source>
+ <translation></translation>
+ </message>
+ <message>
+ <location filename="../settingsdialog.cpp" line="58"/>
+ <source>%1</source>
+ <translation type="unfinished"></translation>
+ </message>
+</context>
+</TS>
diff --git a/src/plugins/Effect/stereo/translations/stereo_plugin_zh_CN.ts b/src/plugins/Effect/stereo/translations/stereo_plugin_zh_CN.ts
new file mode 100644
index 000000000..248c7288f
--- /dev/null
+++ b/src/plugins/Effect/stereo/translations/stereo_plugin_zh_CN.ts
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS>
+<TS version="2.0" language="zh_CN">
+<context>
+ <name>EffectStereoFactory</name>
+ <message>
+ <location filename="../effectstereofactory.cpp" line="30"/>
+ <source>Extra Stereo Plugin</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../effectstereofactory.cpp" line="50"/>
+ <source>About Extra Stereo Plugin</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../effectstereofactory.cpp" line="51"/>
+ <source>Qmmp Extra Stereo Plugin</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../effectstereofactory.cpp" line="52"/>
+ <source>Writen by: Ilya Kotov &lt;forkotov02@hotmail.ru&gt;</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../effectstereofactory.cpp" line="53"/>
+ <source>Based on the Extra Stereo Plugin for Xmms by Johan Levin</source>
+ <translation type="unfinished"></translation>
+ </message>
+</context>
+<context>
+ <name>SettingsDialog</name>
+ <message>
+ <location filename="../settingsdialog.ui" line="14"/>
+ <source>BS2B Plugin Settings</source>
+ <translation>BS2B 插件设置</translation>
+ </message>
+ <message>
+ <location filename="../settingsdialog.ui" line="31"/>
+ <source>Effect intensity:</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../settingsdialog.ui" line="54"/>
+ <source>-</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../settingsdialog.cpp" line="58"/>
+ <source>%1</source>
+ <translation type="unfinished"></translation>
+ </message>
+</context>
+</TS>
diff --git a/src/plugins/Effect/stereo/translations/stereo_plugin_zh_TW.ts b/src/plugins/Effect/stereo/translations/stereo_plugin_zh_TW.ts
new file mode 100644
index 000000000..99481e8c6
--- /dev/null
+++ b/src/plugins/Effect/stereo/translations/stereo_plugin_zh_TW.ts
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS>
+<TS version="2.0" language="zh_TW">
+<context>
+ <name>EffectStereoFactory</name>
+ <message>
+ <location filename="../effectstereofactory.cpp" line="30"/>
+ <source>Extra Stereo Plugin</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../effectstereofactory.cpp" line="50"/>
+ <source>About Extra Stereo Plugin</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../effectstereofactory.cpp" line="51"/>
+ <source>Qmmp Extra Stereo Plugin</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../effectstereofactory.cpp" line="52"/>
+ <source>Writen by: Ilya Kotov &lt;forkotov02@hotmail.ru&gt;</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../effectstereofactory.cpp" line="53"/>
+ <source>Based on the Extra Stereo Plugin for Xmms by Johan Levin</source>
+ <translation type="unfinished"></translation>
+ </message>
+</context>
+<context>
+ <name>SettingsDialog</name>
+ <message>
+ <location filename="../settingsdialog.ui" line="14"/>
+ <source>BS2B Plugin Settings</source>
+ <translation>BS2B 插件設置</translation>
+ </message>
+ <message>
+ <location filename="../settingsdialog.ui" line="31"/>
+ <source>Effect intensity:</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../settingsdialog.ui" line="54"/>
+ <source>-</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../settingsdialog.cpp" line="58"/>
+ <source>%1</source>
+ <translation type="unfinished"></translation>
+ </message>
+</context>
+</TS>
diff --git a/src/plugins/Effect/stereo/translations/translations.qrc b/src/plugins/Effect/stereo/translations/translations.qrc
new file mode 100644
index 000000000..bf5034d5d
--- /dev/null
+++ b/src/plugins/Effect/stereo/translations/translations.qrc
@@ -0,0 +1,18 @@
+<!DOCTYPE RCC>
+<RCC version="1.0">
+ <qresource>
+ <file>stereo_plugin_it.qm</file>
+ <file>stereo_plugin_cs.qm</file>
+ <file>stereo_plugin_de.qm</file>
+ <file>stereo_plugin_zh_CN.qm</file>
+ <file>stereo_plugin_zh_TW.qm</file>
+ <file>stereo_plugin_uk_UA.qm</file>
+ <file>stereo_plugin_pl.qm</file>
+ <file>stereo_plugin_ru.qm</file>
+ <file>stereo_plugin_tr.qm</file>
+ <file>stereo_plugin_lt.qm</file>
+ <file>stereo_plugin_nl.qm</file>
+ <file>stereo_plugin_ja.qm</file>
+ <file>stereo_plugin_es.qm</file>
+ </qresource>
+</RCC>