Andreas Kling
13d7c09125
Libraries: Move to Userland/Libraries/
2021-01-12 12:17:46 +01:00
Julian Offenhäuser
d0812e9019
LibAudio: Fix parsing of WAV files from memory
...
The WavLoaderPlugin now loads the file header correctly when reading
from a ByteBuffer.
2020-12-03 21:52:10 +01:00
Julian Offenhäuser
21977a2188
LibAudio: Allow loading sounds from memory
...
The Loader and WavLoaderPlugin classes now have methods for loading
from a ByteBuffer, in addition to streaming from disk.
2020-12-02 16:31:30 +01:00
Julian Offenhäuser
1f47b01e3b
LibAudio: Add generic Audio::Loader class
...
The Audio::Loader class is able to load different types of audio files
by using a generic plugin interface for all file formats. Every new
loader will have to derive from Audio::LoaderPlugin to provide a common
API.
This makes it easy to add support for more audio file formats in the future.
2020-12-02 16:31:30 +01:00
asynts
805ed03b48
LibAudio: Use new format functions.
2020-10-17 23:20:31 +02:00
Nico Weber
ef1b21004f
Everywhere: Fix typos
...
Mostly in comments, but sprintf() now prints "August" instead of
"Auguest" so that's something.
2020-10-02 16:03:17 +02:00
asynts
fa43bf92e4
LibAudio: Use InputMemoryStream instead of BufferStream.
2020-09-21 09:37:49 +02:00
Till Mayer
072e6a6405
WavLoader: Search for DATA marker by reading single bytes
...
Previously 4 bytes at once were read and compared to the string
"DATA". This worked when the DATA marker was aligned on a 32-bit
boundary relative to the start of the file. However, this is not
guranteed to always be the case, and for some files the loader
would just keep searching for the marker.
2020-06-18 23:13:48 +02:00
Andreas Kling
b517670fc9
LibAudio: Use NumericLimits<T>
2020-04-15 16:58:46 +02:00
Andreas Kling
8f7333f080
LibCore: Add a forward declaration header
...
This patch adds <LibCore/Forward.h> and uses it in various places to
shrink the header dependency graph.
2020-02-14 23:31:18 +01:00
William McPherson
aa149b9330
LibAudio/Piano: Replace floats with doubles
...
We should default to double-precision so that clients can make the
choice to use float or double.
2020-02-10 14:04:27 +01:00
William McPherson
d55d2b2794
LibAudio/aplay: Handle WAV header errors properly
...
We shouldn't just ASSERT() if the header parse fails. This was crashing
Piano completely.
2020-02-10 14:04:27 +01:00
Andreas Kling
97edc82a26
LibAudio: Remove leading A from filenames
2020-02-06 15:18:03 +01:00