Wave/Sound management functions.
More...
Wave/Sound management functions.
Definition at line 19 of file Sound.hpp.
◆ Sound() [1/2]
raylib::Sound::Sound |
( |
const std::string & |
fileName | ) |
|
|
inline |
Loads a sound from the given file.
- Exceptions
-
Definition at line 45 of file Sound.hpp.
References Load().
◆ Sound() [2/2]
raylib::Sound::Sound |
( |
const ::Wave & |
wave | ) |
|
|
inline |
Loads a sound from the given Wave.
- Exceptions
-
Definition at line 56 of file Sound.hpp.
References Load().
◆ GetFrameCount()
unsigned int raylib::Sound::GetFrameCount |
( |
| ) |
const |
|
inline |
Retrieves the frameCount value for the object.
- Returns
- The frameCount value of the object.
Definition at line 66 of file Sound.hpp.
◆ GetStream()
Retrieves the stream value for the object.
- Returns
- The stream value of the object.
Definition at line 67 of file Sound.hpp.
◆ IsReady()
bool raylib::Sound::IsReady |
( |
| ) |
const |
|
inline |
Retrieve whether or not the Sound buffer is loaded.
- Returns
- True or false depending on whether the Sound buffer is loaded.
Definition at line 200 of file Sound.hpp.
Referenced by Load().
◆ Load()
bool raylib::Sound::Load |
( |
const std::string & |
fileName | ) |
|
|
inline |
Load a sound from the given file.
- Returns
- True or false depending on loading worked.
Definition at line 181 of file Sound.hpp.
References IsReady().
Referenced by Sound().
◆ SetFrameCount()
void raylib::Sound::SetFrameCount |
( |
unsigned int |
value | ) |
|
|
inline |
Sets the frameCount value for the object.
- Parameters
-
value | The value of which to set frameCount to. |
Definition at line 66 of file Sound.hpp.
◆ SetStream()
Sets the stream value for the object.
- Parameters
-
value | The value of which to set stream to. |
Definition at line 67 of file Sound.hpp.
References Unload().