#include <SoundStream.hpp>
Inheritance diagram for sfSoundStream:
Public Member Functions | |
virtual | ~sfSoundStream () |
Virtual destructor. | |
void | Play () |
Start playing the audio stream. | |
void | Stop () |
Stop playing the audio stream. | |
unsigned int | GetChannelsCount () const |
Return the number of channels (1 = mono, 2 = stereo, . | |
unsigned int | GetSampleRate () const |
Get the stream sample rate. | |
Status | GetStatus () const |
Get the status of the stream (stopped, paused, playing). | |
Protected Member Functions | |
sfSoundStream () | |
Default constructor. | |
void | Initialize (unsigned int ChannelsCount, unsigned int SampleRate) |
Set the audio stream parameters, you must call it before Play(). | |
Classes | |
struct | Chunk |
Structure defining a chunk of audio data to stream. More... |
Use it for big sounds that would require hundreds of MB in memory (see sfMusic), or for streaming sound from the network
Definition at line 42 of file SoundStream.hpp.
sfSoundStream::~sfSoundStream | ( | ) | [virtual] |
sfSoundStream::sfSoundStream | ( | ) | [protected] |
void sfSoundStream::Play | ( | ) |
Start playing the audio stream.
Reimplemented from sfSound.
Definition at line 82 of file SoundStream.cpp.
void sfSoundStream::Stop | ( | ) |
Stop playing the audio stream.
Reimplemented from sfSound.
Definition at line 111 of file SoundStream.cpp.
unsigned int sfSoundStream::GetChannelsCount | ( | ) | const |
Return the number of channels (1 = mono, 2 = stereo, .
..)
Definition at line 122 of file SoundStream.cpp.
unsigned int sfSoundStream::GetSampleRate | ( | ) | const |
Get the stream sample rate.
Definition at line 131 of file SoundStream.cpp.
sfSound::Status sfSoundStream::GetStatus | ( | ) | const |
Get the status of the stream (stopped, paused, playing).
Reimplemented from sfSound.
Definition at line 140 of file SoundStream.cpp.
void sfSoundStream::Initialize | ( | unsigned int | ChannelsCount, | |
unsigned int | SampleRate | |||
) | [protected] |
Set the audio stream parameters, you must call it before Play().
ChannelsCount | : Number of channels | |
SampleRate | : Sample rate |
Definition at line 61 of file SoundStream.cpp.