mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-08 20:47:08 +03:00
opus & vorbis 32 bits fix
This commit is contained in:
@@ -188,7 +188,12 @@ static decode_state opus_decompress(void) {
|
|||||||
|
|
||||||
// work backward to unpack samples (if needed)
|
// work backward to unpack samples (if needed)
|
||||||
iptr = (s16_t *) write_buf + count;
|
iptr = (s16_t *) write_buf + count;
|
||||||
optr = (ISAMPLE_T *) write_buf + frames * 2;
|
IF_DIRECT(
|
||||||
|
optr = (ISAMPLE_T *) outputbuf->writep + frames * 2;
|
||||||
|
)
|
||||||
|
IF_PROCESS(
|
||||||
|
optr = (ISAMPLE_T *) write_buf + frames * 2;
|
||||||
|
)
|
||||||
|
|
||||||
if (channels == 2) {
|
if (channels == 2) {
|
||||||
#if BYTES_PER_FRAME == 4
|
#if BYTES_PER_FRAME == 4
|
||||||
|
|||||||
@@ -236,7 +236,12 @@ static decode_state vorbis_decode(void) {
|
|||||||
|
|
||||||
// work backward to unpack samples (if needed)
|
// work backward to unpack samples (if needed)
|
||||||
iptr = (s16_t *) write_buf + count;
|
iptr = (s16_t *) write_buf + count;
|
||||||
optr = (ISAMPLE_T *) write_buf + frames * 2;
|
IF_DIRECT(
|
||||||
|
optr = (ISAMPLE_T *) outputbuf->writep + frames * 2;
|
||||||
|
)
|
||||||
|
IF_PROCESS(
|
||||||
|
optr = (ISAMPLE_T *) write_buf + frames * 2;
|
||||||
|
)
|
||||||
|
|
||||||
if (channels == 2) {
|
if (channels == 2) {
|
||||||
#if BYTES_PER_FRAME == 4
|
#if BYTES_PER_FRAME == 4
|
||||||
|
|||||||
Reference in New Issue
Block a user