mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-13 11:42:38 +03:00
9a2c80c791
This commit addresses two issues: 1. If you play a 96 KHz Wave file, the slider position is incorrect, because it is assumed all files are 44.1 KHz. 2. For high-bitrate files, there are audio dropouts due to not buffering enough audio data. Issue 1 is addressed by scaling the number of played samples by the ratio between the source and destination sample rates. Issue 2 is addressed by buffering a certain number of milliseconds worth of audio data (instead of a fixed number of bytes). This makes the the buffer size independent of the source sample rate. Some of the code is redesigned to be simpler. The code that did the book-keeping of which buffers need to be loaded and which have been already played has been removed. Instead, we enqueue a new buffer based on a low watermark of samples remaining in the audio server queue. Other small fixes include: 1. Disable the stop button when playback is finished. 2. Remove hard-coded instances of 44100. 3. Update the GUI every 50 ms (was 100), which improves visualizations. |
||
---|---|---|
.. | ||
3DFileViewer | ||
About | ||
AnalogClock | ||
Browser | ||
Calculator | ||
Calendar | ||
CrashReporter | ||
Debugger | ||
DisplaySettings | ||
FileManager | ||
FontEditor | ||
Help | ||
HexEditor | ||
ImageViewer | ||
IRCClient | ||
KeyboardMapper | ||
KeyboardSettings | ||
Magnifier | ||
MouseSettings | ||
PDFViewer | ||
Piano | ||
PixelPaint | ||
Run | ||
SoundPlayer | ||
SpaceAnalyzer | ||
Spreadsheet | ||
SystemMonitor | ||
Terminal | ||
TextEditor | ||
ThemeEditor | ||
VideoPlayer | ||
Welcome | ||
CMakeLists.txt |