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
1fcf35ad
Commit
1fcf35ad
authored
Jul 26, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tag_rva2: convert to C++
parent
c8054e56
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
14 deletions
+15
-14
Makefile.am
Makefile.am
+3
-4
TagRva2.cxx
src/TagRva2.cxx
+4
-4
TagRva2.hxx
src/TagRva2.hxx
+3
-3
MadDecoderPlugin.cxx
src/decoder/MadDecoderPlugin.cxx
+1
-1
dump_rva2.cxx
test/dump_rva2.cxx
+4
-2
No files found.
Makefile.am
View file @
1fcf35ad
...
...
@@ -93,7 +93,6 @@ mpd_headers = \
src/tag_table.h
\
src/tag_ape.h
\
src/tag_id3.h
\
src/tag_rva2.h
\
src/Timer.hxx
\
src/mpd_error.h
...
...
@@ -441,7 +440,7 @@ libtag_a_SOURCES =\
if
HAVE_ID3TAG
libtag_a_SOURCES
+=
\
src/tag_id3.c
\
src/
tag_rva2.c
\
src/
TagRva2.cxx src/TagRva2.hxx
\
src/riff.c src/aiff.c
endif
...
...
@@ -1189,11 +1188,11 @@ if HAVE_ID3TAG
test_dump_rva2_LDADD
=
\
$(ID3TAG_LIBS)
\
$(GLIB_LIBS)
test_dump_rva2_SOURCES
=
test
/dump_rva2.c
\
test_dump_rva2_SOURCES
=
test
/dump_rva2.c
xx
\
src/riff.c src/aiff.c
\
src/tag_handler.c
\
src/tag_id3.c
\
src/
tag_rva2.c
src/
TagRva2.cxx
endif
test_run_filter_LDADD
=
\
...
...
src/
tag_rva2.c
→
src/
TagRva2.cxx
View file @
1fcf35ad
/*
* Copyright (C) 2003-201
1
The Music Player Daemon Project
* Copyright (C) 2003-201
3
The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
...
...
@@ -18,7 +18,7 @@
*/
#include "config.h"
#include "
tag_rva2.h
"
#include "
TagRva2.hxx
"
#include "replay_gain_info.h"
#include <stdint.h>
...
...
@@ -102,7 +102,7 @@ rva2_apply_frame(struct replay_gain_info *replay_gain_info,
const
id3_byte_t
*
data
=
id3_field_getbinarydata
(
id3_frame_field
(
frame
,
1
),
&
length
);
if
(
id
==
NULL
||
data
==
NULL
)
if
(
id
==
nullptr
||
data
==
nullptr
)
return
false
;
/*
...
...
@@ -141,7 +141,7 @@ tag_rva2_parse(struct id3_tag *tag, struct replay_gain_info *replay_gain_info)
track and album gain in separate tags */
const
struct
id3_frame
*
frame
;
for
(
unsigned
i
=
0
;
(
frame
=
id3_tag_findframe
(
tag
,
"RVA2"
,
i
))
!=
NULL
;
(
frame
=
id3_tag_findframe
(
tag
,
"RVA2"
,
i
))
!=
nullptr
;
++
i
)
if
(
rva2_apply_frame
(
replay_gain_info
,
frame
))
found
=
true
;
...
...
src/
tag_rva2.h
→
src/
TagRva2.hxx
View file @
1fcf35ad
/*
* Copyright (C) 2003-201
1
The Music Player Daemon Project
* Copyright (C) 2003-201
3
The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
...
...
@@ -17,8 +17,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef MPD_TAG_RVA2_H
#define MPD_TAG_RVA2_H
#ifndef MPD_TAG_RVA2_H
XX
#define MPD_TAG_RVA2_H
XX
#include "check.h"
...
...
src/decoder/MadDecoderPlugin.cxx
View file @
1fcf35ad
...
...
@@ -24,9 +24,9 @@
extern
"C"
{
#include "tag_id3.h"
#include "tag_rva2.h"
}
#include "TagRva2.hxx"
#include "tag_handler.h"
#include "audio_check.h"
...
...
test/dump_rva2.c
→
test/dump_rva2.c
xx
View file @
1fcf35ad
/*
* Copyright (C) 2003-201
2
The Music Player Daemon Project
* Copyright (C) 2003-201
3
The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
...
...
@@ -18,8 +18,10 @@
*/
#include "config.h"
extern
"C"
{
#include "tag_id3.h"
#include "tag_rva2.h"
}
#include "TagRva2.hxx"
#include "replay_gain_info.h"
#include "conf.h"
#include "tag.h"
...
...
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