|
libpsynth 0.2.1
|
Represents the value of an unsigned integral sample operating over a bit range. More...
Classes | |
| class | psynth::sound::packed_sample_value< NumBits > |
| The value of a subbyte sample. More... | |
Represents the value of an unsigned integral sample operating over a bit range.
Models: SampleValueConcept
Example:
// A 4-bit unsigned integral sample. typedef packed_sample_value<4> bits4; assert(sample_traits<bits4>::min_value()==0); assert(sample_traits<bits4>::max_value()==15); assert(sizeof(bits4)==1); BOOST_STATIC_ASSERT((boost::is_integral<bits4>::value));
1.7.4