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)
71 ::UpdateAudioStream(*
this, data, samplesCount);
79 ::CloseAudioStream(*
this);
86 return ::IsAudioStreamProcessed(*
this);
93 ::PlayAudioStream(*
this);
101 ::PauseAudioStream(*
this);
109 ::ResumeAudioStream(*
this);
117 return ::IsAudioStreamPlaying(*
this);
124 ::StopAudioStream(*
this);
132 ::SetAudioStreamVolume(*
this, volume);
140 ::SetAudioStreamPitch(*
this, pitch);
148 ::SetAudioStreamBufferSizeDefault(size);
152 inline void set(const ::AudioStream& stream) {
153 buffer = stream.buffer;
154 sampleRate = stream.sampleRate;
155 sampleSize = stream.sampleSize;
156 channels = stream.channels;
161 #endif // RAYLIB_CPP_INCLUDE_AUDIOSTREAM_HPP_