|
| Music (::AudioStream stream={nullptr, nullptr, 0, 0, 0}, unsigned int frameCount=0, bool looping=false, int ctxType=0, void *ctxData=nullptr) |
|
| 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 | IsValid () const |
| Retrieve whether or not the Music has been loaded. More...
|
|
void | Load (const std::string &fileName) |
| Load music stream from file. More...
|
|
void | Load (const std::string &fileType, unsigned char *data, int dataSize) |
| Load music stream from memory. More...
|
|
Music & | operator= (const ::Music &music) |
|
Music & | operator= (const Music &)=delete |
|
Music & | operator= (Music &&other) noexcept |
|
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 | SetLooping (bool value) |
| Sets the looping value for the object. More...
|
|
Music & | SetPan (float pan=0.5f) |
| Set pan for a music (0.5 is center)
|
|
Music & | SetPitch (float pitch) |
| Set pitch for music.
|
|
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.
|
|
Music stream type (audio file streaming from memory)
Definition at line 14 of file Music.hpp.