341 return "audio/mulaw";
359 const char* mime =
toMime(format);
360 return mime !=
nullptr && strcmp(mime,
"audio/wav") == 0;
406 :
AudioInfo(sampleRate, channelCount, bitsPerSample),
AudioFormat
Audio format codes used by Microsoft e.g. in avi or wav files.
Definition AudioFormat.h:21
const char * toMime(AudioFormat format)
Provides the mime type for a AudioFormat wav code, or nullptr if not known/mapped.
Definition AudioFormat.h:308
bool isWavFormat(AudioFormat format)
True if the wav code is handled via the WAV decoder (i.e. toMime() maps it to "audio/wav": PCM and al...
Definition AudioFormat.h:358
AudioFormat fromMime(const char *mime)
Best-effort inverse of toMime(): maps a mime type (e.g. an AudioEncoder's mime()) back to the AudioFo...
Definition AudioFormat.h:371
@ EXTENSIBLE
WAVE_FORMAT_EXTENSIBLE: the real format is defined by a sub format GUID.
@ ATRAC3
Sony ATRAC3 (the tag is called SONY_SCX in some lists)