summaryrefslogtreecommitdiff
path: root/src/mixer/MixerPlugin.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2016-09-09 12:52:51 +0200
committerMax Kellermann <max@musicpd.org>2016-09-09 14:44:15 +0200
commite7d327226a6383ae93970ff20c878d6a873c735f (patch)
tree9e019763d469f31e866dce0d5481239118f91d9a /src/mixer/MixerPlugin.hxx
parentae1eb9ccdeb16183ad3faaf8dbf548b1934889db (diff)
mixer: migrate to C++ exceptions
Diffstat (limited to 'src/mixer/MixerPlugin.hxx')
-rw-r--r--src/mixer/MixerPlugin.hxx10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/mixer/MixerPlugin.hxx b/src/mixer/MixerPlugin.hxx
index f12631d0a..cc86b2e50 100644
--- a/src/mixer/MixerPlugin.hxx
+++ b/src/mixer/MixerPlugin.hxx
@@ -32,22 +32,20 @@ struct AudioOutput;
class Mixer;
class MixerListener;
class EventLoop;
-class Error;
struct MixerPlugin {
/**
* Alocates and configures a mixer device.
*
+ * Throws std::runtime_error on error.
+ *
* @param ao the associated AudioOutput
* @param param the configuration section
- * @param error_r location to store the error occurring, or
- * nullptr to ignore errors
- * @return a mixer object, or nullptr on error
+ * @return a mixer object
*/
Mixer *(*init)(EventLoop &event_loop, AudioOutput &ao,
MixerListener &listener,
- const ConfigBlock &block,
- Error &error);
+ const ConfigBlock &block);
/**
* If true, then the mixer is automatically opened, even if