diff options
author | Max Kellermann <max@musicpd.org> | 2016-09-05 12:19:20 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2016-09-09 14:44:13 +0200 |
commit | ae1eb9ccdeb16183ad3faaf8dbf548b1934889db (patch) | |
tree | 17456fa28a7a030cbba445512def9c0bb9f8e306 /src/pcm/Volume.hxx | |
parent | 860064c8128fd12b2ae6a32d399f01fe6390a223 (diff) |
pcm/Convert: migrate from class Error to C++ exceptions
Diffstat (limited to 'src/pcm/Volume.hxx')
-rw-r--r-- | src/pcm/Volume.hxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/pcm/Volume.hxx b/src/pcm/Volume.hxx index 1576b33b1..a68dc958f 100644 --- a/src/pcm/Volume.hxx +++ b/src/pcm/Volume.hxx @@ -28,7 +28,6 @@ #include <assert.h> #endif -class Error; template<typename T> struct ConstBuffer; /** @@ -93,11 +92,11 @@ public: /** * Opens the object, prepare for Apply(). * + * Throws std::runtime_error on error. + * * @param format the sample format - * @param error location to store the error - * @return true on success */ - bool Open(SampleFormat format, Error &error); + void Open(SampleFormat format); /** * Closes the object. After that, you may call Open() again. |