From cb0e95c928e152d39dc60198ab714f437a2347ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?kleines=20Filmr=C3=B6llchen?= Date: Sun, 20 Feb 2022 13:18:38 +0100 Subject: 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. --- Userland/Libraries/LibAudio/WavLoader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Userland/Libraries/LibAudio/WavLoader.cpp') 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(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); -- cgit v1.2.3