From 2f243f22956d3c2c130de2f6ed618e9aabd48f36 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 26 Jun 2019 15:45:44 +0200 Subject: [PATCH] pcm/Export: rename GetFrameSize() to GetOutputFrameSize() --- src/output/plugins/AlsaOutputPlugin.cxx | 2 +- src/output/plugins/OSXOutputPlugin.cxx | 2 +- src/pcm/Export.cxx | 2 +- src/pcm/Export.hxx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/output/plugins/AlsaOutputPlugin.cxx b/src/output/plugins/AlsaOutputPlugin.cxx index 262dbf39e..df10c0510 100644 --- a/src/output/plugins/AlsaOutputPlugin.cxx +++ b/src/output/plugins/AlsaOutputPlugin.cxx @@ -674,7 +674,7 @@ AlsaOutput::Open(AudioFormat &audio_format) #ifndef NDEBUG in_frame_size = audio_format.GetFrameSize(); #endif - out_frame_size = pcm_export->GetFrameSize(); + out_frame_size = pcm_export->GetOutputFrameSize(); drain = false; diff --git a/src/output/plugins/OSXOutputPlugin.cxx b/src/output/plugins/OSXOutputPlugin.cxx index c4085059a..2cbc741fe 100644 --- a/src/output/plugins/OSXOutputPlugin.cxx +++ b/src/output/plugins/OSXOutputPlugin.cxx @@ -856,7 +856,7 @@ OSXOutput::Open(AudioFormat &audio_format) if (dop_enabled) { pcm_export->Open(audio_format.format, audio_format.channels, params); ring_buffer_size = std::max(buffer_frame_size, - MPD_OSX_BUFFER_TIME_MS * pcm_export->GetFrameSize() * asbd.mSampleRate / 1000); + MPD_OSX_BUFFER_TIME_MS * pcm_export->GetOutputFrameSize() * asbd.mSampleRate / 1000); } #endif ring_buffer = new boost::lockfree::spsc_queue(ring_buffer_size); diff --git a/src/pcm/Export.cxx b/src/pcm/Export.cxx index 95a818a8e..5c7acc174 100644 --- a/src/pcm/Export.cxx +++ b/src/pcm/Export.cxx @@ -115,7 +115,7 @@ PcmExport::Reset() noexcept } size_t -PcmExport::GetFrameSize() const noexcept +PcmExport::GetOutputFrameSize() const noexcept { if (pack24) /* packed 24 bit samples (3 bytes per sample) */ diff --git a/src/pcm/Export.hxx b/src/pcm/Export.hxx index 68952694f..722c7556c 100644 --- a/src/pcm/Export.hxx +++ b/src/pcm/Export.hxx @@ -188,7 +188,7 @@ public: * Calculate the size of one output frame. */ gcc_pure - size_t GetFrameSize() const noexcept; + size_t GetOutputFrameSize() const noexcept; /** * Export a PCM buffer.