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
222b7775
Commit
222b7775
authored
Feb 23, 2016
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tag/ApeReplayGain: add overload with InputStream& parameter
parent
b5c206d3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
0 deletions
+21
-0
ApeReplayGain.cxx
src/tag/ApeReplayGain.cxx
+17
-0
ApeReplayGain.hxx
src/tag/ApeReplayGain.hxx
+4
-0
No files found.
src/tag/ApeReplayGain.cxx
View file @
222b7775
...
...
@@ -48,6 +48,23 @@ replay_gain_ape_callback(unsigned long flags, const char *key,
}
bool
replay_gain_ape_read
(
InputStream
&
is
,
ReplayGainInfo
&
info
)
{
bool
found
=
false
;
auto
callback
=
[
&
info
,
&
found
]
(
unsigned
long
flags
,
const
char
*
key
,
StringView
value
)
{
found
|=
replay_gain_ape_callback
(
flags
,
key
,
value
,
info
);
return
true
;
};
return
tag_ape_scan
(
is
,
callback
)
&&
found
;
}
bool
replay_gain_ape_read
(
Path
path_fs
,
ReplayGainInfo
&
info
)
{
bool
found
=
false
;
...
...
src/tag/ApeReplayGain.hxx
View file @
222b7775
...
...
@@ -22,10 +22,14 @@
#include "check.h"
class
InputStream
;
class
Path
;
struct
ReplayGainInfo
;
bool
replay_gain_ape_read
(
InputStream
&
is
,
ReplayGainInfo
&
info
);
bool
replay_gain_ape_read
(
Path
path_fs
,
ReplayGainInfo
&
info
);
#endif
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