ladybird/Userland
Max Trussell 60fa8ac109 AudioServer/Mixer: Fix remaining samples underflow
The `m_remaining_samples` attribute was underflowing at the end of an
audio stream. This fix guards against the underflow by only decrementing
the attribute when it is greater than zero.

I found this bug because the SoundPlayer userland application was not
correctly detecting when an audio stream was completed. This was
happening because the remaining samples being returned from the client
audio connection was an underflowed 16 bit integer instead of zero.
2021-12-24 00:05:35 -08:00
..
Applets ClipboardHistory: Convert to try_create_default_icon 2021-12-18 23:36:59 +01:00
Applications SoundPlayer: Sync startup loop and show playlist settings in GUI 2021-12-24 00:05:35 -08:00
Demos WidgetGallery: Convert to try_create_default_icon 2021-12-18 23:36:59 +01:00
DevTools Kernel+UE+LibC: Store address as void* in SC_m{re,}map_params 2021-12-23 23:08:10 +01:00
DynamicLoader Toolchain+Meta: Update LLVM version to 13.0.0 2021-10-17 17:09:58 +01:00
Games FlappyBug: Make bitmap() methods return NonnullRefPtrs 2021-12-23 17:42:05 -08:00
Libraries LibFileSystemAccessClient: Allow custom access rights for open/save 2021-12-23 23:25:47 -08:00
Services AudioServer/Mixer: Fix remaining samples underflow 2021-12-24 00:05:35 -08:00
Shell Shell: Don't skip over the first brace expansion entry if it's empty 2021-12-16 03:26:59 +03:30
Utilities strace: Fix out-of-bounds read when formatting realpath() 2021-12-23 23:08:10 +01:00
CMakeLists.txt Tests: Establish root Tests directory, move Userland/Tests there 2021-05-06 17:54:28 +02:00