summaryrefslogtreecommitdiffhomepage
path: root/src/raudio.c
AgeCommit message (Collapse)Author
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
2020-02-12Reviewed Cppcheck issues #1098Ray
2020-02-10[raudio] Update to latest miniaudio 0.10raysan5
2020-02-10Minor tweaksraysan5
2020-02-09Minor tweaksraysan5
2020-02-04Review libc dependencies and remove when possibleRay
Just for clarification, no plans to remove libc dependency, just did some code analysis to see how much raylib depend on stardard C library. My conclusions: - stdlib.h: primary dependency is for malloc() and free() - stdio.h: primary dependency is for FILE access, maybe it could go through a custom ABI? - string.h: just around 8 functions required - math.h: just around 8 functions required - others: 1-2 functions required for some other headers
2020-02-04Update to miniaudio 0.10 (#1092)David Reid
* Update to miniaudio 0.10 This replaces the old ma_pcm_converter with ma_data_converter. At this time of this commit, miniaudio 0.10 is still in the testing phase. To make it easier to update miniaudio.h during this period, I've temporarily moved the @raysan5 Win32 customizations to raudio.c because there may be quite a few updates to miniaudio.h during this time. * Use miniaudio's built-in volume control.
2020-02-03Remove all trail spacesRay
2020-02-03Replace TraceLog() function by TRACELOG macroRay
Added SUPPORT_TRACELOG_DEBUG config
2020-02-03Develop branch integration (#1091)Ray
* [core] REDESIGNED: Implement global context * [rlgl] REDESIGNED: Implement global context * Reviewed globals for Android * Review Android globals usage * Update Android globals * Bump raylib version to 3.0 !!! * [raudio] REDESIGNED: Implement global context * [raudio] Reorder functions * [core] Tweaks on descriptions * Issues with SUPPORT_MOUSE_GESTURES * [camera] Use global context * REDESIGN: Move shapes drawing texture/rec to RLGL context * Review some issues on standalone mode * Update to use global context * [GAME] Upload RE-PAIR game from GGJ2020 -WIP- * Update game: RE-PAIR * [utils] TRACELOG macros proposal * Update config.h
2020-01-28Some tweaksRay
2020-01-26Corrected bug #989Ray
2020-01-14Fix for short non-looping sounds (#1067)jbosh
Short non-looping sounds can sometimes think they need to keep playing and will output their first few frames again. This helps to break out of all the loops instead of just this one.
2020-01-08Reviewed some commentsRay
2020-01-08IsAudioBufferPlaying() replace ERROR by WARNINGRay
2020-01-05Update year to 2020raysan5
2019-12-21Forcibly ensure .xm playback starts in the right place; fixes #1043. (#1045)illegalinstruction
2019-10-29fix various problems, thanks CppCheck :) (#1005)João Coelho
* explained a bit more the core_window_letterbox example * fixed a few 'ups' moments that could lead to mild head pain and time loss
2019-10-22Corrected possible memory leak #993Ray
2019-10-17Remove trailing spacesRay
2019-10-03Remove dead assignments (#980)Michael Vetter
The result of `success` is actually never used. Either we should check for it and return or remove it. I assume just checking the last one is okay.
2019-09-30Add security checks on file writtingRay
2019-09-03Review dr_flac usageRay
Replaced DEPRECATED functions
2019-09-03Remove sampleLeft from Music struct... -WIP-Ray
...moved to internal AudioBuffer structure as totalFramesProcessed, now time measure works again... but there is some problem with looping... Also note some inconsistencies between frames and samples, it seems those concepts are not considered correctly in the code.
2019-08-27Review all RL_CALLOC() callsraysan5
All data should be properly initialized by now
2019-08-13RENAMED: IsAudioBufferProcessed() -> IsAudioStreamProcessed()raysan5
Renamed for consistency with similar functions
2019-08-08Formating tweaksRay
2019-08-08fixed xmloader bug, user must free model shaders and textures as they might ↵chriscamacho
be shared (#933)
2019-07-26WARNING: Replaced Music pointer by structRay
Now, multiple music parameters are exposed to the user!
2019-07-24Some variables renamedRay
2019-07-24Added Sound parameters dataRay