raylib music stream.
More...
#include <RayMusic.hpp>
raylib music stream.
Two departures from raylib :
- the three-state machine (stopped/playing/paused) is tracked here, raylib being unable to tell "paused" from "stopped" ;
- setTime() clamps the position, SeekMusicStream() wrapping past the end.
◆ RayMusic()
| RayMusic::RayMusic |
( |
std::string |
path | ) |
|
|
inline |
◆ ~RayMusic()
◆ getLength()
| float RayMusic::getLength |
( |
| ) |
const |
|
inlineoverride |
◆ getLoop()
| bool RayMusic::getLoop |
( |
| ) |
const |
|
inlineoverride |
◆ getPosition()
| Vector3f RayMusic::getPosition |
( |
| ) |
const |
|
inlineoverride |
◆ getTime()
| float RayMusic::getTime |
( |
| ) |
const |
|
inlineoverride |
◆ getVelocity()
| Vector3f RayMusic::getVelocity |
( |
| ) |
const |
|
inlineoverride |
◆ getVolume()
| float RayMusic::getVolume |
( |
| ) |
const |
|
inlineoverride |
◆ isReady()
| bool RayMusic::isReady |
( |
| ) |
const |
|
inlineoverride |
◆ pause()
◆ play()
◆ setLoop()
| void RayMusic::setLoop |
( |
bool |
loop | ) |
|
|
inlineoverride |
◆ setPosition()
| void RayMusic::setPosition |
( |
Vector3f |
position | ) |
|
|
inlineoverride |
◆ setTime()
| void RayMusic::setTime |
( |
float |
position | ) |
|
|
inlineoverride |
◆ setVelocity()
| void RayMusic::setVelocity |
( |
Vector3f |
velocity | ) |
|
|
inlineoverride |
◆ setVolume()
| void RayMusic::setVolume |
( |
float |
volume | ) |
|
|
inlineoverride |
◆ stop()
◆ update()
| void RayMusic::update |
( |
| ) |
|
|
inlineoverride |
The documentation for this class was generated from the following file: