Platform_Sound_SoundStream.h
Go to the documentation of this file.00001 00018 #ifndef __Platform_Sound_Soundstream_h__ 00019 #define __Platform_Sound_Soundstream_h__ 00020 00021 // Includes 00022 00023 // Forward declares 00024 00025 00026 // Platform_Sound_SoundStream 00027 class Platform_Sound_SoundStream 00028 { 00029 public: 00033 virtual ~Platform_Sound_SoundStream() { }; 00034 00035 00041 virtual int GetChannels() = 0; 00042 00043 00051 virtual int GetFrequency() = 0; 00052 00053 00060 virtual int GetBitsPerSample() = 0; 00061 00062 00068 virtual int GetSize() = 0; 00069 00070 00078 virtual void Play() = 0; 00079 00080 00085 virtual void Stop() = 0; 00086 00087 00093 virtual int GetPosition() = 0; 00094 00095 00100 virtual void SetPosition( 00101 int position 00102 ) = 0; 00103 00104 00111 virtual float GetVolume() = 0; 00112 00113 00118 virtual void SetVolume( 00119 float level 00120 ) = 0; 00121 00122 00128 virtual void ClearBuffer( 00129 int bufferOffset, 00130 int bytesToClear 00131 ) = 0; 00132 00133 00141 virtual void CopySoundToBuffer( 00142 int bufferOffset, 00143 const void* soundData, 00144 int bytesToCopy 00145 ) = 0; 00146 00147 }; 00148 00149 #endif /* __Platform_Sound_Soundstream_h__ */
Reproduction/republishing of any material on this site without permission is strictly prohibited.
