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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/**
* @ingroup file68_lib
* @file sc68/chunk68.h
* @author Benjamin Gerard
* @date 2011-10-02
* @brief Chunk definition header file.
*
*/
/* Copyright (C) 1998-2011 Benjamin Gerard */
#ifndef _FILE68_CHUNK68_H_
#define _FILE68_CHUNK68_H_
/**
* @addtogroup file68_lib
* @{
*/
/**
* SC68 file chunk header.
*/
typedef struct
{
char id[4]; /**< Must be "SC??". */
char size[4]; /**< Size in bytes (MSB first). */
} chunk68_t;
/**
* @name SC68 file chunk definitions.
* @{
*/
#define CH68_CHUNK "SC" /**< Chunk identifier. */
#define CH68_BASE "68" /**< Start of file. */
#define CH68_FNAME "FN" /**< File name (album). */
#define CH68_DEFAULT "DF" /**< Album default music. */
#define CH68_MUSIC "MU" /**< Music (track) section start. */
#define CH68_MNAME "MN" /**< Track name (title). */
#define CH68_ANAME "AN" /**< Track or album artist. */
#define CH68_CNAME "CN" /**< Track or album original artist. */
#define CH68_D0 "D0" /**< Track 'd0' value. */
#define CH68_AT "AT" /**< Track load address. */
#define CH68_TIME "TI" /**< Track length in seconds. @deprecated */
#define CH68_FRAME "FR" /**< Track length in frames. */
#define CH68_FRQ "FQ" /**< Track replay rate in Hz. */
#define CH68_LOOP "LP" /**< Track number of loop. */
#define CH68_LOOPFR "LF" /**< Track loop length in frames. */
#define CH68_TYP "TY" /**< Track HW feature flag. */
#define CH68_YEAR "YY" /**< Track publishing year. */
#define CH68_COPYRIGHT "CR" /**< Track or album copyright owner. */
#define CH68_TAG "TG" /**< Track or album Meta tag. */
#define CH68_REPLAY "RE" /**< Track external replay. */
#define CH68_UTF8 "U8" /**< String are UTF-8 encoded. */
#define CH68_ALIGN "32" /**< Chunks are 32bit aligned. */
#define CH68_SFX "FX" /**< Track is a sound-fx. */
#define CH68_MDATA "DA" /**< Music data. */
#define CH68_EOF "EF" /**< End of file. */
#define CH68_NULL "\0\0" /**< Null. */
/**
* @}
*/
/**
* @}
*/
#endif /* #ifndef _FILE68_CHUNK68_H_ */