diff --git a/radio/processor/src/Block.hpp b/radio/processor/src/Block.hpp index 3f3dc8d..061b3a6 100644 --- a/radio/processor/src/Block.hpp +++ b/radio/processor/src/Block.hpp @@ -2,7 +2,7 @@ #define __RADIO_BLOCK_H__ #include -#include +#include "Exception.hpp" #include "Buffer.hpp" namespace Processor @@ -23,6 +23,7 @@ class Block virtual ~Block() = default; virtual void process() = 0; + virtual void prepare() {} size_t num_in() const { @@ -54,7 +55,7 @@ class Block } if (!buf) { - throw Exception("buffer_in() failed!"); + EXC_EXCEPT(-1); } return buf; } @@ -69,7 +70,7 @@ class Block } if (!buf) { - throw Exception("buffer_out() failed!"); + EXC_EXCEPT(-1); } return buf; } diff --git a/radio/processor/src/Buffer.hpp b/radio/processor/src/Buffer.hpp index 5e5dabf..bdb77a4 100644 --- a/radio/processor/src/Buffer.hpp +++ b/radio/processor/src/Buffer.hpp @@ -3,7 +3,6 @@ #include #include -#include #include #include "Exception.hpp"