output/Pulse: convert to C++

This commit is contained in:
Max Kellermann
2013-04-16 20:51:21 +02:00
parent e02d8ad8d2
commit e63420a8c2
7 changed files with 172 additions and 170 deletions

View File

@@ -18,9 +18,9 @@
*/
#include "config.h"
#include "PulseMixerPlugin.h"
#include "PulseMixerPlugin.hxx"
#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_output *output;
PulseOutput *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_output *)ao;
PulseOutput *po = (PulseOutput *)ao;
if (ao == NULL) {
g_set_error(error_r, pulse_mixer_quark(), 0,

View File

@@ -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_HXX
#define MPD_PULSE_MIXER_PLUGIN_HXX
#include <pulse/def.h>