arduino-audio-tools
Loading...
Searching...
No Matches
Public Member Functions | List of all members
MimeSource Class Referenceabstract

Abstract interface for classes that can provide MIME type information. More...

#include <AudioTypes.h>

Inheritance diagram for MimeSource:
AbstractURLStream AudioEncoder AudioInfoFormat AudioPlayerMimeSourceFromFile< FileT > Demuxer MimeDetector URLStreamBufferedT< ICYStream > HLSStreamT< URLStream > ICYStreamT< T > URLStream URLStreamBufferedT< T > URLStreamESP32 AACEncoderFDK AACEncoderVO ADPCMEncoderXQ AMRNBEncoder AMRWBEncoder APTXEncoder AudioEncoderExt BinaryContainerEncoder Codec2Encoder CodecChain CodecNOP CopyEncoder DSFEncoder EncoderALAC EncoderBase64 EncoderBasic EncoderFloat EncoderL16 EncoderL8 EncoderNetworkFormat FLACEncoder G722Encoder G729Encoder G7xxEncoder GSMEncoder ILBCEncoder LC3Encoder MP3EncoderLAME MP3EncoderShine MP3ParserEncoder MetaDataFilterEncoder OSCContainerEncoder OggContainerEncoder OpusAudioEncoder OpusMultiStreamAudioEncoder SBCEncoder WAVEncoder DemuxerAVI DemuxerMP4 DemuxerMPG MultiVideoDemuxer

Public Member Functions

virtual const char * mime ()=0
 Get the MIME type string.
 

Detailed Description

Abstract interface for classes that can provide MIME type information.

This class defines a simple interface for objects that can determine and provide MIME type strings. It serves as a base class for various MIME detection and source identification implementations within the audio tools framework.

Classes implementing this interface should provide logic to determine the appropriate MIME type based on their specific context (e.g., file content, stream headers, file extensions, etc.).

Note
This is a pure virtual interface class and cannot be instantiated directly.
Author
Phil Schatzmann

Member Function Documentation

◆ mime()

virtual const char * mime ( )
pure virtual

Get the MIME type string.

Pure virtual method that must be implemented by derived classes to return the appropriate MIME type string for the current context.

Returns
const char* Pointer to a null-terminated string containing the MIME type. The string should follow standard MIME type format (e.g., "audio/mpeg"). Returns nullptr if MIME type cannot be determined.
Note
The returned pointer should remain valid for the lifetime of the object or until the next call to this method.

Implemented in CodecNOP, AMRNBEncoder, AMRWBEncoder, APTXEncoder, CodecChain, Codec2Encoder, CopyEncoder, G722Encoder, GSMEncoder, ILBCEncoder, LC3Encoder, MP3EncoderLAME, EncoderNetworkFormat, SBCEncoder, BinaryContainerEncoder, OSCContainerEncoder, MimeDetector, AudioInfoFormat, AACEncoderFDK, AACEncoderVO, ADPCMEncoder, ADPCMEncoderXQ, EncoderALAC, EncoderBase64, EncoderBasic, DSFEncoder, FLACEncoder, EncoderFloat, G729Encoder, G7xxEncoder, EncoderL16, EncoderL8, MP3EncoderShine, OpusAudioEncoder, OpusMultiStreamAudioEncoder, OpusOggEncoder, WAVEncoder, DemuxerAVI, DemuxerMP4, DemuxerMPG, OggContainerEncoder, MP3ParserEncoder, AbstractURLStream, MetaDataFilterEncoder, AudioPlayerMimeSourceFromFile< FileT >, MultiVideoDemuxer, Demuxer, and AudioEncoder.


The documentation for this class was generated from the following file: