Commit 302eff0a authored by Max Kellermann's avatar Max Kellermann

decoder/{vorbis,mpcdec}: use `using` instead of `typedef`

parent bcc4e97c
...@@ -45,7 +45,7 @@ struct mpc_decoder_data { ...@@ -45,7 +45,7 @@ struct mpc_decoder_data {
static constexpr Domain mpcdec_domain("mpcdec"); static constexpr Domain mpcdec_domain("mpcdec");
static constexpr SampleFormat mpcdec_sample_format = SampleFormat::S24_P32; static constexpr SampleFormat mpcdec_sample_format = SampleFormat::S24_P32;
typedef SampleTraits<mpcdec_sample_format> MpcdecSampleTraits; using MpcdecSampleTraits = SampleTraits<mpcdec_sample_format>;
static mpc_int32_t static mpc_int32_t
mpc_read_cb(mpc_reader *reader, void *ptr, mpc_int32_t size) mpc_read_cb(mpc_reader *reader, void *ptr, mpc_int32_t size)
......
...@@ -50,8 +50,8 @@ class VorbisDecoder final : public OggDecoder { ...@@ -50,8 +50,8 @@ class VorbisDecoder final : public OggDecoder {
typedef int16_t out_sample_t; typedef int16_t out_sample_t;
#else #else
static constexpr SampleFormat sample_format = SampleFormat::FLOAT; static constexpr SampleFormat sample_format = SampleFormat::FLOAT;
typedef float in_sample_t; using in_sample_t = float;
typedef float out_sample_t; using out_sample_t = float;
#endif #endif
unsigned remaining_header_packets; unsigned remaining_header_packets;
......
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