pcm/Traits: add specialization for SampleFormat::DSD

This commit is contained in:
Max Kellermann 2017-01-20 15:48:30 +01:00
parent 33716732a1
commit 7a098ca0ed

View File

@ -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