Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
302eff0a
Commit
302eff0a
authored
Feb 01, 2020
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decoder/{vorbis,mpcdec}: use `using` instead of `typedef`
parent
bcc4e97c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
MpcdecDecoderPlugin.cxx
src/decoder/plugins/MpcdecDecoderPlugin.cxx
+1
-1
VorbisDecoderPlugin.cxx
src/decoder/plugins/VorbisDecoderPlugin.cxx
+2
-2
No files found.
src/decoder/plugins/MpcdecDecoderPlugin.cxx
View file @
302eff0a
...
@@ -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
)
...
...
src/decoder/plugins/VorbisDecoderPlugin.cxx
View file @
302eff0a
...
@@ -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
=
floa
t
;
typedef
float
out_sample_
t
;
using
out_sample_t
=
floa
t
;
#endif
#endif
unsigned
remaining_header_packets
;
unsigned
remaining_header_packets
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment