Skip to content

Commit fc2d5c4

Browse files
committed
container-m4a-player.ino
1 parent 43933ee commit fc2d5c4

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

tests-cmake/codec/container-m4a-player/container-m4a-player.ino

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
/**
2-
* @file test-codec-alac.ino
2+
* @file container-m4a-player.ino
33
* @author Phil Schatzmann
4-
* @brief generate sine wave -> encoder -> decoder -> audiokit (out)
4+
* @brief Player with M4A files using a single MultiDecoder. However
5+
* I recommend to use 2 separate multi decoders one for the player and
6+
* a separate one for the M4A container.
57
* @version 0.1
68
*
79
* @copyright Copyright (c) 2025
@@ -29,12 +31,12 @@ AACDecoderHelix dec_aac;
2931
MP3DecoderHelix dec_mp3;
3032
DecoderALAC dec_alac;
3133
AudioPlayer player(source, out, multi_decoder);
32-
// Option 1
34+
// Option 1 - using the played file
3335
//M4AFileSampleSizeBuffer sizes_buffer(player, dec_m4a);
34-
// Option 2
36+
// Option 2 - using a file to buffer
3537
//File buffer_file;
3638
//RingBufferFile<File,stsz_sample_size_t> file_buffer(0);
37-
// Option 3
39+
// Option 3 - using redis
3840
//WiFiClient client;
3941
//RedisBuffer<stsz_sample_size_t> redis(client,"m4a-buffer1",0, 1024, 0);
4042

0 commit comments

Comments
 (0)