This commit is contained in:
twinaphex 2016-09-06 23:28:45 +02:00
parent 671063aec2
commit 5f3a47a725
2 changed files with 5 additions and 6 deletions

View File

@ -23,6 +23,7 @@
#include <conversion/s16_to_float.h> #include <conversion/s16_to_float.h>
#include "audio_driver.h" #include "audio_driver.h"
#include "audio_dsp_filter.h"
#include "audio_resampler_driver.h" #include "audio_resampler_driver.h"
#include "../record/record_driver.h" #include "../record/record_driver.h"
#include "audio_thread_wrapper.h" #include "audio_thread_wrapper.h"
@ -842,12 +843,13 @@ bool audio_driver_init_resampler(void)
audio_driver_data.audio_rate.source_ratio.original); audio_driver_data.audio_rate.source_ratio.original);
} }
void audio_driver_process_resampler(struct resampler_data *data) void audio_driver_process_resampler(void *data)
{ {
struct resampler_data *resampler = (struct resampler_data*)data;
performance_counter_init(&resampler_proc, "resampler_proc"); performance_counter_init(&resampler_proc, "resampler_proc");
performance_counter_start(&resampler_proc); performance_counter_start(&resampler_proc);
rarch_resampler_process(audio_driver_resampler, rarch_resampler_process(audio_driver_resampler,
audio_driver_resampler_data, data); audio_driver_resampler_data, resampler);
performance_counter_stop(&resampler_proc); performance_counter_stop(&resampler_proc);
} }

View File

@ -24,9 +24,6 @@
#include <boolean.h> #include <boolean.h>
#include <retro_common_api.h> #include <retro_common_api.h>
#include "audio_dsp_filter.h"
#include "audio_resampler_driver.h"
RETRO_BEGIN_DECLS RETRO_BEGIN_DECLS
#define AUDIO_CHUNK_SIZE_BLOCKING 512 #define AUDIO_CHUNK_SIZE_BLOCKING 512
@ -105,7 +102,7 @@ void audio_driver_deinit_resampler(void);
bool audio_driver_init_resampler(void); bool audio_driver_init_resampler(void);
void audio_driver_process_resampler(struct resampler_data *data); void audio_driver_process_resampler(void *data);
bool audio_driver_free_devices_list(void); bool audio_driver_free_devices_list(void);