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
496f70fc
Commit
496f70fc
authored
Feb 22, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mixer_plugin: convert to C++
parent
9ede4c5f
Hide whitespace changes
Inline
Side-by-side
Showing
28 changed files
with
59 additions
and
74 deletions
+59
-74
Makefile.am
Makefile.am
+9
-11
MixerAll.cxx
src/MixerAll.cxx
+3
-2
MixerControl.cxx
src/MixerControl.cxx
+3
-3
MixerControl.hxx
src/MixerControl.hxx
+3
-5
MixerInternal.cxx
src/MixerInternal.cxx
+2
-2
MixerInternal.hxx
src/MixerInternal.hxx
+5
-13
MixerList.hxx
src/MixerList.hxx
+3
-3
MixerPlugin.hxx
src/MixerPlugin.hxx
+4
-4
MixerType.cxx
src/MixerType.cxx
+2
-2
MixerType.hxx
src/MixerType.hxx
+3
-3
OutputCommand.cxx
src/OutputCommand.cxx
+1
-1
OutputControl.cxx
src/OutputControl.cxx
+2
-2
OutputFinish.cxx
src/OutputFinish.cxx
+1
-1
OutputInit.cxx
src/OutputInit.cxx
+3
-3
ReplayGainFilterPlugin.cxx
src/filter/ReplayGainFilterPlugin.cxx
+1
-1
AlsaMixerPlugin.cxx
src/mixer/AlsaMixerPlugin.cxx
+1
-1
OssMixerPlugin.cxx
src/mixer/OssMixerPlugin.cxx
+1
-1
PulseMixerPlugin.cxx
src/mixer/PulseMixerPlugin.cxx
+1
-1
RoarMixerPlugin.cxx
src/mixer/RoarMixerPlugin.cxx
+1
-1
SoftwareMixerPlugin.cxx
src/mixer/SoftwareMixerPlugin.cxx
+1
-1
WinmmMixerPlugin.cxx
src/mixer/WinmmMixerPlugin.cxx
+1
-1
AlsaOutputPlugin.cxx
src/output/AlsaOutputPlugin.cxx
+1
-1
OssOutputPlugin.cxx
src/output/OssOutputPlugin.cxx
+1
-1
RoarOutputPlugin.cxx
src/output/RoarOutputPlugin.cxx
+1
-1
WinmmOutputPlugin.cxx
src/output/WinmmOutputPlugin.cxx
+1
-1
pulse_output_plugin.c
src/output/pulse_output_plugin.c
+1
-1
read_mixer.cxx
test/read_mixer.cxx
+2
-6
run_filter.cxx
test/run_filter.cxx
+1
-1
No files found.
Makefile.am
View file @
496f70fc
...
...
@@ -75,11 +75,7 @@ mpd_headers = \
src/input_stream.h
\
src/text_input_stream.h
\
src/ls.h
\
src/mixer_api.h
\
src/mixer_control.h
\
src/mixer_list.h
\
src/mixer_plugin.h
\
src/mixer_type.h
\
src/daemon.h
\
src/AudioCompress/config.h
\
src/AudioCompress/compress.h
\
...
...
@@ -798,10 +794,11 @@ MIXER_LIBS = \
$(PULSE_LIBS)
MIXER_API_SRC
=
\
src/mixer_control.c
\
src/mixer_type.c
\
src/MixerList.hxx
\
src/MixerControl.cxx src/MixerControl.hxx
\
src/MixerType.cxx src/MixerType.hxx
\
src/MixerAll.cxx src/MixerAll.hxx
\
src/
mixer_api.c
src/
MixerInternal.cxx src/MixerInternal.hxx
libmixer_plugins_a_SOURCES
=
\
src/mixer/SoftwareMixerPlugin.cxx
\
...
...
@@ -1344,9 +1341,9 @@ test_run_output_SOURCES = test/run_output.cxx \
src/resolver.c
\
src/OutputInit.cxx src/OutputFinish.cxx src/OutputList.cxx
\
src/OutputPlugin.cxx
\
src/
mixer_api.c
\
src/
mixer_control.c
\
src/
mixer_type.c
\
src/
MixerInternal.cxx
\
src/
MixerControl.cxx
\
src/
MixerType.cxx
\
src/FilterPlugin.cxx
\
src/FilterConfig.cxx
\
src/AudioCompress/compress.c
\
...
...
@@ -1363,7 +1360,8 @@ test_read_mixer_LDADD = \
$(GLIB_LIBS)
test_read_mixer_SOURCES
=
test
/read_mixer.cxx
\
src/tokenizer.c src/utils.c src/string_util.c
\
src/mixer_control.c src/mixer_api.c
\
src/MixerControl.cxx
\
src/MixerInternal.cxx
\
src/FilterPlugin.cxx
\
src/filter/VolumeFilterPlugin.cxx
\
src/fd_util.c
...
...
src/MixerAll.cxx
View file @
496f70fc
...
...
@@ -19,13 +19,14 @@
#include "config.h"
#include "MixerAll.hxx"
#include "MixerControl.hxx"
#include "MixerInternal.hxx"
#include "MixerList.hxx"
#include "OutputAll.hxx"
#include "PcmVolume.hxx"
extern
"C"
{
#include "mixer_control.h"
#include "output_internal.h"
#include "mixer_api.h"
}
#include <glib.h>
...
...
src/
mixer_control.c
→
src/
MixerControl.cxx
View file @
496f70fc
/*
* 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,8 +18,8 @@
*/
#include "config.h"
#include "
mixer_control.h
"
#include "
mixer_api.h
"
#include "
MixerControl.hxx
"
#include "
MixerInternal.hxx
"
#include <assert.h>
#include <stddef.h>
...
...
src/
mixer_control.h
→
src/
MixerControl.hxx
View file @
496f70fc
/*
* 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
...
...
@@ -22,13 +22,11 @@
* Functions which manipulate a #mixer object.
*/
#ifndef MPD_MIXER_CONTROL_H
#define MPD_MIXER_CONTROL_H
#ifndef MPD_MIXER_CONTROL_H
XX
#define MPD_MIXER_CONTROL_H
XX
#include "gerror.h"
#include <stdbool.h>
struct
mixer
;
struct
mixer_plugin
;
struct
config_param
;
...
...
src/
mixer_api.c
→
src/
MixerInternal.cxx
View file @
496f70fc
/*
* 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 "
mixer_api.h
"
#include "
MixerInternal.hxx
"
#undef G_LOG_DOMAIN
#define G_LOG_DOMAIN "mixer"
...
...
src/
mixer_api.h
→
src/
MixerInternal.hxx
View file @
496f70fc
/*
* 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,11 +17,11 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef MPD_MIXER_
H
#define MPD_MIXER_
H
#ifndef MPD_MIXER_
INTERNAL_HXX
#define MPD_MIXER_
INTERNAL_HXX
#include "
mixer_plugin.h
"
#include "
mixer_list.h
"
#include "
MixerPlugin.hxx
"
#include "
MixerList.hxx
"
#include <glib.h>
...
...
@@ -46,15 +46,7 @@ struct mixer {
bool
failed
;
};
#ifdef __cplusplus
extern
"C"
{
#endif
void
mixer_init
(
struct
mixer
*
mixer
,
const
struct
mixer_plugin
*
plugin
);
#ifdef __cplusplus
}
#endif
#endif
src/
mixer_list.h
→
src/
MixerList.hxx
View file @
496f70fc
/*
* 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
...
...
@@ -22,8 +22,8 @@
* This header provides "extern" declarations for all mixer plugins.
*/
#ifndef MPD_MIXER_LIST_H
#define MPD_MIXER_LIST_H
#ifndef MPD_MIXER_LIST_H
XX
#define MPD_MIXER_LIST_H
XX
extern
const
struct
mixer_plugin
software_mixer_plugin
;
extern
const
struct
mixer_plugin
alsa_mixer_plugin
;
...
...
src/
mixer_plugin.h
→
src/
MixerPlugin.hxx
View file @
496f70fc
/*
* 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
...
...
@@ -20,12 +20,12 @@
/** \file
*
* This header declares the mixer_plugin class. It should not be
* included directly; use
mixer_api.h
instead in mixer
* included directly; use
MixerInternal.hxx
instead in mixer
* implementations.
*/
#ifndef MPD_MIXER_PLUGIN_H
#define MPD_MIXER_PLUGIN_H
#ifndef MPD_MIXER_PLUGIN_H
XX
#define MPD_MIXER_PLUGIN_H
XX
#include "gerror.h"
...
...
src/
mixer_type.c
→
src/
MixerType.cxx
View file @
496f70fc
/*
* 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 "
mixer_type.h
"
#include "
MixerType.hxx
"
#include <assert.h>
#include <string.h>
...
...
src/
mixer_type.h
→
src/
MixerType.hxx
View file @
496f70fc
/*
* 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_MIXER_TYPE_H
#define MPD_MIXER_TYPE_H
#ifndef MPD_MIXER_TYPE_H
XX
#define MPD_MIXER_TYPE_H
XX
enum
mixer_type
{
/** parser error */
...
...
src/OutputCommand.cxx
View file @
496f70fc
...
...
@@ -28,12 +28,12 @@
#include "OutputCommand.hxx"
#include "OutputAll.hxx"
#include "PlayerControl.hxx"
#include "MixerControl.hxx"
#include "Idle.hxx"
extern
"C"
{
#include "output_internal.h"
#include "output_plugin.h"
#include "mixer_control.h"
}
extern
unsigned
audio_output_state_version
;
...
...
src/OutputControl.cxx
View file @
496f70fc
...
...
@@ -24,10 +24,10 @@
extern
"C"
{
#include "output_internal.h"
#include "mixer_control.h"
#include "mixer_plugin.h"
}
#include "MixerPlugin.hxx"
#include "MixerControl.hxx"
#include "notify.hxx"
#include "filter/ReplayGainFilterPlugin.hxx"
#include "FilterPlugin.hxx"
...
...
src/OutputFinish.cxx
View file @
496f70fc
...
...
@@ -22,9 +22,9 @@
extern
"C"
{
#include "output_internal.h"
#include "output_plugin.h"
#include "mixer_control.h"
}
#include "MixerControl.hxx"
#include "FilterInternal.hxx"
#include <assert.h>
...
...
src/OutputInit.cxx
View file @
496f70fc
...
...
@@ -27,11 +27,11 @@
extern
"C"
{
#include "output_internal.h"
#include "mixer_control.h"
#include "mixer_type.h"
#include "mixer_list.h"
}
#include "MixerList.hxx"
#include "MixerType.hxx"
#include "MixerControl.hxx"
#include "mixer/SoftwareMixerPlugin.hxx"
#include "FilterPlugin.hxx"
#include "FilterRegistry.hxx"
...
...
src/filter/ReplayGainFilterPlugin.cxx
View file @
496f70fc
...
...
@@ -25,7 +25,7 @@
#include "audio_format.h"
#include "replay_gain_info.h"
#include "replay_gain_config.h"
#include "
mixer_control.h
"
#include "
MixerControl.hxx
"
#include "PcmVolume.hxx"
extern
"C"
{
...
...
src/mixer/AlsaMixerPlugin.cxx
View file @
496f70fc
...
...
@@ -18,7 +18,7 @@
*/
#include "config.h"
#include "
mixer_api.h
"
#include "
MixerInternal.hxx
"
#include "output_api.h"
#include "GlobalEvents.hxx"
#include "Main.hxx"
...
...
src/mixer/OssMixerPlugin.cxx
View file @
496f70fc
...
...
@@ -18,7 +18,7 @@
*/
#include "config.h"
#include "
mixer_api.h
"
#include "
MixerInternal.hxx
"
#include "output_api.h"
#include "fd_util.h"
...
...
src/mixer/PulseMixerPlugin.cxx
View file @
496f70fc
...
...
@@ -19,7 +19,7 @@
#include "config.h"
#include "PulseMixerPlugin.h"
#include "
mixer_api.h
"
#include "
MixerInternal.hxx
"
#include "output/pulse_output_plugin.h"
#include "conf.h"
#include "GlobalEvents.hxx"
...
...
src/mixer/RoarMixerPlugin.cxx
View file @
496f70fc
...
...
@@ -20,7 +20,7 @@
#include "config.h"
#include "
mixer_api.h
"
#include "
MixerInternal.hxx
"
#include "output_api.h"
#include "output/RoarOutputPlugin.hxx"
...
...
src/mixer/SoftwareMixerPlugin.cxx
View file @
496f70fc
...
...
@@ -19,7 +19,7 @@
#include "config.h"
#include "SoftwareMixerPlugin.hxx"
#include "
mixer_api.h
"
#include "
MixerInternal.hxx
"
#include "FilterPlugin.hxx"
#include "FilterRegistry.hxx"
#include "filter/VolumeFilterPlugin.hxx"
...
...
src/mixer/WinmmMixerPlugin.cxx
View file @
496f70fc
...
...
@@ -18,7 +18,7 @@
*/
#include "config.h"
#include "
mixer_api.h
"
#include "
MixerInternal.hxx
"
#include "output_api.h"
#include "output/WinmmOutputPlugin.hxx"
...
...
src/output/AlsaOutputPlugin.cxx
View file @
496f70fc
...
...
@@ -20,7 +20,7 @@
#include "config.h"
#include "AlsaOutputPlugin.hxx"
#include "output_api.h"
#include "
mixer_list.h
"
#include "
MixerList.hxx
"
#include "pcm_export.h"
#include <glib.h>
...
...
src/output/OssOutputPlugin.cxx
View file @
496f70fc
...
...
@@ -20,7 +20,7 @@
#include "config.h"
#include "OssOutputPlugin.hxx"
#include "output_api.h"
#include "
mixer_list.h
"
#include "
MixerList.hxx
"
#include "fd_util.h"
#include <glib.h>
...
...
src/output/RoarOutputPlugin.cxx
View file @
496f70fc
...
...
@@ -21,7 +21,7 @@
#include "config.h"
#include "RoarOutputPlugin.hxx"
#include "output_api.h"
#include "
mixer_list.h
"
#include "
MixerList.hxx
"
#include "thread/Mutex.hxx"
#include <glib.h>
...
...
src/output/WinmmOutputPlugin.cxx
View file @
496f70fc
...
...
@@ -21,7 +21,7 @@
#include "WinmmOutputPlugin.hxx"
#include "output_api.h"
#include "pcm_buffer.h"
#include "
mixer_list.h
"
#include "
MixerList.hxx
"
#include <stdlib.h>
#include <string.h>
...
...
src/output/pulse_output_plugin.c
View file @
496f70fc
...
...
@@ -20,7 +20,7 @@
#include "config.h"
#include "pulse_output_plugin.h"
#include "output_api.h"
#include "
mixer_list.h
"
#include "
MixerList.hxx
"
#include "mixer/PulseMixerPlugin.h"
#include <glib.h>
...
...
test/read_mixer.cxx
View file @
496f70fc
...
...
@@ -18,12 +18,8 @@
*/
#include "config.h"
extern
"C"
{
#include "mixer_control.h"
#include "mixer_list.h"
}
#include "MixerControl.hxx"
#include "MixerList.hxx"
#include "FilterRegistry.hxx"
#include "PcmVolume.hxx"
#include "GlobalEvents.hxx"
...
...
test/run_filter.cxx
View file @
496f70fc
...
...
@@ -25,7 +25,7 @@
#include "FilterPlugin.hxx"
#include "FilterInternal.hxx"
#include "PcmVolume.hxx"
#include "
mixer_control.h
"
#include "
MixerControl.hxx
"
#include "stdbin.h"
#include <glib.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