mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-08 20:47:08 +03:00
update
This commit is contained in:
@@ -515,7 +515,6 @@ static decode_state faad_decode(void) {
|
|||||||
#if BYTES_PER_FRAME == 4
|
#if BYTES_PER_FRAME == 4
|
||||||
memcpy(optr, iptr, count * BYTES_PER_FRAME);
|
memcpy(optr, iptr, count * BYTES_PER_FRAME);
|
||||||
iptr += count * 2;
|
iptr += count * 2;
|
||||||
optr += count * 2;
|
|
||||||
#else
|
#else
|
||||||
while (count--) {
|
while (count--) {
|
||||||
*optr++ = *iptr++ << 8;
|
*optr++ = *iptr++ << 8;
|
||||||
|
|||||||
@@ -236,7 +236,7 @@ static int _write_frames(frames_t out_frames, bool silence, s32_t gainL, s32_t g
|
|||||||
{
|
{
|
||||||
frames_t count = out_frames;
|
frames_t count = out_frames;
|
||||||
s32_t *_iptr = (s32_t*) outputbuf->readp;
|
s32_t *_iptr = (s32_t*) outputbuf->readp;
|
||||||
s16_t *_optr = (s32_t*) optr;
|
s16_t *_optr = (s16_t*) optr;
|
||||||
while (count--) {
|
while (count--) {
|
||||||
*_optr++ = *_iptr++ >> 16;
|
*_optr++ = *_iptr++ >> 16;
|
||||||
*_optr++ = *_iptr++ >> 16;
|
*_optr++ = *_iptr++ >> 16;
|
||||||
|
|||||||
Reference in New Issue
Block a user