pcm/Convert: migrate from class Error to C++ exceptions

This commit is contained in:
Max Kellermann
2016-09-05 12:19:20 +02:00
parent 860064c812
commit ae1eb9ccde
27 changed files with 197 additions and 305 deletions
+3 -4
View File
@@ -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.