Platform_Win32_Sound Class Reference

Public Member Functions | |
| Platform_Win32_Sound (Platform_Win32_OS *os) | |
| virtual | ~Platform_Win32_Sound () |
| virtual void | OnOsYield () |
| virtual Platform_Sound_SoundStream * | CreateSoundStream (int channels, int frequency, int bitsPerSample, int size) |
Detailed Description
Definition at line 21 of file Platform_Win32_Sound.h.
Constructor & Destructor Documentation
| Platform_Win32_Sound::Platform_Win32_Sound | ( | Platform_Win32_OS * | os | ) |
Definition at line 16 of file Platform_Win32_Sound.cpp.
| Platform_Win32_Sound::~Platform_Win32_Sound | ( | ) | [virtual] |
Definition at line 64 of file Platform_Win32_Sound.cpp.
Member Function Documentation
| void Platform_Win32_Sound::OnOsYield | ( | ) | [virtual] |
Receives the OsYield event, sent from Platform_OS when OsYield is called
Reimplemented from PlatformEventListener.
Definition at line 79 of file Platform_Win32_Sound.cpp.
| Platform_Sound_SoundStream * Platform_Win32_Sound::CreateSoundStream | ( | int | channels, | |
| int | frequency, | |||
| int | bitsPerSample, | |||
| int | size | |||
| ) | [virtual] |
Creates a Platform_Sound_SoundStream instance, with the specified number of channels (1=mono, 2=stereo), frequency (number of samples per second) and bits per sample (8 or 16), and of the specified size in bytes. A sound stream provides basic functionality for streaming sound data to the sound card, and works by having the calling application fill and refill the sound-stream buffer with new sound data as needed. The returned instance should be destroyed by the caller (using the delete keyword). when it is no longer needed.
See the documentation for Platform_Sound_SoundStream for further information.
- Returns:
- A new sound stream object, or 0 if no more sound streams could be created.
Implements Platform_Sound.
Definition at line 92 of file Platform_Win32_Sound.cpp.
Reproduction/republishing of any material on this site without permission is strictly prohibited.
