From b6df4680df08db7827af56d5adf2a04264f2dcb9 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 6 Feb 2014 20:44:33 +0100 Subject: MixerPlugin: convert function pointers to Mixer virtual methods --- src/mixer/MixerPlugin.hxx | 40 ---------------------------------------- 1 file changed, 40 deletions(-) (limited to 'src/mixer/MixerPlugin.hxx') diff --git a/src/mixer/MixerPlugin.hxx b/src/mixer/MixerPlugin.hxx index d342ba1a7..27e59accf 100644 --- a/src/mixer/MixerPlugin.hxx +++ b/src/mixer/MixerPlugin.hxx @@ -46,46 +46,6 @@ struct MixerPlugin { const config_param ¶m, Error &error); - /** - * Finish and free mixer data - */ - void (*finish)(Mixer *data); - - /** - * Open mixer device - * - * @param error_r location to store the error occurring, or - * nullptr to ignore errors - * @return true on success, false on error - */ - bool (*open)(Mixer *data, Error &error); - - /** - * Close mixer device - */ - void (*close)(Mixer *data); - - /** - * Reads the current volume. - * - * @param error_r location to store the error occurring, or - * nullptr to ignore errors - * @return the current volume (0..100 including) or -1 if - * unavailable or on error (error set, mixer will be closed) - */ - int (*get_volume)(Mixer *mixer, Error &error); - - /** - * Sets the volume. - * - * @param error_r location to store the error occurring, or - * nullptr to ignore errors - * @param volume the new volume (0..100 including) - * @return true on success, false on error - */ - bool (*set_volume)(Mixer *mixer, unsigned volume, - Error &error); - /** * If true, then the mixer is automatically opened, even if * its audio output is not open. If false, then the mixer is -- cgit v1.2.3