#pragma once
#include <stdbool.h>
typedef enum
{
AUDIO_FORMAT_FLAC,
AUDIO_FORMAT_OGG_FLAC,
AUDIO_FORMAT_OGG_VORBIS,
AUDIO_FORMAT_OGG_OPUS,
NUM_AUDIO_FORMAT,
AUDIO_FORMAT_UNKNOWN
} Audio_format;
static const char *const audio_format_str[NUM_AUDIO_FORMAT] =
{
"FLAC",
"Ogg FLAC",
"Ogg Vorbis",
"Ogg Opus"
};
Audio_format detect_audio_format(const char *path);