pcm/Traits: add specialization for SampleFormat::DSD
This commit is contained in:
parent
33716732a1
commit
7a098ca0ed
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user