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
e582e893
Commit
e582e893
authored
Feb 04, 2015
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tag/Rva2: make enum rva2_channel strictly-typed
parent
833ec3d3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
TagRva2.cxx
src/tag/TagRva2.cxx
+12
-12
No files found.
src/tag/TagRva2.cxx
View file @
e582e893
...
...
@@ -26,20 +26,20 @@
#include <stdint.h>
#include <string.h>
enum
rva2_channel
{
CHANNEL_
OTHER
=
0x00
,
CHANNEL_
MASTER_VOLUME
=
0x01
,
CHANNEL_
FRONT_RIGHT
=
0x02
,
CHANNEL_
FRONT_LEFT
=
0x03
,
CHANNEL_
BACK_RIGHT
=
0x04
,
CHANNEL_
BACK_LEFT
=
0x05
,
CHANNEL_
FRONT_CENTRE
=
0x06
,
CHANNEL_
BACK_CENTRE
=
0x07
,
CHANNEL_
SUBWOOFER
=
0x08
enum
class
Rva2Channel
:
uint8_t
{
OTHER
=
0x00
,
MASTER_VOLUME
=
0x01
,
FRONT_RIGHT
=
0x02
,
FRONT_LEFT
=
0x03
,
BACK_RIGHT
=
0x04
,
BACK_LEFT
=
0x05
,
FRONT_CENTRE
=
0x06
,
BACK_CENTRE
=
0x07
,
SUBWOOFER
=
0x08
};
struct
rva2_data
{
uint8_t
type
;
Rva2Channel
type
;
uint8_t
volume_adjustment
[
2
];
uint8_t
peak_bits
;
};
...
...
@@ -76,7 +76,7 @@ static inline bool
rva2_apply_data
(
ReplayGainInfo
&
rgi
,
const
struct
rva2_data
*
data
,
const
id3_latin1_t
*
id
)
{
if
(
data
->
type
!=
CHANNEL_
MASTER_VOLUME
)
if
(
data
->
type
!=
Rva2Channel
::
MASTER_VOLUME
)
return
false
;
float
volume_adjustment
=
rva2_float_volume_adjustment
(
data
);
...
...
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