#include <Music.hpp>
Inheritance diagram for sfMusic:
Public Member Functions | |
sfMusic (std::size_t BufferSize=44100) | |
Construct the music with a buffer size. | |
~sfMusic () | |
Destructor. | |
bool | Open (const std::string &Filename) |
Open a music file (doesn't play it -- call Play() for that). | |
void | SetLoop (bool Loop) |
Set the music loop state. | |
bool | GetLoop () const |
Tell whether or not the music is looping. | |
float | GetDuration () const |
Get the music duration. | |
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 | |
void | Initialize (unsigned int ChannelsCount, unsigned int SampleRate) |
Set the audio stream parameters, you must call it before Play(). |
Definition at line 45 of file Music.hpp.
sfMusic::sfMusic | ( | std::size_t | BufferSize = 44100 |
) |
bool sfMusic::Open | ( | const std::string & | Filename | ) |
void sfMusic::SetLoop | ( | bool | Loop | ) |
bool sfMusic::GetLoop | ( | ) | const |
float sfMusic::GetDuration | ( | ) | const |
void sfSoundStream::Play | ( | ) | [inherited] |
Start playing the audio stream.
Reimplemented from sfSound.
Definition at line 82 of file SoundStream.cpp.
void sfSoundStream::Stop | ( | ) | [inherited] |
Stop playing the audio stream.
Reimplemented from sfSound.
Definition at line 111 of file SoundStream.cpp.
unsigned int sfSoundStream::GetChannelsCount | ( | ) | const [inherited] |
Return the number of channels (1 = mono, 2 = stereo, .
..)
Definition at line 122 of file SoundStream.cpp.
unsigned int sfSoundStream::GetSampleRate | ( | ) | const [inherited] |
Get the stream sample rate.
Definition at line 131 of file SoundStream.cpp.
sfSound::Status sfSoundStream::GetStatus | ( | ) | const [inherited] |
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, inherited] |
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.