summaryrefslogtreecommitdiff
path: root/src/output/plugins/NullOutputPlugin.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/output/plugins/NullOutputPlugin.cxx')
-rw-r--r--src/output/plugins/NullOutputPlugin.cxx11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/output/plugins/NullOutputPlugin.cxx b/src/output/plugins/NullOutputPlugin.cxx
index 601fc1039..650910e68 100644
--- a/src/output/plugins/NullOutputPlugin.cxx
+++ b/src/output/plugins/NullOutputPlugin.cxx
@@ -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);
}