Go to the documentation of this file.00001 #ifndef __FBAUDIO_H__
00002 #define __FBAUDIO_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/fbcomponent.h>
00052 #include <fbsdk/fbaudiofmt.h>
00053
00054 #ifdef FBSDKUseNamespace
00055 namespace FBSDKNamespace {
00056 #endif
00057
00058 __FB_FORWARD( FBAudioIn );
00059 __FB_FORWARD( FBAudioOut );
00060 __FB_FORWARD( FBAudioClip );
00061 FB_DEFINE_COMPONENT( FBSDK_DLL, AudioIn );
00062 FB_DEFINE_COMPONENT( FBSDK_DLL, AudioOut );
00063 FB_DEFINE_COMPONENT( FBSDK_DLL, AudioClip );
00064
00066 enum FBAccessMode {
00067 kFBAccessModeDisk,
00068 kFBAccessModeMemory
00069 };
00070
00072 enum FBUseChnMode {
00073 kFBUseChannelLeftOnly,
00074 kFBUseChannelRightOnly,
00075 kFBUseChannelBoth
00076 };
00077
00079 enum FBTriggerStyle {
00080 kFBTriggerStyleContinue,
00081 kFBTriggerStyleCut,
00082 kFBTriggerStyleToggle
00083 };
00084
00085 FB_DEFINE_ENUM(FBSDK_DLL, AccessMode);
00086 FB_DEFINE_ENUM(FBSDK_DLL, UseChnMode);
00087 FB_DEFINE_ENUM(FBSDK_DLL, TriggerStyle);
00088
00090
00092
00095 class FBSDK_DLL FBAudioIn : public FBComponent
00096 {
00097
00098 __FBClassDeclare(FBAudioIn, FBComponent);
00099 public:
00100
00104 FBAudioIn(HIObject pObject=NULL);
00105 };
00106
00108
00110
00113 class FBSDK_DLL FBAudioOut : public FBComponent
00114 {
00115
00116 __FBClassDeclare(FBAudioOut, FBComponent);
00117 public:
00118
00122 FBAudioOut(HIObject pObject=NULL);
00123 };
00124
00126 FBSDK_DLL FBAudioOut* FBAudioOutGetDefault();
00127
00129
00131
00134 class FBSDK_DLL FBAudioClip : public FBComponent
00135 {
00136
00137 __FBClassDeclare(FBAudioClip, FBComponent);
00138 public:
00139
00145 FBAudioClip(const char* pFileName, bool pSetToDefaultDest=true, HIObject pObject=NULL);
00146
00149 virtual void FBDelete();
00150
00156 bool Play(FBTriggerStyle pStyle=kFBTriggerStyleContinue, FBAudioOut* pDestination=NULL);
00157
00161 void Stop(FBAudioOut* pDestination=NULL);
00162
00166 bool IsMediaReady();
00167
00172 bool FileOpen(char const * pPath);
00173
00174
00175 FBPropertyString Path;
00176 FBPropertyString Filename;
00177 FBPropertyString RelativePath;
00178
00179 FBPropertyInt Format;
00180 FBPropertyInt Channels;
00181 FBPropertyInt Rate;
00182 FBPropertyInt Bits;
00183 FBPropertyAccessMode AccessMode;
00184 FBPropertyUseChnMode UseChannel;
00185 FBPropertyUseChnMode UseChannelMode;
00186 FBPropertyDouble ClipSpeed;
00187
00188 FBPropertyTime SrcIn;
00189 FBPropertyTime SrcDuration;
00190 FBPropertyTime SrcEnd;
00191
00192 FBPropertyTime InPoint;
00193 FBPropertyTime DstIn;
00194 FBPropertyTime Duration;
00195 FBPropertyTime DstDuration;
00196 FBPropertyTime EndPoint;
00197 FBPropertyTime DstEnd;
00198
00199 FBPropertyBool TakeSetsInPoint;
00200 FBPropertyBool ConstrainDstToTake;
00201 FBPropertyBool Scrubbing;
00202 FBPropertyBool LockClipSpeed;
00203
00204 FBPropertyTake CurrentTake;
00205 FBPropertyAudioOut Destination;
00206
00207 };
00208
00211 class FBSDK_DLL FBPropertyListAudioIn : public FBPropertyListComponent
00212 {
00213 public:
00214 FBPropertyListAudioIn();
00219 FBAudioIn* operator[](int pIndex);
00220 };
00221
00223 class FBSDK_DLL FBPropertyListAudioOut : public FBPropertyListComponent
00224 {
00225 public:
00226 FBPropertyListAudioOut();
00231 FBAudioOut* operator[](int pIndex);
00232 };
00233
00235 class FBSDK_DLL FBPropertyListAudioClip : public FBPropertyListComponent
00236 {
00237 public:
00238 FBPropertyListAudioClip();
00243 FBAudioClip* operator[](int pIndex);
00244 };
00245
00246 #ifdef FBSDKUseNamespace
00247 }
00248 #endif
00249 #endif