Encapsulation of the raylib AudioStream.
More...
#include <RlAudioStream.hpp>
Encapsulation of the raylib AudioStream.
◆ RlAudioStream()
| raylib::audio::RlAudioStream::RlAudioStream |
( |
const unsigned int & |
sampleRate, |
|
|
const unsigned int & |
sampleSize, |
|
|
const unsigned int & |
channels |
|
) |
| |
|
explicit |
Construct a new RlAudioStream object, Init audio stream (to stream raw audio pcm data)
- Parameters
-
| sampleRate | the sample rate of the stream |
| sampleSize | the sample size of the stream |
| channels | the number of channels of the stream |
◆ ~RlAudioStream()
| raylib::audio::RlAudioStream::~RlAudioStream |
( |
| ) |
|
◆ getVolume()
| const float & raylib::audio::RlAudioStream::getVolume |
( |
| ) |
const |
Get the volume of the audio stream.
- Returns
- the volume of the stream
◆ isPlaying()
| bool raylib::audio::RlAudioStream::isPlaying |
( |
| ) |
|
Check if the audio stream is playing.
- Returns
- true if the stream is playing
◆ isProcessed()
| bool raylib::audio::RlAudioStream::isProcessed |
( |
| ) |
|
Check if any audio stream buffers requires refill.
- Returns
- true if the stream is processed
◆ pause()
| void raylib::audio::RlAudioStream::pause |
( |
| ) |
|
◆ play()
| void raylib::audio::RlAudioStream::play |
( |
| ) |
|
◆ resume()
| void raylib::audio::RlAudioStream::resume |
( |
| ) |
|
◆ setPitch()
| void raylib::audio::RlAudioStream::setPitch |
( |
const float & |
pitch | ) |
|
Set the pitch of the audio stream (1.0 is base level)
- Parameters
-
| pitch | the pitch to set the stream to |
◆ setVolume()
| void raylib::audio::RlAudioStream::setVolume |
( |
float |
volume | ) |
|
Set the volume of the audio stream (1.0 is max level)
- Parameters
-
| volume | the volume to set the stream to |
◆ stop()
| void raylib::audio::RlAudioStream::stop |
( |
| ) |
|
◆ update()
| void raylib::audio::RlAudioStream::update |
( |
const void * |
data, |
|
|
const int & |
samplesCount |
|
) |
| |
Update audio stream buffers with data.
- Parameters
-
| data | the data to update the stream with |
| samplesCount | the number of samples to update the stream with |
The documentation for this class was generated from the following files: