Go to the
documentation of this file.
00001 #ifndef __FBAUDIOFMT_H__
00002 #define __FBAUDIOFMT_H__
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00043 #include <kaydaradef.h>
00044 #ifndef FBSDK_DLL
00045
00048 #define FBSDK_DLL K_DLLIMPORT
00049 #endif
00050
00051 #include <fbsdk/fbtypes.h>
00052
00056 typedef int FBAudioFmt;
00060 typedef FBAudioFmt* HFBAudioFmt;
00061
00062 #ifdef FBSDKUseNamespace
00063 namespace FBSDKNamespace {
00064 #endif
00065
00067 enum FBAudioChannelMode {
00068 kFBAudioChannelModeMono,
00069 kFBAudioChannelModeStereo,
00070 kFBAudioChannelMode_4,
00071 kFBAudioChannelMode_8,
00072 };
00074 enum FBAudioBitDepthMode {
00075 kFBAudioBitDepthMode_8,
00076 kFBAudioBitDepthMode_16,
00077 kFBAudioBitDepthMode_24,
00078 kFBAudioBitDepthMode_FP,
00079 };
00081 enum FBAudioRateMode {
00082 kFBAudioRateMode_8000,
00083 kFBRAudioateMode_11025,
00084 kFBAudioRateMode_12000,
00085 kFBAudioRateMode_12500,
00086 kFBAudioRateMode_16000,
00087 kFBAudioRateMode_22050,
00088 kFBAudioRateMode_24000,
00089 kFBAudioRateMode_25000,
00090 kFBAudioRateMode_32000,
00091 kFBAudioRateMode_44100,
00092 kFBAudioRateMode_48000,
00093 kFBAudioRateMode_50000,
00094 kFBAudioRateMode_64000,
00095 kFBAudioRateMode_88200,
00096 kFBAudioRateMode_96000,
00097 kFBAudioRateMode_100000,
00098 };
00099
00100 FBSDK_DLL FBAudioFmt FBAudioFmt_GetDefaultFormat();
00101
00102 FBSDK_DLL FBAudioFmt FBAudioFmt_AppendFormat(FBAudioFmt pFormat, int pChannels, int pBits, int pRate);
00103 FBSDK_DLL FBAudioFmt FBAudioFmt_AppendFormat(FBAudioFmt pFormat, const FBAudioFmt pSrcFormat);
00104
00105 FBSDK_DLL FBAudioFmt FBAudioFmt_RemoveFormat(FBAudioFmt pFormat, int pChannels, int pBits, int pRate);
00106 FBSDK_DLL FBAudioFmt FBAudioFmt_RemoveFormat(FBAudioFmt pFormat, const FBAudioFmt pSrcFormat);
00107
00108 FBSDK_DLL int FBAudioFmt_GetChannelValue(FBAudioFmt pFormat);
00109 FBSDK_DLL int FBAudioFmt_GetBitsValue(FBAudioFmt pFormat);
00110 FBSDK_DLL int FBAudioFmt_GetBytesValue(FBAudioFmt pFormat);
00111 FBSDK_DLL int FBAudioFmt_GetRateValue(FBAudioFmt pFormat);
00112
00113 FBSDK_DLL bool FBAudioFmt_TestFormat(const FBAudioFmt pSrcFormat, int pChannels, int pBits, int pRate);
00114
00115 #ifdef FBSDKUseNamespace
00116 }
00117 #endif
00118 #endif