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:
@@ -51,7 +51,7 @@ try {
|
||||
EventLoop event_loop;
|
||||
|
||||
Mixer *mixer = mixer_new(event_loop, alsa_mixer_plugin,
|
||||
*(AudioOutput *)nullptr,
|
||||
*(FilteredAudioOutput *)nullptr,
|
||||
*(MixerListener *)nullptr,
|
||||
ConfigBlock());
|
||||
|
||||
|
@@ -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 */
|
||||
|
||||
|
Reference in New Issue
Block a user