summaryrefslogtreecommitdiffhomepage
path: root/src/raudio.c
AgeCommit message (Collapse)Author
2021-04-18Remove trailing spacesRay
2021-04-09use xm streams in the same sample sample size as the output device (#1716)Jeffery Myers
2021-04-06Minor comment tweaksRay
2021-04-01Remove trailing spacesraysan5
2021-03-31Review code formattingraysan5
2021-03-22Review latest PR and some formattingRay
2021-03-22[AUDIO] Music Looping enhancements (#1665)Jeffery Myers
* Add loop functions for music files. Tell xm tracker to loop tracker when loop state changes. Don't let looped xm tracker streams restart, they are infinite Use modulo to make time tracker for xm looped streams work correctly. * Remove loop functions, set XM loop in update based on flag. Formatting cleanups. Co-authored-by: Jeffery Myers <[email protected]>
2021-03-21[AUDIO] Use device native sample rates (#1660)Jeffery Myers
* Init MinAudio to a sample rate of 0 to let the device pick the rate. Read the rate from the device after it starts up. Convert AUDIO_DEVICE_SAMPLE_RATE from a #def into an int, that is set from the device's rate Set all sample systems to use the AUDIO_DEVICE_SAMPLE_RATE as the target rate to minimize resampling. * use device sample rate instead of separate var let config define a device sample rate if it wants to, but let the default be 0 for native rate. * Don't use fixed sample rates for tracker files. Remove config default audio buffer size and replace with a function that computes one for a reasonable frame rate at the output sample rate.
2021-03-19Removed trailing spacesRay
2021-03-19WARNING: BREAKING: REVIEWED some enums namingRay
Now enum names are more consistent between them.
2021-03-04Minor struct organization tweakRay
2021-03-02REVIEWED: GetFileExtension() to include the dot #1523Ray
2021-02-25LoadMusicStreamFromMemory OGG support (#1613)Agnis "NeZvērs" Aldiņš
2021-02-24jar_xm_create_context_safe requesting const char* (#1611)Agnis "NeZvērs" Aldiņš
Fixing compiler warning for passing (unsigned char*) to (const char*)
2021-02-24LoadMusicStreamFromMemory wav mp3 flac support (#1609)Agnis "NeZvērs" Aldiņš
2021-02-22LoadMusicStreamFromMemory (#1606)Agnis "NeZvērs" Aldiņš
* define SUPPORT_FILEFORMAT_MOD in config.h * RLAPI LoadModuleFromData() definition in raylib.h * LoadModuleFromData() definition in raudio.h * LoadModuleFromData implementation in raudio.c * Rename API to LoadMusicStreamFromMemory & default unload. * raudio.c tabs to spaces * Styling curly bracket and removing dev debugging TRACELOG Co-authored-by: nezvers <[email protected]>
2021-02-14[raudio] Fix load and unload issues with Music (#1588)Chris
* Add MUSIC_AUDIO_NONE to MusicContextType and format fixes - Useful to check the context type to see if the format is recognized. Defaulting to wav causes issues where formats are assumed to be wav. * Fix memory issues with LoadMusicStream and UnloadMusicStream - Set ctxType and ctxData even if the format fails to load. - Set ctxData to NULL if it fails and check for null inside UnloadMusicStream. - Change RL_MALLOC when loading formats to RL_CALLOC to prevent undefined behavior. - Add NULL check when unloading xm file.
2021-02-07REVIEWED: Multichannel sound system #1548raysan5
I don't like this solution but I think it's valid in the meantime....
2021-02-05REVIEWED: CloseAudioBufferPool(), uninit buffers properly #1548raysan5
2021-02-05REVIEWED: raudio: Some LOG_ERROR -> LOG_WARNING #1562raysan5
2021-02-02Update raudio.craysan5
2021-01-15Review warningRay
2021-01-02Update year to 2021raysan5
2020-12-31 Avoid dereferencing a null pointer in the 'LoadSounsFromWave' function if ↵Victor Gallet
the audioBuffer is null (#1499)
2020-12-23Remove trailing spacesraysan5
2020-12-18WARNING: RENAMED several functions for consistency #1440Ray
This is a BREAKING CHANGE! To address the linked issue, several functions have been renamed and couterpart functions have been created to free loaded memory: - RENAMED: GetImageData() -> LoadImageColors() - RENAMED: GetImagePalette() -> LoadImagePalette() - RENAMED: GetWaveData() -> LoadWaveSamples() - ADDED: UnloadImageColors() - ADDED: UnloadImagePalette() - ADDED: UnloadWaveSamples()
2020-12-12Added security check to pitch change #1450Ray
2020-12-12Reviewed SetAudioBufferPitch() #1450Ray
2020-11-30Fix typecast warnings in raylib code as reported by visual studio 2019 (#1443)Jeffery Myers
2020-11-22Exposing some file access results to user layer #1420Ray
2020-11-19WARNING: Multiple funcs reviewed!Ray
There were some problems about frameCount vs sampleCount that could cause some breaks. raylib audio structs stores sampleCount = frameCount*channels. Most libraries return framesCount instead of sampleCount. stb_vorbis seems to refer to framesCount as samples. All required functions have been reviewed.
2020-11-16Review issues with FLAC loadingRay
2020-11-15Update audio libraries #1423raysan5
miniaudio -> v0.10.25 dr_wav -> v0.12.14 dr_mp3 -> v0.6.19 dr_flac -> v0.12.22
2020-11-03Remove trailing spacesRay
2020-09-16Add security checks when loading data from memoryraysan5
2020-09-15REVIEWED: SaveWAV() to use memory write insted of fileraysan5
2020-09-14Review memory loading functions signesnessRay
2020-09-13ADDED: LoadWaveFromMemory() #1327Ray
2020-08-11Support mulstiple WAV sampleSize for MusicStream #1340raysan5
24bit per sample is not supported internally and automatically converted 16bit
2020-07-31LoadSound(): Use memory loading (WAV, OGG, MP3, FLAC) #1312raysan5
2020-07-13Remove conditional __EMSCRIPTEN__raysan5
Not required anymore
2020-07-10Update miniaudio to v0.10.12, solves #1288raysan5
2020-07-10Chromium needs a larger audio buffer (#1300)Random
* Chromium needs a larger audio buffer: https://github.com/dr-soft/miniaudio/issues/150 * changed PLATFORM_WEB to __EMSCRIPTEN__
2020-06-30Expose additional configuration optionsRay
Some internal defines have been exposed in config.h
2020-05-24REDESIGNED: ExportWaveAsCode() to use memory bufferraysan5
2020-05-24Added LoadWAV()/SaveWAV() memory buffer sample coderaysan5
It could be useful in a future...
2020-05-23Support WAV music streaming #1198raysan5
Switched custom WAV laoding/saving funtionality to drwav library, it also provides the required mechanisms to stream wav data.
2020-05-23Review usage of sizeof(), unify conventionsraysan5
All functions requiring sizeof() now follow the same convention: NUM_ELEMENTS*NUM_SUBELEMENTS*sizeof()
2020-05-22Corrected issue with multichannel on CloseAudioDevice()raysan5
2020-05-14WARNING: BREAKING CHANGE: Review audio looping systemraysan5
Current looping system was broken, `loopCount` has been converted to `bool looping` and user can enable/disable with `music.looping = false`. `SetMusicLoopCount()` has been removed.