summaryrefslogtreecommitdiffhomepage
path: root/src/raudio.c
AgeCommit message (Collapse)Author
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.
2020-05-06Avoid all MSVC compile warningsraysan5
Most warning were related to types conversion (casting required) and unsigned/signed types comparisons. Added preprocessor directives (_CRT_SECURE_NO_DEPRECATE; _CRT_NONSTDC_NO_DEPRECATE) to avoid warnings about unsafe functions, those functions are safe while used properly and recommended alternatives are MS only. Some external libraries still generate warnings.
2020-05-01Review exposed #defines and allow user re-definingraysan5
There are multiple #define values around raylib, usually not exposed for redefinition, just reviewed all of them to allow users redefining them on compile time if required. Also, multiple #define have been renamed and commented.
2020-04-06added log warning for unsupported file extension for music stream (#1176)Louis Johnson
* added log warning for unsupported file extension for music stream * updated error log message for music stream when file format isn't supported
2020-03-30[cppcheck] Fix minor warnings in models.c and raudio.c (#1162)Dani Martin
Errores fixes: models.c,2843 Either the condition 'fileData!=NULL' is redundant or there is possible null pointer dereference: fileData. raudio.c,805, 806, 807, 808, %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'.
2020-03-27Review TRACELOG() messagesraysan5
2020-03-27[raudio] Review TRACELOG() messages, categorizedraysan5
2020-03-27[raudio] Review TRACELOG() messages, categorizedraysan5
2020-03-25Remove trail spacesraysan5
2020-03-17Replace external libraries custom allocators by raylib ones #1074raysan5
NOTE: Two libraries still use custom allocators: glfw and stb_vorbis
2020-02-27TweaksRay
2020-02-27REDESIGN: ExportWave()Ray
Use new file I/O ABI
2020-02-27Remove trail spaces and some tweaksRay
2020-02-26Remove TraceLog() dependency on standalone modeRay
2020-02-18Review function name on RAUDIO_STANDALONERay
2020-02-18Some security checks in case music is not properly loadedRay
2020-02-14[raudio] ADDED: SetAudioStreamBufferSizeDefault()Ray
There could be some cases where we need to define the internal audio buffer size, now it's possible. RENAMED: InitAudioBuffer() to LoadAudioBuffer() RENAMED: CloseAudioBuffer() to UnloadAudioBuffer() Renamed some defines and reviewed some comments.
2020-02-14Remove "No Audio Buffer" tracesRay
2020-02-13[raudio] Corrected issue with OGG sound loadingRay
2020-02-12Updated periodSize referenceRay
2020-02-12Trace log comment reviewRay