Commit a224225e authored by Max Kellermann's avatar Max Kellermann

pcm/AudioFormat: use std::size_t

parent 7d7fe756
......@@ -26,7 +26,7 @@
#include <cstddef>
#include <cstdint>
template<size_t CAPACITY> class StringBuffer;
template<std::size_t CAPACITY> class StringBuffer;
/**
* This structure describes the format of a raw PCM stream.
......@@ -152,8 +152,8 @@ struct AudioFormat {
}
template<typename D>
constexpr size_t TimeToSize(D t) const noexcept {
return size_t(size_t(TimeToFrames(t)) * GetFrameSize());
constexpr std::size_t TimeToSize(D t) const noexcept {
return std::size_t(std::size_t(TimeToFrames(t)) * GetFrameSize());
}
template<typename D>
......
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