Skip to content

Commit 2ef8cf7

Browse files
authored
On recent release of esp v3.0.0.alpha board manager throwing some error due to vorbis decoder #599
1 parent 80c8048 commit 2ef8cf7

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

src/vorbis_decoder/vorbis_decoder.h

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,29 @@
33
//#pragma GCC optimize ("O3")
44
//#pragma GCC diagnostic ignored "-Wnarrowing"
55

6+
/********************************************************************
7+
* *
8+
* THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE. *
9+
* USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
10+
* GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
11+
* IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
12+
* *
13+
* THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2007 *
14+
* by the Xiph.Org Foundation https://xiph.org/ *
15+
* *
16+
********************************************************************/
17+
/*
18+
* vorbis_decoder.h
19+
* based on Xiph.Org Foundation vorbis decoder
20+
* adapted for the ESP32 by schreibfaul1
21+
*
22+
* Created on: 13.02.2023
23+
* Updated on: 09.10.2023
24+
*/
25+
26+
27+
28+
629
#include "Arduino.h"
730

831
#define VI_FLOORB 2
@@ -261,7 +284,7 @@ void mdct_step7(int32_t *x, int n, int step);
261284
void mdct_step8(int32_t *x, int n, int step);
262285
int32_t vorbis_book_decodevv_add(codebook_t *book, int32_t **a, int32_t offset, uint8_t ch, int n, int point);
263286
int vorbis_dsp_pcmout(int16_t *outBuff, int outBuffSize);
264-
void mdct_unroll_lap(int n0, int n1, int lW, int W, int *in, int *right, const int *w0, const int *w1, short int *out,
287+
void mdct_unroll_lap(int n0, int n1, int lW, int W, int32_t *in, int32_t *right, const int32_t *w0, const int32_t *w1, short int *out,
265288
int step, int start, /* samples, this frame */
266289
int end /* samples, this frame */);
267290

0 commit comments

Comments
 (0)