From be7a63932f2e33eba2742f9770b9a3e4366c2926 Mon Sep 17 00:00:00 2001 From: Themaister Date: Tue, 16 Oct 2012 12:54:29 +0200 Subject: [PATCH] Remove output_rate from DSP plug. --- audio/ext/rarch_dsp.h | 12 ++---------- driver.c | 1 - 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/audio/ext/rarch_dsp.h b/audio/ext/rarch_dsp.h index 5c91597ad5..c9a9ecbdac 100644 --- a/audio/ext/rarch_dsp.h +++ b/audio/ext/rarch_dsp.h @@ -30,20 +30,12 @@ extern "C" { #define RARCH_TRUE 1 #endif -#define RARCH_DSP_API_VERSION 4 +#define RARCH_DSP_API_VERSION 5 typedef struct rarch_dsp_info { - // Input sample rate that the DSP plugin receives. This is generally ~32kHz. - // Some small variance is allowed due to syncing behavior. + // Input sample rate that the DSP plugin receives. float input_rate; - - // RetroArch requests that the DSP plugin resamples the - // input to a certain frequency. - // - // However, the plugin might ignore this - // using the resample field in rarch_dsp_output_t (see below). - float output_rate; } rarch_dsp_info_t; typedef struct rarch_dsp_output diff --git a/driver.c b/driver.c index 952058ddeb..6cbadc30d7 100644 --- a/driver.c +++ b/driver.c @@ -285,7 +285,6 @@ static void init_dsp_plugin(void) RARCH_LOG("Loaded DSP plugin: \"%s\"\n", g_extern.audio_data.dsp_plugin->ident ? g_extern.audio_data.dsp_plugin->ident : "Unknown"); info.input_rate = g_settings.audio.in_rate; - info.output_rate = g_settings.audio.out_rate; g_extern.audio_data.dsp_handle = g_extern.audio_data.dsp_plugin->init(&info); if (!g_extern.audio_data.dsp_handle)