Wave/Sound management functions.
More...
|
void | set (const ::Sound &sound) |
|
Wave/Sound management functions.
boom.Play();
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 52 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 56 of file Sound.hpp.
◆ GetStream()
Retrieves the stream value for the object.
- Returns
- The stream value of the object.
Definition at line 57 of file Sound.hpp.
References Unload().
◆ IsValid()
bool raylib::Sound::IsValid |
( |
| ) |
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 189 of file Sound.hpp.
Referenced by Load().
◆ Load() [1/2]
void raylib::Sound::Load |
( |
const ::Wave & |
wave | ) |
|
|
inline |
◆ Load() [2/2]
void raylib::Sound::Load |
( |
const std::string & |
fileName | ) |
|
|
inline |