From 4c5fd68b06ae45ef89c8d66297f09f0781c778b9 Mon Sep 17 00:00:00 2001 From: Alexey Yakovenko Date: Mon, 22 Mar 2010 21:54:20 +0100 Subject: reset DSP plugins on seeks/restarts/trackchanges --- plugins/supereq/supereq.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'plugins/supereq') diff --git a/plugins/supereq/supereq.c b/plugins/supereq/supereq.c index 2e1a1ae1..368bcda3 100644 --- a/plugins/supereq/supereq.c +++ b/plugins/supereq/supereq.c @@ -137,6 +137,13 @@ supereq_set_band (int band, float value) { deadbeef->conf_set_float (key, value); } +void +supereq_reset (void) { + deadbeef->mutex_lock (mutex); + equ_clearbuf(last_bps,last_srate); + deadbeef->mutex_unlock (mutex); +} + static DB_supereq_dsp_t plugin = { .dsp.plugin.api_vmajor = DB_API_VERSION_MAJOR, .dsp.plugin.api_vminor = DB_API_VERSION_MINOR, @@ -151,6 +158,7 @@ static DB_supereq_dsp_t plugin = { .dsp.plugin.stop = supereq_plugin_stop, // .dsp.plugin.configdialog = settings_dlg, .dsp.process_int16 = supereq_process_int16, + .dsp.reset = supereq_reset, .get_band = supereq_get_band, .set_band = supereq_set_band, }; -- cgit v1.2.3