diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2010-03-22 21:54:20 +0100 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2010-03-22 21:54:20 +0100 |
commit | 4c5fd68b06ae45ef89c8d66297f09f0781c778b9 (patch) | |
tree | 893bbc5028434755e5d329d9f174221f38e14b22 /plugins/supereq | |
parent | a3b16b779ccac616fc32638f0642d797fddc13e3 (diff) |
reset DSP plugins on seeks/restarts/trackchanges
Diffstat (limited to 'plugins/supereq')
-rw-r--r-- | plugins/supereq/supereq.c | 8 |
1 files changed, 8 insertions, 0 deletions
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, }; |