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 HFBAudioOut FBAudioOutGetDefault();
00127
00129
00131
00134 class FBSDK_DLL FBAudioClip : public FBComponent
00135 {
00136
00137 __FBClassDeclare(FBAudioClip, FBComponent);
00138 public:
00139
00145 FBAudioClip(char* pFileName, bool pSetToDefaultDest=true, HIObject pObject=NULL);
00146
00149 virtual void FBDelete();
00150
00156 bool Play(FBTriggerStyle pStyle=kFBTriggerStyleContinue, HFBAudioOut pDestination=NULL);
00157
00161 void Stop(HFBAudioOut pDestination=NULL);
00162
00163 FBPropertyString Filename;
00164 FBPropertyString RelativePath;
00165 FBPropertyInt Format;
00166 FBPropertyAudioOut Destination;
00167 FBPropertyTime Duration;
00168 FBPropertyTime InPoint;
00169 FBPropertyAccessMode AccessMode;
00170 FBPropertyUseChnMode UseChannelMode;
00171 FBPropertyBool Scrubbing;
00172 };
00173
00176 class FBSDK_DLL FBPropertyListAudioIn : public FBPropertyListComponent
00177 {
00178 public:
00179 FBPropertyListAudioIn();
00184 HFBAudioIn operator[](int pIndex);
00185 };
00186
00188 class FBSDK_DLL FBPropertyListAudioOut : public FBPropertyListComponent
00189 {
00190 public:
00191 FBPropertyListAudioOut();
00196 HFBAudioOut operator[](int pIndex);
00197 };
00198
00200 class FBSDK_DLL FBPropertyListAudioClip : public FBPropertyListComponent
00201 {
00202 public:
00203 FBPropertyListAudioClip();
00208 FBAudioClip* operator[](int pIndex);
00209 };
00210
00211 #ifdef FBSDKUseNamespace
00212 }
00213 #endif
00214 #endif