Commit 4968dd4f authored by Max Kellermann's avatar Max Kellermann

pcm/Dither: use `using` instead of `typedef`

parent 0896f444
...@@ -101,8 +101,8 @@ inline void ...@@ -101,8 +101,8 @@ inline void
PcmDither::Dither24To16(int16_t *dest, const int32_t *src, PcmDither::Dither24To16(int16_t *dest, const int32_t *src,
const int32_t *src_end) noexcept const int32_t *src_end) noexcept
{ {
typedef SampleTraits<SampleFormat::S24_P32> ST; using ST = SampleTraits<SampleFormat::S24_P32>;
typedef SampleTraits<SampleFormat::S16> DT; using DT = SampleTraits<SampleFormat::S16>;
DitherConvert<ST, DT>(dest, src, src_end); DitherConvert<ST, DT>(dest, src, src_end);
} }
...@@ -110,7 +110,7 @@ inline void ...@@ -110,7 +110,7 @@ inline void
PcmDither::Dither32To16(int16_t *dest, const int32_t *src, PcmDither::Dither32To16(int16_t *dest, const int32_t *src,
const int32_t *src_end) noexcept const int32_t *src_end) noexcept
{ {
typedef SampleTraits<SampleFormat::S32> ST; using ST = SampleTraits<SampleFormat::S32>;
typedef SampleTraits<SampleFormat::S16> DT; using DT = SampleTraits<SampleFormat::S16>;
DitherConvert<ST, DT>(dest, src, src_end); DitherConvert<ST, DT>(dest, src, src_end);
} }
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