|
| | 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_view fileName) |
| | Load music stream from file. More...
|
| |
| | Music (const std::string_view fileType, std::span< unsigned char > data) |
| | Load music stream from memory. More...
|
| |
| | Music (const std::string_view fileType, unsigned char *data, int dataSize) |
| | Load music stream from memory. More...
|
| |
| | Music (Music &&other) noexcept |
| |
| | ~Music () |
| | Unload music stream. More...
|
| |
| 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) More...
|
| |
| float | GetTimePlayed () const |
| | Get current music time played (in seconds) More...
|
| |
| bool | IsPlaying () const |
| | Check if music is playing. More...
|
| |
| bool | IsValid () const |
| | Retrieve whether or not the Music has been loaded. More...
|
| |
| void | Load (const std::string_view fileName) |
| | Load music stream from file. More...
|
| |
| void | Load (const std::string_view fileType, std::span< unsigned char > data) |
| | Load music stream from memory. More...
|
| |
| void | Load (const std::string_view 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. More...
|
| |
| Music & | Play () |
| | Start music playing. More...
|
| |
| Music & | Resume () |
| | Resume music playing. More...
|
| |
| Music & | Seek (float position) |
| | Seek music to a position (in seconds) More...
|
| |
| 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) More...
|
| |
| Music & | SetPitch (float pitch) |
| | Set pitch for music. More...
|
| |
| Music & | SetVolume (float volume) |
| | Set volume for music. More...
|
| |
| Music & | Stop () |
| | Stop music playing. More...
|
| |
| void | Unload () |
| | Unload music stream. More...
|
| |
| Music & | Update () |
| | Updates buffers for music streaming. More...
|
| |
Music stream type (audio file streaming from memory)
Definition at line 16 of file Music.hpp.