Cleanups
This commit is contained in:
parent
d4f7a4a17a
commit
c03f8bfcbe
|
@ -15044,19 +15044,18 @@ static bool audio_driver_init_internal(bool audio_cb_inited)
|
||||||
unsigned new_rate = 0;
|
unsigned new_rate = 0;
|
||||||
float *aud_inp_data = NULL;
|
float *aud_inp_data = NULL;
|
||||||
float *samples_buf = NULL;
|
float *samples_buf = NULL;
|
||||||
int16_t *conv_buf = NULL;
|
|
||||||
int16_t *rewind_buf = NULL;
|
int16_t *rewind_buf = NULL;
|
||||||
size_t max_bufsamples = AUDIO_CHUNK_SIZE_NONBLOCKING * 2;
|
size_t max_bufsamples = AUDIO_CHUNK_SIZE_NONBLOCKING * 2;
|
||||||
settings_t *settings = configuration_settings;
|
settings_t *settings = configuration_settings;
|
||||||
/* Accomodate rewind since at some point we might have two full buffers. */
|
/* Accomodate rewind since at some point we might have two full buffers. */
|
||||||
size_t outsamples_max = AUDIO_CHUNK_SIZE_NONBLOCKING * 2 * AUDIO_MAX_RATIO *
|
size_t outsamples_max = AUDIO_CHUNK_SIZE_NONBLOCKING * 2 * AUDIO_MAX_RATIO *
|
||||||
settings->floats.slowmotion_ratio;
|
settings->floats.slowmotion_ratio;
|
||||||
|
int16_t *conv_buf = (int16_t*)malloc(outsamples_max
|
||||||
|
* sizeof(int16_t));
|
||||||
|
|
||||||
convert_s16_to_float_init_simd();
|
convert_s16_to_float_init_simd();
|
||||||
convert_float_to_s16_init_simd();
|
convert_float_to_s16_init_simd();
|
||||||
|
|
||||||
conv_buf = (int16_t*)malloc(outsamples_max
|
|
||||||
* sizeof(int16_t));
|
|
||||||
/* Used for recording even if audio isn't enabled. */
|
/* Used for recording even if audio isn't enabled. */
|
||||||
retro_assert(conv_buf != NULL);
|
retro_assert(conv_buf != NULL);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue