pcm/Export: add method IsDopEnabled()

This commit is contained in:
Max Kellermann 2021-08-05 15:35:10 +02:00
parent c97aabe43a
commit c8c553c75c

View File

@ -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.
*/