Skip to content

Commit 1211a4d

Browse files
committed
Multidecoder: deactivate streaming
1 parent 553c816 commit 1211a4d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/AudioTools/AudioCodecs/MultiDecoder.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ class MultiDecoder : public AudioDecoder {
5757
*/
5858
MultiDecoder(MimeSource& mimeSource) { setMimeSource(mimeSource); }
5959

60+
#ifdef USE_EXPERIMENTAL
6061
/**
6162
* @brief Destructor
6263
*
@@ -69,6 +70,7 @@ class MultiDecoder : public AudioDecoder {
6970
}
7071
adapters.clear();
7172
}
73+
#endif
7274

7375
/**
7476
* @brief Starts the processing and enables automatic MIME type determination
@@ -306,6 +308,8 @@ class MultiDecoder : public AudioDecoder {
306308
*/
307309
MimeDetector& mimeDetector() { return mime_detector; }
308310

311+
#ifdef USE_EXPERIMENTAL
312+
309313
/**
310314
* @brief Adds a StreamingDecoder that will be selected by its MIME type
311315
*
@@ -332,6 +336,7 @@ class MultiDecoder : public AudioDecoder {
332336
LOGE("MIME type is nullptr - cannot add StreamingDecoder");
333337
}
334338
}
339+
#endif
335340

336341
protected:
337342
/**
@@ -360,7 +365,9 @@ class MultiDecoder : public AudioDecoder {
360365
} actual_decoder; ///< Currently active decoder information
361366

362367
Vector<DecoderInfo> decoders{0}; ///< Collection of registered decoders
368+
#ifdef USE_EXPERIMENTAL
363369
Vector<DecoderAdapter*> adapters{0}; ///< Collection of internally created adapters
370+
#endif
364371
MimeDetector mime_detector; ///< MIME type detection engine
365372
CodecNOP nop; ///< No-operation codec for unsupported formats
366373
MimeSource* p_mime_source = nullptr; ///< Optional external MIME source

0 commit comments

Comments
 (0)