output/Plugin: remove 'Error&' parameters, use C++ exceptions only

This commit is contained in:
Max Kellermann
2016-11-09 11:56:01 +01:00
parent 445e82be75
commit d9cb85df83
34 changed files with 198 additions and 364 deletions

View File

@@ -37,13 +37,11 @@ public:
:base(null_output_plugin, block),
sync(block.GetBlockValue("sync", true)) {}
static NullOutput *Create(const ConfigBlock &block, Error &error);
static NullOutput *Create(const ConfigBlock &block);
bool Open(AudioFormat &audio_format, gcc_unused Error &error) {
void Open(AudioFormat &audio_format) {
if (sync)
timer = new Timer(audio_format);
return true;
}
void Close() {
@@ -57,8 +55,7 @@ public:
: 0;
}
size_t Play(gcc_unused const void *chunk, size_t size,
gcc_unused Error &error) {
size_t Play(gcc_unused const void *chunk, size_t size) {
if (sync) {
if (!timer->IsStarted())
timer->Start();
@@ -75,7 +72,7 @@ public:
};
inline NullOutput *
NullOutput::Create(const ConfigBlock &block, Error &)
NullOutput::Create(const ConfigBlock &block)
{
return new NullOutput(block);
}