Skip to content

Commit a94e14b

Browse files
committed
MultiDecoder: add mimeDetector() method
1 parent a2e56e5 commit a94e14b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/AudioTools/AudioCodecs/MultiDecoder.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,17 @@ class MultiDecoder : public AudioDecoder {
281281
return actual_decoder.decoder->setCodecConfig(data, len);
282282
}
283283

284+
/**
285+
* @brief Provides access to the internal MIME detector
286+
*
287+
* Returns a reference to the MimeDetector instance used for automatic
288+
* format detection. This allows direct access to configure custom MIME
289+
* detection logic or to query detection results.
290+
*
291+
* @return Reference to the internal MimeDetector instance
292+
*/
293+
MimeDetector& mimeDetector() { return mime_detector; }
294+
284295
protected:
285296
/**
286297
* @brief Information about a registered decoder

0 commit comments

Comments
 (0)