File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
src/AudioTools/AudioCodecs Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ namespace audio_tools {
15
15
*/
16
16
class DecoderALAC : public AudioDecoder {
17
17
public:
18
- // / write Magic Cookie
18
+ // / write Magic Cookie (ALACSpecificConfig)
19
19
size_t writeCodecInfo (const uint8_t * data, size_t len) override {
20
20
int32_t rc = dec.Init ((void *)data, len);
21
21
if (rc != 0 ) {
@@ -31,6 +31,11 @@ class DecoderALAC : public AudioDecoder {
31
31
return len;
32
32
}
33
33
34
+ // define ALACSpecificConfig
35
+ size_t writeCodecInfo (ALACSpecificConfig& config) {
36
+ return writeCodecInfo ((uint8_t *)&config, sizeof (config));
37
+ }
38
+
34
39
// / we expect the write is called for a complete frame!
35
40
size_t write (const uint8_t * encodedFrame, size_t frameLength) override {
36
41
LOGI (" write: %d" , (int )frameLength);
You can’t perform that action at this time.
0 commit comments