#include <source.h>
Inheritance diagram for openalpp::Source:
Public Member Functions | |
Source (float x=0.0, float y=0.0, float z=0.0) | |
Source (const std::string &filename, float x=0.0, float y=0.0, float z=0.0) | |
Source (const Sample &buffer, float x=0.0, float y=0.0, float z=0.0) | |
Source (const Stream &stream, float x=0.0, float y=0.0, float z=0.0) | |
Source (const Source &source) | |
void | setSound (const std::string &filename) |
void | setSound (const Sample *buffer) |
void | setSound (Stream *stream) |
void | setSound (const Stream *stream) |
const SoundData * | getSound () const |
void | play (const std::string &filename) |
void | play (const Sample *buffer) |
void | play (const Stream *stream) |
void | play () |
void | stop () |
void | pause () |
void | seek (float time_s) |
bool | isStreaming () |
Source & | operator= (const Source &source) |
Protected Member Functions | |
virtual | ~Source () |
|
Constructor. Creates the source with the specified position.
|
|
Constructor. Creates the source and a buffer with the specified file.
|
|
Constructor. Creates the source with the specified buffer.
|
|
Constructor. Creates the source with the specified stream.
|
|
Copy constructor. |
|
Destructor. |
|
Gets the buffer associated with the source.
|
|
Check if the source is streaming.
|
|
Assignment operator. |
|
Pause this source. This is needed here for streaming sources... Reimplemented from openalpp::SourceBase. |
|
Play this source. This is only here, because the above Play(...) hides SourceBase::Play() Reimplemented from openalpp::SourceBase. |
|
Play a stream on the source. This will change the source's buffer.
|
|
Play a buffer on the source. This will change the source's buffer.
|
|
Play a file on the source. This will change the source's buffer.
|
|
Seek this source to specified time (streaming sources) |
|
|
|
Sets a new (streamed) buffer for the source. The source should _not_ be playing when doing this.
|
|
Sets a new buffer for the source. The source should _not_ be playing when doing this.
|
|
Create a buffer for the source and load a file into it. The source should _not_ be playing when doing this.
|
|
Stop this source. This is needed here for streaming sources... Reimplemented from openalpp::SourceBase. |