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
989c9a73
Commit
989c9a73
authored
Jan 07, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
filter/replay_gain: convert to C++
parent
975370c0
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
24 additions
and
19 deletions
+24
-19
Makefile.am
Makefile.am
+2
-2
OutputControl.cxx
src/OutputControl.cxx
+1
-1
OutputInit.cxx
src/OutputInit.cxx
+2
-1
OutputThread.cxx
src/OutputThread.cxx
+1
-1
ReplayGainFilterPlugin.cxx
src/filter/ReplayGainFilterPlugin.cxx
+15
-11
ReplayGainFilterPlugin.hxx
src/filter/ReplayGainFilterPlugin.hxx
+3
-3
No files found.
Makefile.am
View file @
989c9a73
...
...
@@ -59,7 +59,6 @@ mpd_headers = \
src/filter/autoconvert_filter_plugin.h
\
src/filter/chain_filter_plugin.h
\
src/filter/convert_filter_plugin.h
\
src/filter/replay_gain_filter_plugin.h
\
src/filter/volume_filter_plugin.h
\
src/command.h
\
src/idle.h
\
...
...
@@ -951,7 +950,8 @@ libfilter_plugins_a_SOURCES = \
src/filter/convert_filter_plugin.c
\
src/filter/route_filter_plugin.c
\
src/filter/normalize_filter_plugin.c
\
src/filter/replay_gain_filter_plugin.c
\
src/filter/ReplayGainFilterPlugin.cxx
\
src/filter/ReplayGainFilterPlugin.hxx
\
src/filter/volume_filter_plugin.c
FILTER_LIBS
=
\
...
...
src/OutputControl.cxx
View file @
989c9a73
...
...
@@ -27,9 +27,9 @@ extern "C" {
#include "mixer_control.h"
#include "mixer_plugin.h"
#include "notify.h"
#include "filter/replay_gain_filter_plugin.h"
}
#include "filter/ReplayGainFilterPlugin.hxx"
#include "filter_plugin.h"
#include <assert.h>
...
...
src/OutputInit.cxx
View file @
989c9a73
...
...
@@ -34,9 +34,10 @@ extern "C" {
#include "filter_config.h"
#include "filter/chain_filter_plugin.h"
#include "filter/autoconvert_filter_plugin.h"
#include "filter/replay_gain_filter_plugin.h"
}
#include "filter/ReplayGainFilterPlugin.hxx"
#include <glib.h>
#include <assert.h>
...
...
src/OutputThread.cxx
View file @
989c9a73
...
...
@@ -26,10 +26,10 @@ extern "C" {
#include "pcm_mix.h"
#include "filter_plugin.h"
#include "filter/convert_filter_plugin.h"
#include "filter/replay_gain_filter_plugin.h"
#include "notify.h"
}
#include "filter/ReplayGainFilterPlugin.hxx"
#include "PlayerControl.hxx"
#include "MusicPipe.hxx"
#include "MusicChunk.hxx"
...
...
src/filter/
replay_gain_filter_plugin.c
→
src/filter/
ReplayGainFilterPlugin.cxx
View file @
989c9a73
/*
* 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,16 +18,19 @@
*/
#include "config.h"
#include "
filter/replay_gain_filter_plugin.h
"
#include "
ReplayGainFilterPlugin.hxx
"
#include "filter_plugin.h"
#include "filter_internal.h"
#include "filter_registry.h"
#include "audio_format.h"
#include "pcm_buffer.h"
#include "pcm_volume.h"
#include "replay_gain_info.h"
#include "replay_gain_config.h"
extern
"C"
{
#include "pcm_buffer.h"
#include "pcm_volume.h"
#include "mixer_control.h"
}
#include <assert.h>
#include <string.h>
...
...
@@ -183,7 +186,8 @@ replay_gain_filter_filter(struct filter *_filter,
memcpy
(
dest
,
src
,
src_size
);
success
=
pcm_volume
(
dest
,
src_size
,
filter
->
audio_format
.
format
,
success
=
pcm_volume
(
dest
,
src_size
,
sample_format
(
filter
->
audio_format
.
format
),
filter
->
volume
);
if
(
!
success
)
{
g_set_error
(
error_r
,
replay_gain_quark
(),
0
,
...
...
@@ -195,12 +199,12 @@ replay_gain_filter_filter(struct filter *_filter,
}
const
struct
filter_plugin
replay_gain_filter_plugin
=
{
.
name
=
"replay_gain"
,
.
init
=
replay_gain_filter_init
,
.
finish
=
replay_gain_filter_finish
,
.
open
=
replay_gain_filter_open
,
.
close
=
replay_gain_filter_close
,
.
filter
=
replay_gain_filter_filter
,
"replay_gain"
,
replay_gain_filter_init
,
replay_gain_filter_finish
,
replay_gain_filter_open
,
replay_gain_filter_close
,
replay_gain_filter_filter
,
};
void
...
...
src/filter/
replay_gain_filter_plugin.h
→
src/filter/
ReplayGainFilterPlugin.hxx
View file @
989c9a73
/*
* 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
REPLAY_GAIN_FILTER_PLUGIN_H
#define
REPLAY_GAIN_FILTER_PLUGIN_H
#ifndef
MPD_REPLAY_GAIN_FILTER_PLUGIN_HXX
#define
MPD_REPLAY_GAIN_FILTER_PLUGIN_HXX
#include "replay_gain_info.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