2003-12-26 02:59:47 +03:00
|
|
|
#ifndef _RAW_FORMATS_H
|
|
|
|
#define _RAW_FORMATS_H
|
|
|
|
|
|
|
|
#include <MediaDefs.h>
|
|
|
|
|
|
|
|
// The raw audio format types defined here are only to be used by
|
|
|
|
// the media kit codec API, they are not supported for application
|
|
|
|
// use. Only the raw decoder does understand them, they are created
|
|
|
|
// by the file readers, like WAV or AIFF reader
|
|
|
|
|
2003-12-26 03:30:05 +03:00
|
|
|
// these values match those from media_raw_audio_format
|
|
|
|
// (type & B_AUDIO_FORMAT_SIZE_MASK) == sample size
|
2003-12-26 02:59:47 +03:00
|
|
|
enum {
|
2003-12-26 03:30:05 +03:00
|
|
|
B_AUDIO_FORMAT_UINT8 = 0x0011,
|
|
|
|
B_AUDIO_FORMAT_INT8 = 0x0001,
|
|
|
|
B_AUDIO_FORMAT_INT16 = 0x0002,
|
2003-12-27 17:51:14 +03:00
|
|
|
B_AUDIO_FORMAT_INT24 = 0x1003,
|
2003-12-26 03:30:05 +03:00
|
|
|
B_AUDIO_FORMAT_INT32 = 0x0004,
|
|
|
|
B_AUDIO_FORMAT_FLOAT32 = 0x0024,
|
2003-12-27 17:51:14 +03:00
|
|
|
B_AUDIO_FORMAT_FLOAT64 = 0x1008,
|
2003-12-26 03:30:05 +03:00
|
|
|
B_AUDIO_FORMAT_MASK = 0xffff,
|
|
|
|
B_AUDIO_FORMAT_SIZE_MASK = 0xf,
|
2003-12-26 02:59:47 +03:00
|
|
|
B_AUDIO_FORMAT_CHANNEL_ORDER_WAVE = 0x100000,
|
|
|
|
B_AUDIO_FORMAT_CHANNEL_ORDER_AIFF = 0x200000,
|
|
|
|
};
|
|
|
|
|
|
|
|
// FYI: A few channel orders for 6 channel audio...
|
|
|
|
// DTS channel order : C, FL, FR, SL, SR, LFE
|
|
|
|
// AAC channel order : C, FL, FR, SL, SR, LFE
|
|
|
|
// AC3 channel order : FL, C, FR, SL, SR, LFE
|
|
|
|
// wav channel order : FL, FR, C, LFE, SL, SR
|
|
|
|
// aiff channel order : FL, SL, C, FR, SR, LFE
|
|
|
|
|
|
|
|
#endif // _RAW_FORMATS_H
|