00001
00002
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 #define PERFORM_API
00038
00039
00040
00041 typedef int BOOL;
00042 #ifndef FALSE
00043 #define FALSE 0
00044 #define TRUE !(FALSE)
00045 #endif
00046
00047 #include <stdlib.h>
00048 #include "soundstruct.h"
00049
00050 #ifdef __cplusplus
00051 extern "C" {
00052 #endif
00053
00054 typedef int (*SNDNotificationFun)(SNDSoundStruct *s, int tag, int err);
00055
00056 #define SND_NULL_FUN ((SNDNotificationFun)0)
00057
00058 PERFORM_API BOOL SNDInit(BOOL guessTheDevice);
00059
00060
00061 PERFORM_API char **SNDGetAvailableDriverNames(void);
00062
00063
00064 PERFORM_API BOOL SNDSetDriverIndex(unsigned int selectedIndex);
00065
00066
00067 PERFORM_API unsigned int SNDGetAssignedDriverIndex(void);
00068
00069 PERFORM_API void SNDGetVolume(float *left, float * right);
00070
00071 PERFORM_API void SNDSetVolume(float left, float right);
00072
00073 PERFORM_API BOOL SNDIsMuted(void);
00074
00075 PERFORM_API void SNDSetMute(BOOL aFlag);
00076
00077 PERFORM_API int SNDStartPlaying(SNDSoundStruct *soundStruct, int tag, int priority, int preempt,
00078 SNDNotificationFun beginFun, SNDNotificationFun endFun);
00079
00080 PERFORM_API int SNDStartRecording(SNDSoundStruct *soundStruct, int tag, int priority, int preempt,
00081 SNDNotificationFun beginRecFun, SNDNotificationFun endRecFun);
00082
00083 PERFORM_API int SNDSamplesProcessed(int tag);
00084
00085 PERFORM_API void SNDStop(int tag);
00086
00087 PERFORM_API void SNDPause(int tag);
00088
00089 PERFORM_API void SNDResume(int tag);
00090
00091 PERFORM_API int SNDUnreserve(int dunno);
00092
00093 PERFORM_API void SNDTerminate(void);
00094
00095 #ifdef __cplusplus
00096 }
00097 #endif
00098