mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-26 21:36:26 +00:00
(audio_driver.c) Cleanup
This commit is contained in:
parent
ed40b13ea0
commit
52c1d398a2
@ -308,17 +308,15 @@ static bool audio_driver_init_internal(bool audio_cb_inited)
|
||||
float *samples_buf = NULL;
|
||||
int16_t *conv_buf = NULL;
|
||||
int16_t *rewind_buf = NULL;
|
||||
size_t outsamples_max = AUDIO_CHUNK_SIZE_NONBLOCKING * 2;
|
||||
size_t max_bufsamples = AUDIO_CHUNK_SIZE_NONBLOCKING * 2;
|
||||
settings_t *settings = config_get_ptr();
|
||||
/* Accomodate rewind since at some point we might have two full buffers. */
|
||||
size_t outsamples_max = AUDIO_CHUNK_SIZE_NONBLOCKING * 2 * AUDIO_MAX_RATIO *
|
||||
settings->floats.slowmotion_ratio;
|
||||
|
||||
convert_s16_to_float_init_simd();
|
||||
convert_float_to_s16_init_simd();
|
||||
|
||||
/* Accomodate rewind since at some point we might have two full buffers. */
|
||||
outsamples_max = max_bufsamples * AUDIO_MAX_RATIO *
|
||||
settings->floats.slowmotion_ratio;
|
||||
|
||||
conv_buf = (int16_t*)malloc(outsamples_max
|
||||
* sizeof(int16_t));
|
||||
/* Used for recording even if audio isn't enabled. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user