mixer_plugin: convert to C++
This commit is contained in:
@@ -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>
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2003-2011 The Music Player Daemon Project
|
||||
* Copyright (C) 2003-2013 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>
|
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2003-2011 The Music Player Daemon Project
|
||||
* Copyright (C) 2003-2013 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_HXX
|
||||
#define MPD_MIXER_CONTROL_HXX
|
||||
|
||||
#include "gerror.h"
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
struct mixer;
|
||||
struct mixer_plugin;
|
||||
struct config_param;
|
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2003-2011 The Music Player Daemon Project
|
||||
* Copyright (C) 2003-2013 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"
|
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2003-2011 The Music Player Daemon Project
|
||||
* Copyright (C) 2003-2013 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
|
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2003-2011 The Music Player Daemon Project
|
||||
* Copyright (C) 2003-2013 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_HXX
|
||||
#define MPD_MIXER_LIST_HXX
|
||||
|
||||
extern const struct mixer_plugin software_mixer_plugin;
|
||||
extern const struct mixer_plugin alsa_mixer_plugin;
|
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2003-2011 The Music Player Daemon Project
|
||||
* Copyright (C) 2003-2013 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_HXX
|
||||
#define MPD_MIXER_PLUGIN_HXX
|
||||
|
||||
#include "gerror.h"
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2003-2011 The Music Player Daemon Project
|
||||
* Copyright (C) 2003-2013 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>
|
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2003-2011 The Music Player Daemon Project
|
||||
* Copyright (C) 2003-2013 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_HXX
|
||||
#define MPD_MIXER_TYPE_HXX
|
||||
|
||||
enum mixer_type {
|
||||
/** parser error */
|
@@ -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;
|
||||
|
@@ -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"
|
||||
|
@@ -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>
|
||||
|
@@ -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"
|
||||
|
@@ -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" {
|
||||
|
@@ -18,7 +18,7 @@
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "mixer_api.h"
|
||||
#include "MixerInternal.hxx"
|
||||
#include "output_api.h"
|
||||
#include "GlobalEvents.hxx"
|
||||
#include "Main.hxx"
|
||||
|
@@ -18,7 +18,7 @@
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "mixer_api.h"
|
||||
#include "MixerInternal.hxx"
|
||||
#include "output_api.h"
|
||||
#include "fd_util.h"
|
||||
|
||||
|
@@ -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"
|
||||
|
@@ -20,7 +20,7 @@
|
||||
|
||||
|
||||
#include "config.h"
|
||||
#include "mixer_api.h"
|
||||
#include "MixerInternal.hxx"
|
||||
#include "output_api.h"
|
||||
#include "output/RoarOutputPlugin.hxx"
|
||||
|
||||
|
@@ -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"
|
||||
|
@@ -18,7 +18,7 @@
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "mixer_api.h"
|
||||
#include "MixerInternal.hxx"
|
||||
#include "output_api.h"
|
||||
#include "output/WinmmOutputPlugin.hxx"
|
||||
|
||||
|
@@ -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>
|
||||
|
@@ -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>
|
||||
|
@@ -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>
|
||||
|
@@ -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>
|
||||
|
@@ -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>
|
||||
|
Reference in New Issue
Block a user