1 #ifndef RAYLIB_CPP_SOUND_HPP_
2 #define RAYLIB_CPP_SOUND_HPP_
14 #include "./raylib-cpp-utils.hpp"
23 Sound(
const std::string& fileName) {
24 set(LoadSound(fileName.c_str()));
28 set(LoadSoundFromWave(wave));
36 sampleCount = sound.sampleCount;
37 stream = sound.stream;
40 GETTERSETTER(
unsigned int,SampleCount,sampleCount)
54 ::UpdateSound(*
this, data, sampleCount);
81 ::PlaySoundMulti(*
this);
91 return ::IsSoundPlaying(*
this);
94 ::SetSoundVolume(*
this, volume);
98 ::SetSoundPitch(*
this, pitch);