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
bcc4e97c
Commit
bcc4e97c
authored
Feb 01, 2020
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pcm/PcmFormat: use `using` instead of `typedef`
parent
4968dd4f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
PcmFormat.cxx
src/pcm/PcmFormat.cxx
+8
-8
No files found.
src/pcm/PcmFormat.cxx
View file @
bcc4e97c
...
...
@@ -33,8 +33,8 @@
*/
template
<
typename
C
>
struct
PerSampleConvert
:
C
{
typedef
typename
C
::
SrcTraits
SrcTraits
;
typedef
typename
C
::
DstTraits
DstTraits
;
using
SrcTraits
=
typename
C
::
SrcTraits
;
using
DstTraits
=
typename
C
::
DstTraits
;
void
Convert
(
typename
DstTraits
::
pointer
gcc_restrict
out
,
typename
SrcTraits
::
const_pointer
gcc_restrict
in
,
...
...
@@ -48,8 +48,8 @@ struct Convert8To16
SampleFormat
::
S16
>>
{};
struct
Convert24To16
{
typedef
SampleTraits
<
SampleFormat
::
S24_P32
>
SrcTraits
;
typedef
SampleTraits
<
SampleFormat
::
S16
>
DstTraits
;
using
SrcTraits
=
SampleTraits
<
SampleFormat
::
S24_P32
>
;
using
DstTraits
=
SampleTraits
<
SampleFormat
::
S16
>
;
PcmDither
&
dither
;
...
...
@@ -61,8 +61,8 @@ struct Convert24To16 {
};
struct
Convert32To16
{
typedef
SampleTraits
<
SampleFormat
::
S32
>
SrcTraits
;
typedef
SampleTraits
<
SampleFormat
::
S16
>
DstTraits
;
using
SrcTraits
=
SampleTraits
<
SampleFormat
::
S32
>
;
using
DstTraits
=
SampleTraits
<
SampleFormat
::
S16
>
;
PcmDither
&
dither
;
...
...
@@ -88,8 +88,8 @@ struct FloatToInteger : PortableFloatToInteger<F, Traits> {};
template
<
typename
Optimized
,
typename
Portable
>
class
GlueOptimizedConvert
:
Optimized
,
Portable
{
public
:
typedef
typename
Portable
::
SrcTraits
SrcTraits
;
typedef
typename
Portable
::
DstTraits
DstTraits
;
using
SrcTraits
=
typename
Portable
::
SrcTraits
;
using
DstTraits
=
typename
Portable
::
DstTraits
;
void
Convert
(
typename
DstTraits
::
pointer
out
,
typename
SrcTraits
::
const_pointer
in
,
...
...
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