RandyGaul / cute_headers

Collection of cross-platform one-file C/C++ libraries with no dependencies, primarily used for games
4.24k stars 264 forks source link

bugfix cs_stop_all_playing_sounds() #332

Closed james-bern closed 1 year ago

james-bern commented 1 year ago

if we have s_ctx->separate_thread equal to true and call cs_stop_all_playing_sounds() with no sounds playing, we never unlock the mutex bugfix: added call to cs_unlock() before the early (no sounds playing) return

PS thanks for this awesome library! 🙂

RandyGaul commented 1 year ago

Wow thanks, looks good!