audio_base.h

Go to the documentation of this file.
00001 
00002 #if !defined(audio_base_h)
00003 #define audio_base_h
00004 
00005 /* sample rate values */
00006 /* various fixed sample rates we support (for hard-sync clocked values) */
00007 #define B_SR_8000 0x1
00008 #define B_SR_11025 0x2
00009 #define B_SR_12000 0x4
00010 #define B_SR_16000 0x8
00011 #define B_SR_22050 0x10
00012 #define B_SR_24000 0x20
00013 #define B_SR_32000 0x40
00014 #define B_SR_44100 0x80
00015 #define B_SR_48000 0x100
00016 #define B_SR_64000 0x200
00017 #define B_SR_88200 0x400
00018 #define B_SR_96000 0x800
00019 #define B_SR_176400 0x1000
00020 #define B_SR_192000 0x2000
00021 #define B_SR_384000 0x4000
00022 #define B_SR_1536000 0x10000
00023 /* continuously variable sample rate (typically board-generated) */
00024 #define B_SR_CVSR 0x10000000UL
00025 /* sample rate parameter global to all channels (input and output rates respectively) */
00026 #define B_SR_IS_GLOBAL 0x80000000UL
00027 /* output sample rate locked to input sample rate (output_rates only; the common case!) */
00028 #define B_SR_SAME_AS_INPUT 0x40000000UL
00029 
00030 
00031 /* format values */
00032 /* signed char */
00033 #define B_FMT_8BIT_S 0x01
00034 /* unsigned char -- this is special case */
00035 #define B_FMT_8BIT_U 0x02
00036 /* traditional 16 bit signed format (host endian) */
00037 #define B_FMT_16BIT 0x10
00038 /* left-adjusted in 32 bit signed word */
00039 #define B_FMT_18BIT 0x20
00040 #define B_FMT_20BIT 0x40
00041 #define B_FMT_24BIT 0x100
00042 #define B_FMT_32BIT 0x1000
00043 /* 32-bit floating point, -1.0 to 1.0 */
00044 #define B_FMT_FLOAT 0x20000
00045 /* 64-bit floating point, -1.0 to 1.0 */
00046 #define B_FMT_DOUBLE 0x40000
00047 /* 80-bit floating point, -1.0 to 1.0 */
00048 #define B_FMT_EXTENDED 0x80000
00049 /* bit stream */
00050 #define B_FMT_BITSTREAM 0x1000000
00051 /* format parameter global to all channels (input and output formats respectively) */
00052 #define B_FMT_IS_GLOBAL 0x80000000UL
00053 /* output format locked to input format (output_formats) */
00054 #define B_FMT_SAME_AS_INPUT 0x40000000UL
00055 
00056 /* designation values */
00057 /* mono channels have no designation */
00058 #define B_CHANNEL_LEFT 0x1
00059 #define B_CHANNEL_RIGHT 0x2
00060 #define B_CHANNEL_CENTER 0x4            /* 5.1+ or fake surround */
00061 #define B_CHANNEL_SUB 0x8               /* 5.1+ */
00062 #define B_CHANNEL_REARLEFT 0x10         /* quad surround or 5.1+ */
00063 #define B_CHANNEL_REARRIGHT 0x20        /* quad surround or 5.1+ */
00064 #define B_CHANNEL_FRONT_LEFT_CENTER 0x40
00065 #define B_CHANNEL_FRONT_RIGHT_CENTER 0x80
00066 #define B_CHANNEL_BACK_CENTER 0x100     /* 6.1 or fake surround */
00067 #define B_CHANNEL_SIDE_LEFT 0x200
00068 #define B_CHANNEL_SIDE_RIGHT 0x400
00069 #define B_CHANNEL_TOP_CENTER 0x800
00070 #define B_CHANNEL_TOP_FRONT_LEFT 0x1000
00071 #define B_CHANNEL_TOP_FRONT_CENTER 0x2000
00072 #define B_CHANNEL_TOP_FRONT_RIGHT 0x4000
00073 #define B_CHANNEL_TOP_BACK_LEFT 0x8000
00074 #define B_CHANNEL_TOP_BACK_CENTER 0x10000
00075 #define B_CHANNEL_TOP_BACK_RIGHT 0x20000
00076 
00077 enum media_multi_matrix {
00078     B_MATRIX_PROLOGIC_LR = 0x1,
00079     B_MATRIX_AMBISONIC_WXYZ = 0x4
00080 };
00081 
00082 #endif  /* audio_base_h */
00083 

Copyright 2005 by yellowTAB GmbH, Be Inc., Palm Source Inc. and their respective legal successors
All rights reserved.