Commit 7a098ca0 authored by Max Kellermann's avatar Max Kellermann

pcm/Traits: add specialization for SampleFormat::DSD

parent 33716732
......@@ -150,4 +150,13 @@ struct SampleTraits<SampleFormat::FLOAT> {
static constexpr value_type MAX = 1;
};
template<>
struct SampleTraits<SampleFormat::DSD> {
typedef uint8_t value_type;
typedef value_type *pointer_type;
typedef const value_type *const_pointer_type;
static constexpr size_t SAMPLE_SIZE = sizeof(value_type);
};
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment