| 14 | #include <wx/debug.h> |
| 15 | |
| 16 | size_t sampleCount::as_size_t() const { |
| 17 | assert(value >= 0); |
| 18 | assert(static_cast<std::make_unsigned_t<type>>(value) <= std::numeric_limits<size_t>::max()); |
| 19 | return value; |
| 20 | } |
| 21 | |
| 22 | size_t limitSampleBufferSize( size_t bufferSize, sampleCount limit ) |
| 23 | { |