![]() |
raylib-cpp
C++ object-oriented wrapper library for raylib.
|
Music stream type (audio file streaming from memory) More...
Public Member Functions | |
Music () | |
Default Music constructor to build an empty Music object. | |
Music (const ::Music &music) | |
Music (const Music &)=delete | |
Music (const std::string &fileName) | |
Load music stream from file. More... | |
Music (const std::string &fileType, unsigned char *data, int dataSize) | |
Load music stream from memory. More... | |
Music (Music &&other) | |
~Music () | |
Unload music stream. | |
void * | GetCtxData () const |
Retrieves the ctxData value for the object. More... | |
int | GetCtxType () const |
Retrieves the ctxType value for the object. More... | |
unsigned int | GetFrameCount () const |
Retrieves the frameCount value for the object. More... | |
bool | GetLooping () const |
Retrieves the looping value for the object. More... | |
::AudioStream | GetStream () const |
Retrieves the stream value for the object. More... | |
float | GetTimeLength () const |
Get music time length (in seconds) | |
float | GetTimePlayed () const |
Get current music time played (in seconds) | |
bool | IsPlaying () const |
Check if music is playing. | |
bool | IsReady () const |
Retrieve whether or not the Music has been loaded. More... | |
bool | Load (const std::string &fileName) |
Load music stream from file. | |
bool | Load (const std::string &fileType, unsigned char *data, int dataSize) |
Load music stream from memory. | |
Music & | operator= (const ::Music &music) |
Music & | operator= (const Music &)=delete |
Music & | operator= (Music &&other) |
Music & | Pause () |
Pause music playing. | |
Music & | Play () |
Start music playing. | |
Music & | Resume () |
Resume music playing. | |
Music & | Seek (float position) |
Seek music to a position (in seconds) | |
void | SetCtxData (void *value) |
Sets the ctxData value for the object. More... | |
void | SetCtxType (int value) |
Sets the ctxType value for the object. More... | |
void | SetFrameCount (unsigned int value) |
Sets the frameCount value for the object. More... | |
void | SetLooping (bool value) |
Sets the looping value for the object. More... | |
Music & | SetPitch (float pitch) |
Set pitch for music. | |
void | SetStream (::AudioStream value) |
Sets the stream value for the object. More... | |
Music & | SetVolume (float volume) |
Set volume for music. | |
Music & | Stop () |
Stop music playing. | |
void | Unload () |
Unload music stream. | |
Music & | Update () |
Updates buffers for music streaming. | |
|
inline |
Load music stream from file.
raylib::RaylibException | Throws if the music failed to load. |
Definition at line 36 of file Music.hpp.
References Load().
|
inline |
Load music stream from memory.
raylib::RaylibException | Throws if the music failed to load. |
Definition at line 47 of file Music.hpp.
References Load().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |