add getCodec() and getCodecname() functions
getCodecname() allows for simple display of the used codec, getCodec() together with the exported enum of codec values allows for user defined codec names like this stupid example: switch (audio.getCodec()) { case Audio::CODEC_M4A: case Audio::CODEC_AAC: Serial.println("AAC codec!"); break; case Audio::CODEC_FLAC: case AUDIO::CODEC_OGG_FLAC: Serial.println("FLAC!"); break; }
Showing
Please register or sign in to comment