From c42029d4df820414266e93a144c854fc6ba9d9f1 Mon Sep 17 00:00:00 2001 From: beveloper Date: Thu, 25 Dec 2003 23:59:47 +0000 Subject: [PATCH] some raw media formats git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5753 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/private/media/RawFormats.h | 31 ++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 headers/private/media/RawFormats.h diff --git a/headers/private/media/RawFormats.h b/headers/private/media/RawFormats.h new file mode 100644 index 0000000000..2f3a2a6e66 --- /dev/null +++ b/headers/private/media/RawFormats.h @@ -0,0 +1,31 @@ +#ifndef _RAW_FORMATS_H +#define _RAW_FORMATS_H + +#include + +// 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 + +enum { + B_AUDIO_FORMAT_UINT8 = 0x00100, + B_AUDIO_FORMAT_INT8 = 0x00200, + B_AUDIO_FORMAT_INT16 = 0x00400, + B_AUDIO_FORMAT_INT24 = 0x00800, + B_AUDIO_FORMAT_INT32 = 0x01000, + B_AUDIO_FORMAT_FLOAT32 = 0x02000, + B_AUDIO_FORMAT_FLOAT64 = 0x04000, + B_AUDIO_FORMAT_MASK = 0xfffff, + 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