filter/Internal: rename struct AudioOutput to FilteredAudioOutput

Prepare to add an abstract class AudioOutput, to be implemented by
plugins, to get rid of the C-style vtable.
This commit is contained in:
Max Kellermann
2017-08-07 18:47:39 +02:00
parent fc04620519
commit d0157af13e
43 changed files with 138 additions and 138 deletions

View File

@@ -51,7 +51,7 @@ try {
EventLoop event_loop;
Mixer *mixer = mixer_new(event_loop, alsa_mixer_plugin,
*(AudioOutput *)nullptr,
*(FilteredAudioOutput *)nullptr,
*(MixerListener *)nullptr,
ConfigBlock());

View File

@@ -49,7 +49,7 @@ filter_plugin_by_name(gcc_unused const char *name) noexcept
return NULL;
}
static AudioOutput *
static FilteredAudioOutput *
load_audio_output(EventLoop &event_loop, const char *name)
{
const auto *param = config_find_block(ConfigBlockOption::AUDIO_OUTPUT,
@@ -63,7 +63,7 @@ load_audio_output(EventLoop &event_loop, const char *name)
}
static void
run_output(AudioOutput &ao, AudioFormat audio_format)
run_output(FilteredAudioOutput &ao, AudioFormat audio_format)
{
/* open the audio output */
@@ -127,7 +127,7 @@ try {
/* initialize the audio output */
AudioOutput *ao = load_audio_output(io_thread.GetEventLoop(), argv[2]);
auto *ao = load_audio_output(io_thread.GetEventLoop(), argv[2]);
/* parse the audio format */