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
e63420a8
Commit
e63420a8
authored
Apr 16, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output/Pulse: convert to C++
parent
e02d8ad8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
24 additions
and
24 deletions
+24
-24
Makefile.am
Makefile.am
+2
-2
OutputList.cxx
src/OutputList.cxx
+1
-1
PulseMixerPlugin.cxx
src/mixer/PulseMixerPlugin.cxx
+4
-4
PulseMixerPlugin.hxx
src/mixer/PulseMixerPlugin.hxx
+2
-2
PulseOutputPlugin.cxx
src/output/PulseOutputPlugin.cxx
+0
-0
PulseOutputPlugin.hxx
src/output/PulseOutputPlugin.hxx
+9
-9
read_mixer.cxx
test/read_mixer.cxx
+6
-6
No files found.
Makefile.am
View file @
e63420a8
...
...
@@ -867,9 +867,9 @@ endif
if
HAVE_PULSE
liboutput_plugins_a_SOURCES
+=
\
src/output/
pulse_output_plugin.c src/output/pulse_output_plugin.h
src/output/
PulseOutputPlugin.cxx src/output/PulseOutputPlugin.hxx
libmixer_plugins_a_SOURCES
+=
\
src/mixer/PulseMixerPlugin.cxx src/mixer/PulseMixerPlugin.h
src/mixer/PulseMixerPlugin.cxx src/mixer/PulseMixerPlugin.h
xx
endif
if
HAVE_SHOUT
...
...
src/OutputList.cxx
View file @
e63420a8
...
...
@@ -32,7 +32,7 @@
#include "output/OssOutputPlugin.hxx"
#include "output/OSXOutputPlugin.hxx"
#include "output/pipe_output_plugin.h"
#include "output/
pulse_output_plugin.h
"
#include "output/
PulseOutputPlugin.hxx
"
#include "output/recorder_output_plugin.h"
#include "output/RoarOutputPlugin.hxx"
#include "output/shout_output_plugin.h"
...
...
src/mixer/PulseMixerPlugin.cxx
View file @
e63420a8
...
...
@@ -18,9 +18,9 @@
*/
#include "config.h"
#include "PulseMixerPlugin.h"
#include "PulseMixerPlugin.h
xx
"
#include "MixerInternal.hxx"
#include "output/
pulse_output_plugin.h
"
#include "output/
PulseOutputPlugin.hxx
"
#include "conf.h"
#include "GlobalEvents.hxx"
...
...
@@ -42,7 +42,7 @@
struct
pulse_mixer
{
struct
mixer
base
;
struct
pulse_o
utput
*
output
;
PulseO
utput
*
output
;
bool
online
;
struct
pa_cvolume
volume
;
...
...
@@ -153,7 +153,7 @@ static struct mixer *
pulse_mixer_init
(
void
*
ao
,
G_GNUC_UNUSED
const
struct
config_param
*
param
,
GError
**
error_r
)
{
struct
pulse_output
*
po
=
(
struct
pulse_o
utput
*
)
ao
;
PulseOutput
*
po
=
(
PulseO
utput
*
)
ao
;
if
(
ao
==
NULL
)
{
g_set_error
(
error_r
,
pulse_mixer_quark
(),
0
,
...
...
src/mixer/PulseMixerPlugin.h
→
src/mixer/PulseMixerPlugin.h
xx
View file @
e63420a8
...
...
@@ -17,8 +17,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef MPD_PULSE_MIXER_PLUGIN_H
#define MPD_PULSE_MIXER_PLUGIN_H
#ifndef MPD_PULSE_MIXER_PLUGIN_H
XX
#define MPD_PULSE_MIXER_PLUGIN_H
XX
#include <pulse/def.h>
...
...
src/output/
pulse_output_plugin.c
→
src/output/
PulseOutputPlugin.cxx
View file @
e63420a8
This diff is collapsed.
Click to expand it.
src/output/
pulse_output_plugin.h
→
src/output/
PulseOutputPlugin.hxx
View file @
e63420a8
/*
* 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,14 +17,14 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef MPD_PULSE_OUTPUT_PLUGIN_H
#define MPD_PULSE_OUTPUT_PLUGIN_H
#ifndef MPD_PULSE_OUTPUT_PLUGIN_H
XX
#define MPD_PULSE_OUTPUT_PLUGIN_H
XX
#include "gerror.h"
#include <stdbool.h>
struct
pulse_o
utput
;
struct
PulseO
utput
;
struct
pulse_mixer
;
struct
pa_cvolume
;
...
...
@@ -35,19 +35,19 @@ extern "C" {
#endif
void
pulse_output_lock
(
struct
pulse_o
utput
*
po
);
pulse_output_lock
(
PulseO
utput
*
po
);
void
pulse_output_unlock
(
struct
pulse_o
utput
*
po
);
pulse_output_unlock
(
PulseO
utput
*
po
);
void
pulse_output_set_mixer
(
struct
pulse_o
utput
*
po
,
struct
pulse_mixer
*
pm
);
pulse_output_set_mixer
(
PulseO
utput
*
po
,
struct
pulse_mixer
*
pm
);
void
pulse_output_clear_mixer
(
struct
pulse_o
utput
*
po
,
struct
pulse_mixer
*
pm
);
pulse_output_clear_mixer
(
PulseO
utput
*
po
,
struct
pulse_mixer
*
pm
);
bool
pulse_output_set_volume
(
struct
pulse_o
utput
*
po
,
pulse_output_set_volume
(
PulseO
utput
*
po
,
const
struct
pa_cvolume
*
volume
,
GError
**
error_r
);
#ifdef __cplusplus
...
...
test/read_mixer.cxx
View file @
e63420a8
...
...
@@ -35,32 +35,32 @@
EventLoop
*
main_loop
;
#ifdef HAVE_PULSE
#include "output/
pulse_output_plugin.h
"
#include "output/
PulseOutputPlugin.hxx
"
void
pulse_output_lock
(
G_GNUC_UNUSED
struct
pulse_o
utput
*
po
)
pulse_output_lock
(
G_GNUC_UNUSED
PulseO
utput
*
po
)
{
}
void
pulse_output_unlock
(
G_GNUC_UNUSED
struct
pulse_o
utput
*
po
)
pulse_output_unlock
(
G_GNUC_UNUSED
PulseO
utput
*
po
)
{
}
void
pulse_output_set_mixer
(
G_GNUC_UNUSED
struct
pulse_o
utput
*
po
,
pulse_output_set_mixer
(
G_GNUC_UNUSED
PulseO
utput
*
po
,
G_GNUC_UNUSED
struct
pulse_mixer
*
pm
)
{
}
void
pulse_output_clear_mixer
(
G_GNUC_UNUSED
struct
pulse_o
utput
*
po
,
pulse_output_clear_mixer
(
G_GNUC_UNUSED
PulseO
utput
*
po
,
G_GNUC_UNUSED
struct
pulse_mixer
*
pm
)
{
}
bool
pulse_output_set_volume
(
G_GNUC_UNUSED
struct
pulse_o
utput
*
po
,
pulse_output_set_volume
(
G_GNUC_UNUSED
PulseO
utput
*
po
,
G_GNUC_UNUSED
const
struct
pa_cvolume
*
volume
,
G_GNUC_UNUSED
GError
**
error_r
)
{
...
...
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