~q3cpma/mus

ref: cf29c2237d0c99e5240a55895c07564ef4635392 mus/mus_player/format_detect.h -rw-r--r-- 372 bytes
cf29c223q3cpma Add a #pragma once to the new xoshiro128plus.h header 1 year, 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#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);