summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2019-06-17 22:09:06 +0200
committerMax Kellermann <max@musicpd.org>2019-06-17 22:09:06 +0200
commitccc96e25d33e1fc88e6ce6e754f50b359baf9ada (patch)
tree0d62a6cf3eec5735b3a994a89f880b09c8d3a702
parent33f5e03e80a78ceae89c09801271f2975c04e1e3 (diff)
output/{alsa,osx}: remove comment after PcmExport::Export()
Returning an empty buffer is a normal result now (since commit 79839db3a3b6819eb4d4d8408bc368bf1bc2618e), and doesn't deserve such a big comment.
-rw-r--r--src/output/plugins/AlsaOutputPlugin.cxx6
-rw-r--r--src/output/plugins/OSXOutputPlugin.cxx6
2 files changed, 0 insertions, 12 deletions
diff --git a/src/output/plugins/AlsaOutputPlugin.cxx b/src/output/plugins/AlsaOutputPlugin.cxx
index d1a0f7a9d..dcde63300 100644
--- a/src/output/plugins/AlsaOutputPlugin.cxx
+++ b/src/output/plugins/AlsaOutputPlugin.cxx
@@ -873,12 +873,6 @@ AlsaOutput::Play(const void *chunk, size_t size)
const auto e = pcm_export->Export({chunk, size});
if (e.size == 0)
- /* the DoP (DSD over PCM) filter converts two frames
- at a time and ignores the last odd frame; if there
- was only one frame (e.g. the last frame in the
- file), the result is empty; to avoid an endless
- loop, bail out here, and pretend the one frame has
- been played */
return size;
std::unique_lock<Mutex> lock(mutex);
diff --git a/src/output/plugins/OSXOutputPlugin.cxx b/src/output/plugins/OSXOutputPlugin.cxx
index c36a82028..330ada9ca 100644
--- a/src/output/plugins/OSXOutputPlugin.cxx
+++ b/src/output/plugins/OSXOutputPlugin.cxx
@@ -887,12 +887,6 @@ OSXOutput::Play(const void *chunk, size_t size)
#ifdef ENABLE_DSD
if (dop_enabled) {
const auto e = pcm_export->Export({chunk, size});
- /* the DoP (DSD over PCM) filter converts two frames
- at a time and ignores the last odd frame; if there
- was only one frame (e.g. the last frame in the
- file), the result is empty; to avoid an endless
- loop, bail out here, and pretend the one frame has
- been played */
if (e.size == 0)
return size;