25 #ifndef RAYLIB_CPP_INCLUDE_AUDIOSTREAM_HPP_
26 #define RAYLIB_CPP_INCLUDE_AUDIOSTREAM_HPP_
28 #include "./raylib.hpp"
29 #include "./raylib-cpp-utils.hpp"
44 AudioStream(
unsigned int SampleRate,
unsigned int SampleSize,
unsigned int Channels) {
45 set(InitAudioStream(SampleRate, SampleSize, Channels));
52 GETTERSETTER(rAudioBuffer *, Buffer, buffer)
53 GETTERSETTER(
unsigned int, SampleRate, sampleRate)
54 GETTERSETTER(
unsigned int, SampleSize, sampleSize)
55 GETTERSETTER(
unsigned int, Channels, channels)
66 ::UpdateAudioStream(*
this, data, samplesCount);
74 ::CloseAudioStream(*
this);
81 return ::IsAudioStreamProcessed(*
this);
88 ::PlayAudioStream(*
this);
96 ::PauseAudioStream(*
this);
104 ::ResumeAudioStream(*
this);
112 return ::IsAudioStreamPlaying(*
this);
119 ::StopAudioStream(*
this);
127 ::SetAudioStreamVolume(*
this, volume);
135 ::SetAudioStreamPitch(*
this, pitch);
143 ::SetAudioStreamBufferSizeDefault(size);
147 inline void set(const ::AudioStream& stream) {
148 buffer = stream.buffer;
149 sampleRate = stream.sampleRate;
150 sampleSize = stream.sampleSize;
151 channels = stream.channels;
156 #endif // RAYLIB_CPP_INCLUDE_AUDIOSTREAM_HPP_