mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-12 22:01:27 +00:00
16-bit samples don't need conversion from 8-bit
This commit is contained in:
parent
d7aaab7a33
commit
9c9fc5b765
@ -159,10 +159,10 @@ audio_chunk_t* audio_mix_load_wav_file(const char *path, int sample_rate)
|
||||
|
||||
for (i = 0; i < chunk->rwav->numsamples; i++)
|
||||
{
|
||||
uint16_t *sample = ((uint16_t*)chunk->rwav->samples) + i;
|
||||
int16_t sample = ((int16_t*)chunk->rwav->samples)[i];
|
||||
|
||||
chunk->upsample_buf[i * 2] = (int16_t)((sample[0] - 128) << 8);
|
||||
chunk->upsample_buf[(i * 2) + 1] = (int16_t)((sample[0] - 128) << 8);
|
||||
chunk->upsample_buf[i * 2] = sample;
|
||||
chunk->upsample_buf[(i * 2) + 1] = sample;
|
||||
}
|
||||
}
|
||||
else if (chunk->rwav->numchannels == 2)
|
||||
|
Loading…
x
Reference in New Issue
Block a user