1#ifndef _RAW_FORMATS_H
2#define _RAW_FORMATS_H
3
4#include <MediaDefs.h>
5
6// The raw audio format types defined here are only to be used by
7// the media kit codec API, they are not supported for application
8// use. Only the raw decoder does understand them, they are created
9// by the file readers, like WAV or AIFF reader
10
11// these values match those from media_raw_audio_format
12// (type & B_AUDIO_FORMAT_SIZE_MASK) == sample size
13enum {
14	B_AUDIO_FORMAT_UINT8	= 0x0011,
15	B_AUDIO_FORMAT_INT8		= 0x0001,
16	B_AUDIO_FORMAT_INT16	= 0x0002,
17	B_AUDIO_FORMAT_INT24	= 0x1003,
18	B_AUDIO_FORMAT_INT32	= 0x0004,
19	B_AUDIO_FORMAT_FLOAT32	= 0x0024,
20	B_AUDIO_FORMAT_FLOAT64	= 0x1008,
21	B_AUDIO_FORMAT_MASK		= 0xffff,
22	B_AUDIO_FORMAT_SIZE_MASK	= 0xf,
23	B_AUDIO_FORMAT_CHANNEL_ORDER_WAVE	= 0x100000,
24	B_AUDIO_FORMAT_CHANNEL_ORDER_AIFF	= 0x200000,
25};
26
27// FYI: A few channel orders for 6 channel audio...
28// DTS  channel order : C, FL, FR, SL, SR, LFE
29// AAC  channel order : C, FL, FR, SL, SR, LFE
30// AC3  channel order : FL, C, FR, SL, SR, LFE
31// wav  channel order : FL, FR, C, LFE, SL, SR
32// aiff channel order : FL, SL, C, FR, SR, LFE
33
34#endif // _RAW_FORMATS_H
35