summaryrefslogtreecommitdiff
path: root/include/kitchensink/kitcodec.h
blob: 589f84d4334169e70aa7020abe6c1691df919cfa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef KITCODEC_H
#define KITCODEC_H

/**
 * @brief Codec type
 * 
 * @file kitcodec.h
 * @author Tuomas Virtanen
 * @date 2018-06-25
 */

#ifdef __cplusplus
extern "C" {
#endif

#define KIT_CODEC_NAME_MAX 8
#define KIT_CODEC_DESC_MAX 48

/**
 * @brief Contains information about the used codec for playback
 */
typedef struct Kit_Codec {
    unsigned int threads; ///< Currently enabled threads (For all decoders)
    char name[KIT_CODEC_NAME_MAX]; ///< Codec short name, eg. "ogg" or "webm"
    char description[KIT_CODEC_DESC_MAX]; ///< Codec longer, more descriptive name
} Kit_Codec;

#ifdef __cplusplus
}
#endif

#endif // KITCODEC_H