Commit 3d8091e5 authored by François Cartegnie's avatar François Cartegnie 🤞
Browse files

Qt: add stereowiden filter

parent f05ff5c9
......@@ -1408,6 +1408,25 @@ Spatializer::Spatializer( intf_thread_t *p_intf, QWidget *parent )
build();
}
/**********************************************************************
* Spatializer
**********************************************************************/
StereoWidener::StereoWidener( intf_thread_t *p_intf, QWidget *parent )
: AudioFilterControlWidget( p_intf, parent, "stereo_widen" )
{
i_smallfont = -1;
const FilterSliderData::slider_data_t a[4] =
{
{ "stereowiden-delay", N_("Delay time"), "ms", 1.0, 100, 20, 1.0, 1.0 },
{ "stereowiden-feedback", N_("Feedback gain"), "%", 0.0, 0.9, 0.3, 0.1, 1.0 },
{ "stereowiden-crossfeed", N_("Crossfeed"), "%", 0.0, 0.8, 0.3, 0.1, 1.0 },
{ "stereowiden-dry-mix", N_("Dry mix"), "%", 0.0, 1.0, 0.8, 0.1, 1.0 },
};
for( int i=0; i<4 ;i++ ) controls.append( a[i] );
build();
}
#include <QToolButton>
#include <QGridLayout>
......
......@@ -204,6 +204,14 @@ public:
Spatializer( intf_thread_t *, QWidget * );
};
class StereoWidener: public AudioFilterControlWidget
{
Q_OBJECT
public:
StereoWidener( intf_thread_t *, QWidget * );
};
class SyncWidget : public QWidget
{
Q_OBJECT
......
......@@ -70,6 +70,10 @@ ExtendedDialog::ExtendedDialog( intf_thread_t *_p_intf )
audioTab->addTab( spatial, qtr( "Spatializer" ) );
audioLayout->addWidget( audioTab );
StereoWidener *stereowiden = new StereoWidener( p_intf, audioTab );
audioTab->addTab( stereowiden, qtr( "Stereo Widener" ) );
audioLayout->addWidget( audioTab );
mainTabW->insertTab( AUDIO_TAB, audioWidget, qtr( "Audio Effects" ) );
/* Video Effects */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment