mirror of
https://github.com/libretro/RetroArch
synced 2025-01-26 09:35:21 +00:00
Divide audio samples by 0x8000 as INT64_min is -0x8000. :p
This commit is contained in:
parent
f61e0d49fe
commit
080c076019
4
ssnes.c
4
ssnes.c
@ -163,8 +163,8 @@ static void audio_sample(uint16_t left, uint16_t right)
|
||||
static float data[AUDIO_CHUNK_SIZE_NONBLOCKING];
|
||||
static int data_ptr = 0;
|
||||
|
||||
data[data_ptr++] = (float)(*(int16_t*)&left)/0x7FFF;
|
||||
data[data_ptr++] = (float)(*(int16_t*)&right)/0x7FFF;
|
||||
data[data_ptr++] = (float)(*(int16_t*)&left)/0x8000;
|
||||
data[data_ptr++] = (float)(*(int16_t*)&right)/0x8000;
|
||||
|
||||
if ( data_ptr >= audio_chunk_size )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user