218a8c03cb
All of Barrett's individual reverts have been squashed into this one commit, save a few actual bugfixes. Change-Id: Ib0a7d0a841d3ac40b1fca7372c58b7f9229bd1f0
35 lines
1.1 KiB
C
35 lines
1.1 KiB
C
#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
|
|
|
|
// these values match those from media_raw_audio_format
|
|
// (type & B_AUDIO_FORMAT_SIZE_MASK) == sample size
|
|
enum {
|
|
B_AUDIO_FORMAT_UINT8 = 0x0011,
|
|
B_AUDIO_FORMAT_INT8 = 0x0001,
|
|
B_AUDIO_FORMAT_INT16 = 0x0002,
|
|
B_AUDIO_FORMAT_INT24 = 0x1003,
|
|
B_AUDIO_FORMAT_INT32 = 0x0004,
|
|
B_AUDIO_FORMAT_FLOAT32 = 0x0024,
|
|
B_AUDIO_FORMAT_FLOAT64 = 0x1008,
|
|
B_AUDIO_FORMAT_MASK = 0xffff,
|
|
B_AUDIO_FORMAT_SIZE_MASK = 0xf,
|
|
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
|