|
Raylib C++
1.0.0
Encapsulates the raylib library
|
Encapsulation of the raylib Wave. More...
#include <RlWave.hpp>

Public Member Functions | |
| RlWave () | |
| Default constructor. More... | |
| RlWave (const Wave &wave) | |
| Construct a new RlWave object from the raylib wave. More... | |
| RlWave (const std::string &path) | |
| Construct a new RlWave object. More... | |
| RlWave (const std::string &fileType, const unsigned char *fileData, int dataSize) | |
| Construct a new RlWave object. More... | |
| ~RlWave () | |
| Destroy the RlWave object. More... | |
| Wave & | getWave () |
| Get the raylib wave. More... | |
| const Wave & | getWave () const |
| Get the raylib wave. More... | |
| bool | exportWave (const std::string &fileName) |
| Export wave data to file. More... | |
| bool | exportWaveAsCode (const std::string &fileName) |
| Export wave sample data to code (.h) More... | |
| raylib::audio::RlSound | toSound () const |
| Create a RlSound from the wave. More... | |
| void | format (const int &sampleRate, const int &sampleSize, const int &channels) |
| Convert wave data to desired format. More... | |
| RlWave | copy () |
| Copy the RlWave. More... | |
| void | crop (const int &initSample, const int &finalSample) |
| Crop a wave to defined samples range. More... | |
| std::vector< float > | getSamples () |
| Load samples data from wave as a floats array. More... | |
Encapsulation of the raylib Wave.
|
inline |
Default constructor.
|
explicit |
Construct a new RlWave object from the raylib wave.
| wave | the raylib wave |
|
explicit |
Construct a new RlWave object.
| path | the path of the wave (.wav) |
|
explicit |
Construct a new RlWave object.
| fileType | the type of the wave |
| fileData | the data of the wave |
| dataSize | the size of the data Please don't use this, I don't like raw pointer |
| raylib::audio::RlWave::~RlWave | ( | ) |
Destroy the RlWave object.
| raylib::audio::RlWave raylib::audio::RlWave::copy | ( | ) |
| void raylib::audio::RlWave::crop | ( | const int & | initSample, |
| const int & | finalSample | ||
| ) |
Crop a wave to defined samples range.
| initSample | the initial sample |
| finalSample | the final sample |
| bool raylib::audio::RlWave::exportWave | ( | const std::string & | fileName | ) |
Export wave data to file.
| fileName | the name of the file |
| bool raylib::audio::RlWave::exportWaveAsCode | ( | const std::string & | fileName | ) |
Export wave sample data to code (.h)
| fileName | the name of the file |
| void raylib::audio::RlWave::format | ( | const int & | sampleRate, |
| const int & | sampleSize, | ||
| const int & | channels | ||
| ) |
Convert wave data to desired format.
| sampleRate | the sample rate |
| sampleSize | the sample size |
| channels | the number of channels |
| std::vector< float > raylib::audio::RlWave::getSamples | ( | ) |
Load samples data from wave as a floats array.
| const Wave & raylib::audio::RlWave::getWave | ( | ) |
Get the raylib wave.
| const Wave& raylib::audio::RlWave::getWave | ( | ) | const |
Get the raylib wave.
| raylib::audio::RlSound raylib::audio::RlWave::toSound | ( | ) | const |
1.8.17