|
void | InitAudioDevice (void) |
|
void | CloseAudioDevice (void) |
|
bool | IsAudioDeviceReady (void) |
|
void | SetMasterVolume (float volume) |
|
Wave | LoadWave (const char *fileName) |
|
Wave | LoadWaveFromMemory (const char *fileType, const unsigned char *fileData, int dataSize) |
|
Sound | LoadSound (const char *fileName) |
|
Sound | LoadSoundFromWave (Wave wave) |
|
void | UpdateSound (Sound sound, const void *data, int samplesCount) |
|
void | UnloadWave (Wave wave) |
|
void | UnloadSound (Sound sound) |
|
bool | ExportWave (Wave wave, const char *fileName) |
|
bool | ExportWaveAsCode (Wave wave, const char *fileName) |
|
void | PlaySound (Sound sound) |
|
void | StopSound (Sound sound) |
|
void | PauseSound (Sound sound) |
|
void | ResumeSound (Sound sound) |
|
void | PlaySoundMulti (Sound sound) |
|
void | StopSoundMulti (void) |
|
int | GetSoundsPlaying (void) |
|
bool | IsSoundPlaying (Sound sound) |
|
void | SetSoundVolume (Sound sound, float volume) |
|
void | SetSoundPitch (Sound sound, float pitch) |
|
void | SetSoundPan (Sound sound, float pan) |
|
void | WaveFormat (Wave *wave, int sampleRate, int sampleSize, int channels) |
|
Wave | WaveCopy (Wave wave) |
|
void | WaveCrop (Wave *wave, int initSample, int finalSample) |
|
float * | LoadWaveSamples (Wave wave) |
|
void | UnloadWaveSamples (float *samples) |
|
Music | LoadMusicStream (const char *fileName) |
|
Music | LoadMusicStreamFromMemory (const char *fileType, unsigned char *data, int dataSize) |
|
void | UnloadMusicStream (Music music) |
|
void | PlayMusicStream (Music music) |
|
bool | IsMusicStreamPlaying (Music music) |
|
void | UpdateMusicStream (Music music) |
|
void | StopMusicStream (Music music) |
|
void | PauseMusicStream (Music music) |
|
void | ResumeMusicStream (Music music) |
|
void | SeekMusicStream (Music music, float position) |
|
void | SetMusicVolume (Music music, float volume) |
|
void | SetMusicPan (Music sound, float pan) |
|
void | SetMusicPitch (Music music, float pitch) |
|
float | GetMusicTimeLength (Music music) |
|
float | GetMusicTimePlayed (Music music) |
|
AudioStream | LoadAudioStream (unsigned int sampleRate, unsigned int sampleSize, unsigned int channels) |
|
void | UpdateAudioStream (AudioStream stream, const void *data, int samplesCount) |
|
void | UnloadAudioStream (AudioStream stream) |
|
bool | IsAudioStreamProcessed (AudioStream stream) |
|
void | PlayAudioStream (AudioStream stream) |
|
void | PauseAudioStream (AudioStream stream) |
|
void | ResumeAudioStream (AudioStream stream) |
|
bool | IsAudioStreamPlaying (AudioStream stream) |
|
void | StopAudioStream (AudioStream stream) |
|
void | SetAudioStreamVolume (AudioStream stream, float volume) |
|
void | SetAudioStreamPitch (AudioStream stream, float pitch) |
|
void | SetAudioStreamPan (AudioStream strean, float pan) |
|
void | SetAudioStreamBufferSizeDefault (int size) |
|
#define RL_MALLOC |
( |
|
sz | ) |
malloc(sz) |
raudio v1.0 - A simple and easy-to-use audio library based on miniaudio
FEATURES:
- Manage audio device (init/close)
- Load and unload audio files
- Format wave data (sample rate, size, channels)
- Play/Stop/Pause/Resume loaded audio
- Manage mixing channels
- Manage raw audio context
DEPENDENCIES: miniaudio.h - Audio device management lib (https://github.com/dr-soft/miniaudio) stb_vorbis.h - Ogg audio files loading (http://www.nothings.org/stb_vorbis/) dr_mp3.h - MP3 audio file loading (https://github.com/mackron/dr_libs) dr_flac.h - FLAC audio file loading (https://github.com/mackron/dr_libs) jar_xm.h - XM module file loading jar_mod.h - MOD audio file loading
CONTRIBUTORS: David Reid (github: @mackron) (Nov. 2017):
- Complete port to miniaudio library
Joshua Reisenauer (github: @kd7tck) (2015)
- XM audio module support (jar_xm)
- MOD audio module support (jar_mod)
- Mixing channels support
- Raw audio context support
LICENSE: zlib/libpng
Copyright (c) 2014-2022 Ramon Santamaria (@raysan5)
This software is provided "as-is", without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.
Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
- The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
- Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
- This notice may not be removed or altered from any source distribution.
Definition at line 61 of file raudio.h.