haiku/headers/private/media/RawFormats.h
beveloper bb1d6ef247 raw decoder supports many samples types now, and support for them
has been added to the file readers, you can now play 24 bit integer
or 64 bit floating point files


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5770 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-27 14:51:14 +00:00

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