Commit 9d0a71f2 authored by Max Kellermann's avatar Max Kellermann

output/Jack: add "noexcept"

parent ff1b4352
...@@ -90,9 +90,9 @@ struct JackOutput final : AudioOutput { ...@@ -90,9 +90,9 @@ struct JackOutput final : AudioOutput {
/** /**
* Disconnect the JACK client. * Disconnect the JACK client.
*/ */
void Disconnect(); void Disconnect() noexcept;
void Shutdown() { void Shutdown() noexcept {
shutdown = true; shutdown = true;
} }
...@@ -100,7 +100,7 @@ struct JackOutput final : AudioOutput { ...@@ -100,7 +100,7 @@ struct JackOutput final : AudioOutput {
* Throws #std::runtime_error on error. * Throws #std::runtime_error on error.
*/ */
void Start(); void Start();
void Stop(); void Stop() noexcept;
/** /**
* Determine the number of frames guaranteed to be available * Determine the number of frames guaranteed to be available
...@@ -377,7 +377,7 @@ mpd_jack_info(const char *msg) ...@@ -377,7 +377,7 @@ mpd_jack_info(const char *msg)
#endif #endif
void void
JackOutput::Disconnect() JackOutput::Disconnect() noexcept
{ {
assert(client != nullptr); assert(client != nullptr);
...@@ -458,7 +458,7 @@ mpd_jack_init(EventLoop &, const ConfigBlock &block) ...@@ -458,7 +458,7 @@ mpd_jack_init(EventLoop &, const ConfigBlock &block)
* Stops the playback on the JACK connection. * Stops the playback on the JACK connection.
*/ */
void void
JackOutput::Stop() JackOutput::Stop() noexcept
{ {
if (client == nullptr) if (client == nullptr)
return; return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment