|
AudioBuffer * | LoadAudioBuffer (ma_format format, ma_uint32 channels, ma_uint32 sampleRate, ma_uint32 sizeInFrames, int usage) |
|
void | UnloadAudioBuffer (AudioBuffer *buffer) |
|
bool | IsAudioBufferPlaying (AudioBuffer *buffer) |
|
void | PlayAudioBuffer (AudioBuffer *buffer) |
|
void | StopAudioBuffer (AudioBuffer *buffer) |
|
void | PauseAudioBuffer (AudioBuffer *buffer) |
|
void | ResumeAudioBuffer (AudioBuffer *buffer) |
|
void | SetAudioBufferVolume (AudioBuffer *buffer, float volume) |
|
void | SetAudioBufferPitch (AudioBuffer *buffer, float pitch) |
|
void | SetAudioBufferPan (AudioBuffer *buffer, float pan) |
|
void | TrackAudioBuffer (AudioBuffer *buffer) |
|
void | UntrackAudioBuffer (AudioBuffer *buffer) |
|
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 | UnloadWave (Wave wave) |
|
void | UnloadSound (Sound sound) |
|
void | UpdateSound (Sound sound, const void *data, int sampleCount) |
|
bool | ExportWave (Wave wave, const char *fileName) |
|
bool | ExportWaveAsCode (Wave wave, const char *fileName) |
|
void | PlaySound (Sound sound) |
|
void | PlaySoundMulti (Sound sound) |
|
void | StopSoundMulti (void) |
|
int | GetSoundsPlaying (void) |
|
void | PauseSound (Sound sound) |
|
void | ResumeSound (Sound sound) |
|
void | StopSound (Sound sound) |
|
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, const unsigned char *data, int dataSize) |
|
void | UnloadMusicStream (Music music) |
|
void | PlayMusicStream (Music music) |
|
void | PauseMusicStream (Music music) |
|
void | ResumeMusicStream (Music music) |
|
void | StopMusicStream (Music music) |
|
void | SeekMusicStream (Music music, float position) |
|
void | UpdateMusicStream (Music music) |
|
bool | IsMusicStreamPlaying (Music music) |
|
void | SetMusicVolume (Music music, float volume) |
|
void | SetMusicPitch (Music music, float pitch) |
|
void | SetMusicPan (Music music, float pan) |
|
float | GetMusicTimeLength (Music music) |
|
float | GetMusicTimePlayed (Music music) |
|
AudioStream | LoadAudioStream (unsigned int sampleRate, unsigned int sampleSize, unsigned int channels) |
|
void | UnloadAudioStream (AudioStream stream) |
|
void | UpdateAudioStream (AudioStream stream, const void *data, int frameCount) |
|
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 stream, float pan) |
|
void | SetAudioStreamBufferSizeDefault (int size) |
|
void | SetAudioStreamCallback (AudioStream stream, AudioCallback callback) |
|
void | AttachAudioStreamProcessor (AudioStream stream, AudioCallback process) |
|
void | DetachAudioStreamProcessor (AudioStream stream, AudioCallback process) |
|
raudio v1.0 - A simple and easy-to-use audio library based on miniaudio
FEATURES:
- Manage audio device (init/close)
- Manage raw audio context
- Manage mixing channels
- Load and unload audio files
- Format wave data (sample rate, size, channels)
- Play/Stop/Pause/Resume loaded audio
CONFIGURATION:
#define SUPPORT_MODULE_RAUDIO raudio module is included in the build
#define RAUDIO_STANDALONE Define to use the module as standalone library (independently of raylib). Required types and functions are defined in the same module.
#define SUPPORT_FILEFORMAT_WAV #define SUPPORT_FILEFORMAT_OGG #define SUPPORT_FILEFORMAT_XM #define SUPPORT_FILEFORMAT_MOD #define SUPPORT_FILEFORMAT_FLAC #define SUPPORT_FILEFORMAT_MP3 Selected desired fileformats to be supported for loading. Some of those formats are supported by default, to remove support, just comment unrequired #define in this module
DEPENDENCIES: miniaudio.h - Audio device management lib (https://github.com/mackron/miniaudio) stb_vorbis.h - Ogg audio files loading (http://www.nothings.org/stb_vorbis/) dr_wav.h - WAV audio files loading (http://github.com/mackron/dr_libs) 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) 2013-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 163 of file raudio.c.