00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef __CS_ISOUND_DRIVER_H__
00022 #define __CS_ISOUND_DRIVER_H__
00023
00024 #include "csutil/scf.h"
00025
00026 struct iSoundRender;
00027
00028 SCF_VERSION (iSoundDriver, 0, 0, 1);
00029
00035 struct iSoundDriver : public iBase
00036 {
00038 virtual bool Open(iSoundRender*, int frequency, bool bit16, bool stereo) = 0;
00040 virtual void Close () = 0;
00042 virtual void LockMemory (void **mem, int *memsize) = 0;
00044 virtual void UnlockMemory () = 0;
00046 virtual bool IsBackground () = 0;
00048 virtual bool Is16Bits () = 0;
00050 virtual bool IsStereo () = 0;
00052 virtual int GetFrequency () = 0;
00057 virtual bool IsHandleVoidSound () = 0;
00058
00059 virtual bool ThreadAware (){ return false; }
00060 };
00061
00062 #endif // __CS_ISOUND_DRIVER_H__