diff options
author | Tim Schumacher <timschumi@gmx.de> | 2022-12-07 15:47:44 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-12-15 13:28:29 +0000 |
commit | c6d71ca72757c1d69e608aa101e47818cf9991e1 (patch) | |
tree | a8dc8edf99e2776c8dfa513de26a5b67969303e9 /Userland/Libraries/LibAudio/WavLoader.cpp | |
parent | c4f68bde570e654be749dc57a91a80e01d21f143 (diff) | |
download | serenity-c6d71ca72757c1d69e608aa101e47818cf9991e1.zip |
LibCore: Rename `MemoryStream` to `FixedMemoryStream`
This is to differentiate between the upcoming `AllocatingMemoryStream`,
which automatically allocates memory as needed instead of operating on a
static memory area.
Diffstat (limited to 'Userland/Libraries/LibAudio/WavLoader.cpp')
-rw-r--r-- | Userland/Libraries/LibAudio/WavLoader.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibAudio/WavLoader.cpp b/Userland/Libraries/LibAudio/WavLoader.cpp index 07c0e14057..be382c9274 100644 --- a/Userland/Libraries/LibAudio/WavLoader.cpp +++ b/Userland/Libraries/LibAudio/WavLoader.cpp @@ -35,7 +35,7 @@ Result<NonnullOwnPtr<WavLoaderPlugin>, LoaderError> WavLoaderPlugin::try_create( Result<NonnullOwnPtr<WavLoaderPlugin>, LoaderError> WavLoaderPlugin::try_create(Bytes buffer) { - auto stream = LOADER_TRY(Core::Stream::MemoryStream::construct(buffer)); + auto stream = LOADER_TRY(Core::Stream::FixedMemoryStream::construct(buffer)); auto loader = make<WavLoaderPlugin>(move(stream)); LOADER_TRY(loader->initialize()); @@ -115,7 +115,7 @@ static ErrorOr<double> read_sample(Core::Stream::Stream& stream) LoaderSamples WavLoaderPlugin::samples_from_pcm_data(Bytes const& data, size_t samples_to_read) const { FixedArray<Sample> samples = LOADER_TRY(FixedArray<Sample>::try_create(samples_to_read)); - auto stream = LOADER_TRY(Core::Stream::MemoryStream::construct(move(data))); + auto stream = LOADER_TRY(Core::Stream::FixedMemoryStream::construct(move(data))); switch (m_sample_format) { case PcmSampleFormat::Uint8: |