diff options
author | Max Kellermann <max@musicpd.org> | 2019-07-03 22:10:26 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2019-07-03 22:10:26 +0200 |
commit | 412b04be584ed2f4e259b6d5ed8b084d69f76a81 (patch) | |
tree | 5bce6979471eddc0c55dc6db96e120f2c26f0a6f /src/output/plugins | |
parent | 510e6841a01ff1a43c4eac452d3cf2710032fa81 (diff) |
output: allow throwing any exception
Diffstat (limited to 'src/output/plugins')
-rw-r--r-- | src/output/plugins/AlsaOutputPlugin.cxx | 2 | ||||
-rw-r--r-- | src/output/plugins/JackOutputPlugin.cxx | 6 | ||||
-rw-r--r-- | src/output/plugins/OpenALOutputPlugin.cxx | 2 | ||||
-rw-r--r-- | src/output/plugins/OssOutputPlugin.cxx | 6 | ||||
-rw-r--r-- | src/output/plugins/PulseOutputPlugin.cxx | 12 | ||||
-rw-r--r-- | src/output/plugins/RecorderOutputPlugin.cxx | 2 | ||||
-rw-r--r-- | src/output/plugins/httpd/HttpdInternal.hxx | 4 |
7 files changed, 17 insertions, 17 deletions
diff --git a/src/output/plugins/AlsaOutputPlugin.cxx b/src/output/plugins/AlsaOutputPlugin.cxx index 61ccbf098..a4d45c43d 100644 --- a/src/output/plugins/AlsaOutputPlugin.cxx +++ b/src/output/plugins/AlsaOutputPlugin.cxx @@ -248,7 +248,7 @@ private: * Set up the snd_pcm_t object which was opened by the caller. * Set up the configured settings and the audio format. * - * Throws #std::runtime_error on error. + * Throws on error. */ void Setup(AudioFormat &audio_format, PcmExport::Params ¶ms); diff --git a/src/output/plugins/JackOutputPlugin.cxx b/src/output/plugins/JackOutputPlugin.cxx index b6c14a949..fef0af713 100644 --- a/src/output/plugins/JackOutputPlugin.cxx +++ b/src/output/plugins/JackOutputPlugin.cxx @@ -83,7 +83,7 @@ struct JackOutput final : AudioOutput { * Connect the JACK client and performs some basic setup * (e.g. register callbacks). * - * Throws #std::runtime_error on error. + * Throws on error. */ void Connect(); @@ -97,7 +97,7 @@ struct JackOutput final : AudioOutput { } /** - * Throws #std::runtime_error on error. + * Throws on error. */ void Start(); void Stop() noexcept; @@ -141,7 +141,7 @@ struct JackOutput final : AudioOutput { static constexpr Domain jack_output_domain("jack_output"); /** - * Throws #std::runtime_error on error. + * Throws on error. */ static unsigned parse_port_list(const char *source, std::string dest[]) diff --git a/src/output/plugins/OpenALOutputPlugin.cxx b/src/output/plugins/OpenALOutputPlugin.cxx index 9aa19c20c..f4c0d46b3 100644 --- a/src/output/plugins/OpenALOutputPlugin.cxx +++ b/src/output/plugins/OpenALOutputPlugin.cxx @@ -89,7 +89,7 @@ private: } /** - * Throws #std::runtime_error on error. + * Throws on error. */ void SetupContext(); }; diff --git a/src/output/plugins/OssOutputPlugin.cxx b/src/output/plugins/OssOutputPlugin.cxx index dee0a1e71..21f906969 100644 --- a/src/output/plugins/OssOutputPlugin.cxx +++ b/src/output/plugins/OssOutputPlugin.cxx @@ -120,7 +120,7 @@ private: /** * Reopen the device with the saved audio_format, without any probing. * - * Throws #std::runtime_error on error. + * Throws on error. */ void Reopen(); @@ -284,7 +284,7 @@ oss_try_ioctl(FileDescriptor fd, unsigned long request, int value, * Set up the channel number, and attempts to find alternatives if the * specified number is not supported. * - * Throws #std::runtime_error on error. + * Throws on error. */ static void oss_setup_channels(FileDescriptor fd, AudioFormat &audio_format) @@ -333,7 +333,7 @@ oss_setup_channels(FileDescriptor fd, AudioFormat &audio_format) * Set up the sample rate, and attempts to find alternatives if the * specified sample rate is not supported. * - * Throws #std::runtime_error on error. + * Throws on error. */ static void oss_setup_sample_rate(FileDescriptor fd, AudioFormat &audio_format) diff --git a/src/output/plugins/PulseOutputPlugin.cxx b/src/output/plugins/PulseOutputPlugin.cxx index b7207f91a..6cb92fdec 100644 --- a/src/output/plugins/PulseOutputPlugin.cxx +++ b/src/output/plugins/PulseOutputPlugin.cxx @@ -109,7 +109,7 @@ private: /** * Attempt to connect asynchronously to the PulseAudio server. * - * Throws #std::runtime_error on error. + * Throws on error. */ void Connect(); @@ -118,7 +118,7 @@ private: * * Caller must lock the main loop. * - * Throws #std::runtime_error on error. + * Throws on error. */ void SetupContext(); @@ -140,7 +140,7 @@ private: * * Caller must lock the main loop. * - * Throws #std::runtime_error on error. + * Throws on error. */ void WaitConnection(); @@ -149,7 +149,7 @@ private: * * Caller must lock the main loop. * - * Throws #std::runtime_error on error. + * Throws on error. */ void SetupStream(const pa_sample_spec &ss); @@ -163,14 +163,14 @@ private: * not. The mainloop must be locked before calling this * function. * - * Throws #std::runtime_error on error. + * Throws on error. */ void WaitStream(); /** * Sets cork mode on the stream. * - * Throws #std::runtime_error on error. + * Throws on error. */ void StreamPause(bool pause); }; diff --git a/src/output/plugins/RecorderOutputPlugin.cxx b/src/output/plugins/RecorderOutputPlugin.cxx index 21e2b1aa5..62dc5d91c 100644 --- a/src/output/plugins/RecorderOutputPlugin.cxx +++ b/src/output/plugins/RecorderOutputPlugin.cxx @@ -97,7 +97,7 @@ private: /** * Finish the encoder and commit the file. * - * Throws #std::runtime_error on error. + * Throws on error. */ void Commit(); diff --git a/src/output/plugins/httpd/HttpdInternal.hxx b/src/output/plugins/httpd/HttpdInternal.hxx index 0f26bf79c..09ca893ae 100644 --- a/src/output/plugins/httpd/HttpdInternal.hxx +++ b/src/output/plugins/httpd/HttpdInternal.hxx @@ -175,7 +175,7 @@ public: /** * Caller must lock the mutex. * - * Throws #std::runtime_error on error. + * Throws on error. */ void OpenEncoder(AudioFormat &audio_format); @@ -252,7 +252,7 @@ public: /** * Mutext must not be locked. * - * Throws #std::runtime_error on error. + * Throws on error. */ void EncodeAndPlay(const void *chunk, size_t size); |