diff options
author | kleines Filmröllchen <filmroellchen@serenityos.org> | 2022-02-20 13:18:38 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-04-21 13:55:00 +0200 |
commit | cb0e95c928e152d39dc60198ab714f437a2347ce (patch) | |
tree | 2466dca62702a23b30401e34429dc8a1d035dbef /Userland/Libraries/LibAudio/WavLoader.cpp | |
parent | fc7d231b004e6d141caf880dc837b701dd1898f5 (diff) | |
download | serenity-cb0e95c928e152d39dc60198ab714f437a2347ce.zip |
LibAudio+Everywhere: Rename Audio::Buffer -> Audio::LegacyBuffer
With the following change in how we send audio, the old Buffer type is
not really needed anymore. However, moving WavLoader to the new system
is a bit more involved and out of the scope of this PR. Therefore, we
need to keep Buffer around, but to make it clear that it's the old
buffer type which will be removed soon, we rename it to LegacyBuffer.
Most of the users will be gone after the next commit anyways.
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 6168cf5926..d5fa8ee57e 100644 --- a/Userland/Libraries/LibAudio/WavLoader.cpp +++ b/Userland/Libraries/LibAudio/WavLoader.cpp @@ -53,7 +53,7 @@ LoaderSamples WavLoaderPlugin::get_more_samples(size_t max_bytes_to_read_from_in int remaining_samples = m_total_samples - m_loaded_samples; if (remaining_samples <= 0) - return Buffer::create_empty(); + return LegacyBuffer::create_empty(); // One "sample" contains data from all channels. // In the Wave spec, this is also called a block. @@ -78,7 +78,7 @@ LoaderSamples WavLoaderPlugin::get_more_samples(size_t max_bytes_to_read_from_in if (m_stream->handle_any_error()) return LoaderError { LoaderError::Category::IO, static_cast<size_t>(m_loaded_samples), "Stream read error" }; - auto buffer = Buffer::from_pcm_data( + auto buffer = LegacyBuffer::from_pcm_data( sample_data.bytes(), m_num_channels, m_sample_format); |