Commit f86e1595 authored by Max Kellermann's avatar Max Kellermann

Mixer: rename struct mixer_plugin to MixerPlugin

parent 243c4e1e
......@@ -26,7 +26,7 @@
Mixer *
mixer_new(EventLoop &event_loop,
const mixer_plugin *plugin, void *ao,
const MixerPlugin *plugin, void *ao,
const config_param &param,
Error &error)
{
......
......@@ -28,11 +28,11 @@
class Error;
class Mixer;
class EventLoop;
struct mixer_plugin;
struct MixerPlugin;
struct config_param;
Mixer *
mixer_new(EventLoop &event_loop, const mixer_plugin *plugin, void *ao,
mixer_new(EventLoop &event_loop, const MixerPlugin *plugin, void *ao,
const config_param &param,
Error &error);
......
......@@ -26,7 +26,7 @@
class Mixer {
public:
const struct mixer_plugin *plugin;
const MixerPlugin *plugin;
/**
* This mutex protects all of the mixer struct, including its
......@@ -46,12 +46,12 @@ public:
bool failed;
public:
Mixer(const mixer_plugin &_plugin)
Mixer(const MixerPlugin &_plugin)
:plugin(&_plugin),
open(false),
failed(false) {}
bool IsPlugin(const mixer_plugin &other) const {
bool IsPlugin(const MixerPlugin &other) const {
return plugin == &other;
}
};
......
......@@ -25,11 +25,13 @@
#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;
extern const struct mixer_plugin oss_mixer_plugin;
extern const struct mixer_plugin roar_mixer_plugin;
extern const struct mixer_plugin pulse_mixer_plugin;
extern const struct mixer_plugin winmm_mixer_plugin;
struct MixerPlugin;
extern const MixerPlugin software_mixer_plugin;
extern const MixerPlugin alsa_mixer_plugin;
extern const MixerPlugin oss_mixer_plugin;
extern const MixerPlugin roar_mixer_plugin;
extern const MixerPlugin pulse_mixer_plugin;
extern const MixerPlugin winmm_mixer_plugin;
#endif
......@@ -32,7 +32,7 @@ class Mixer;
class EventLoop;
class Error;
struct mixer_plugin {
struct MixerPlugin {
/**
* Alocates and configures a mixer device.
*
......
......@@ -374,7 +374,7 @@ alsa_mixer_set_volume(Mixer *mixer, unsigned volume, Error &error)
return am->SetVolume(volume, error);
}
const struct mixer_plugin alsa_mixer_plugin = {
const MixerPlugin alsa_mixer_plugin = {
alsa_mixer_init,
alsa_mixer_finish,
alsa_mixer_open,
......
......@@ -231,7 +231,7 @@ oss_mixer_set_volume(Mixer *mixer, unsigned volume, Error &error)
return om->SetVolume(volume, error);
}
const struct mixer_plugin oss_mixer_plugin = {
const MixerPlugin oss_mixer_plugin = {
oss_mixer_init,
oss_mixer_finish,
oss_mixer_open,
......
......@@ -215,7 +215,7 @@ pulse_mixer_set_volume(Mixer *mixer, unsigned volume, Error &error)
return success;
}
const struct mixer_plugin pulse_mixer_plugin = {
const MixerPlugin pulse_mixer_plugin = {
pulse_mixer_init,
pulse_mixer_finish,
nullptr,
......
......@@ -64,7 +64,7 @@ roar_mixer_set_volume(Mixer *mixer, unsigned volume,
return roar_output_set_volume(self->self, volume);
}
const struct mixer_plugin roar_mixer_plugin = {
const MixerPlugin roar_mixer_plugin = {
roar_mixer_init,
roar_mixer_finish,
nullptr,
......
......@@ -110,7 +110,7 @@ software_mixer_set_volume(Mixer *mixer, unsigned volume,
return true;
}
const struct mixer_plugin software_mixer_plugin = {
const MixerPlugin software_mixer_plugin = {
software_mixer_init,
software_mixer_finish,
nullptr,
......
......@@ -104,7 +104,7 @@ winmm_mixer_set_volume(Mixer *mixer, unsigned volume, Error &error)
return true;
}
const struct mixer_plugin winmm_mixer_plugin = {
const MixerPlugin winmm_mixer_plugin = {
winmm_mixer_init,
winmm_mixer_finish,
nullptr,
......
......@@ -114,7 +114,7 @@ audio_output_mixer_type(const config_param &param)
static Mixer *
audio_output_load_mixer(EventLoop &event_loop, AudioOutput *ao,
const config_param &param,
const struct mixer_plugin *plugin,
const MixerPlugin *plugin,
Filter &filter_chain,
Error &error)
{
......
......@@ -28,6 +28,7 @@ struct config_param;
struct AudioFormat;
struct Tag;
struct AudioOutput;
struct MixerPlugin;
class Error;
/**
......@@ -147,7 +148,7 @@ struct AudioOutputPlugin {
* created, this mixer plugin gets the same #config_param as
* this audio output device.
*/
const struct mixer_plugin *mixer_plugin;
const MixerPlugin *mixer_plugin;
};
static inline bool
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment