Platform_Win32_Sound_SoundStream_NoSound.h
Go to the documentation of this file.00001 00011 #ifndef __Platform_Win32_Sound_SoundStream_NoSound_H__ 00012 #define __Platform_Win32_Sound_SoundStream_NoSound_H__ 00013 00014 // Includes 00015 #include "Platform_Sound_SoundStream.h" 00016 00017 // Forward declares 00018 00019 // Platform_Win32_Sound_SoundStream_NoSound 00020 class Platform_Win32_Sound_SoundStream_NoSound : public Platform_Sound_SoundStream 00021 { 00022 public: 00023 Platform_Win32_Sound_SoundStream_NoSound( 00024 int channels, 00025 int frequency, 00026 int bitsPerSample, 00027 int size 00028 ); 00029 virtual ~Platform_Win32_Sound_SoundStream_NoSound(); 00030 00031 00032 virtual void Play(); 00033 virtual void Stop(); 00034 00035 virtual int GetPosition(); 00036 virtual void SetPosition(int position); 00037 00038 virtual void CopySoundToBuffer(int bufferOffset, const void* soundData, int bytesToCopy); 00039 virtual void ClearBuffer(int bufferOffset, int bytesToClear); 00040 00041 virtual int GetChannels(); 00042 virtual int GetFrequency(); 00043 virtual int GetBitsPerSample(); 00044 virtual int GetSize(); 00045 00046 virtual void SetVolume(float level); 00047 virtual float GetVolume(); 00048 00049 private: 00050 int channels_; 00051 int frequency_; 00052 int bitsPerSample_; 00053 int size_; 00054 }; 00055 00056 #endif /* __Platform_Win32_Sound_SoundStream_NoSound_H__ */
Reproduction/republishing of any material on this site without permission is strictly prohibited.
