File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
examples/tests/codecs/test-codec-aac-fdk-dec Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change
1
+ // FDK AAC decoding test: psram must be active
2
+
1
3
#include " AudioTools.h"
2
4
#include " AudioCodecs/CodecAACFDK.h"
3
5
#include " AudioLibs/AudioBoardStream.h"
4
6
7
+ SET_LOOP_TASK_STACK_SIZE (50 * 1024 );
8
+
5
9
URLStream url (" ssid" ," password" ); // or replace with ICYStream to get metadata
6
10
AudioBoardStream i2s (AudioKitEs8388V1); // final output of decoded stream
7
11
EncodedAudioStream dec (&i2s, new AACDecoderFDK()); // Decoding stream
@@ -14,6 +18,8 @@ void setup(){
14
18
15
19
// setup i2s
16
20
auto config = i2s.defaultConfig (TX_MODE);
21
+ config.buffer_size = 1024 ;
22
+ config.buffer_count = 20 ;
17
23
i2s.begin (config);
18
24
19
25
// setup I2S based on sampling rate provided by decoder
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ AudioInfoSupport *audioChangeFDK = nullptr;
21
21
*/
22
22
class AACDecoderFDK : public AudioDecoder {
23
23
public:
24
- AACDecoderFDK (int output_buffer_size = 2048 ){
24
+ AACDecoderFDK (int output_buffer_size = FDK_OUT_BUFFER_DEFAULT_SIZE ){
25
25
TRACED ();
26
26
dec = new aac_fdk::AACDecoderFDK (output_buffer_size);
27
27
}
You can’t perform that action at this time.
0 commit comments