mirror of
https://github.com/raysan5/raylib.git
synced 2026-06-16 21:05:40 +08:00
* Flip release of buffer; First it needs to be taken out of the processing chain, then it can be released. The inverse of the initialization. * Add mutex locks to audio buffer functions; Separate those used from both threads * Flip release of buffer; First it needs to be taken out of the processing chain, then it can be released. The inverse of the initialization. * Remove TODO marker; The buffer is in stopped state and its data won't be accessed * Add mutex locks to music/stream functions directly operating on buffer * Secure UpdateMusicStream/PlayMusicStream/UpdateAudioStream; This change is twofold: * Add locks to UpdateMusicStream/UpdateAudioStream (second one needed separation) * Remove unnecessary hack to restart music - inlining the statements resulted in a no-op Especially the second part made it easier to ensure thread-safety overall * Remove redundant check; Already checked at beginning of function |
||
|---|---|---|
| .. | ||
| external | ||
| platforms | ||
| build.zig | ||
| CMakeLists.txt | ||
| config.h | ||
| Makefile | ||
| minshell.html | ||
| raudio.c | ||
| raylib.dll.rc | ||
| raylib.dll.rc.data | ||
| raylib.h | ||
| raylib.ico | ||
| raylib.rc | ||
| raylib.rc.data | ||
| raymath.h | ||
| rcamera.h | ||
| rcore.c | ||
| rgestures.h | ||
| rglfw.c | ||
| rlgl.h | ||
| rmodels.c | ||
| rshapes.c | ||
| rtext.c | ||
| rtextures.c | ||
| shell.html | ||
| utils.c | ||
| utils.h | ||