diff options
author | Max Kellermann <max@musicpd.org> | 2016-09-09 12:52:51 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2016-09-09 14:44:15 +0200 |
commit | e7d327226a6383ae93970ff20c878d6a873c735f (patch) | |
tree | 9e019763d469f31e866dce0d5481239118f91d9a /src/mixer/MixerPlugin.hxx | |
parent | ae1eb9ccdeb16183ad3faaf8dbf548b1934889db (diff) |
mixer: migrate to C++ exceptions
Diffstat (limited to 'src/mixer/MixerPlugin.hxx')
-rw-r--r-- | src/mixer/MixerPlugin.hxx | 10 |
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 |