From c8c553c75c61e5aaaff2a9ea8ba2934b3d20deef Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 5 Aug 2021 15:35:10 +0200 Subject: [PATCH] pcm/Export: add method IsDopEnabled() --- src/pcm/Export.hxx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/pcm/Export.hxx b/src/pcm/Export.hxx index 6a7e06b5f..105e0154e 100644 --- a/src/pcm/Export.hxx +++ b/src/pcm/Export.hxx @@ -182,6 +182,14 @@ public: void Open(SampleFormat sample_format, unsigned channels, Params params) noexcept; + bool IsDopEnabled() const noexcept { +#ifdef ENABLE_DSD + return dsd_mode != DsdMode::NONE; +#else + return false; +#endif + } + /** * Reset the filter's state, e.g. drop/flush buffers. */