Skip to content

Commit 57342e6

Browse files
committed
Compile errors for begin and end
1 parent 96753e1 commit 57342e6

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/AudioTools/AudioStreams.h

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,12 @@ static const char *UNDERFLOW_MSG = "data underflow";
2323
*/
2424
class AudioStream : public Stream, public AudioBaseInfoDependent {
2525
public:
26-
virtual bool begin();
27-
virtual void end();
26+
AudioStream() = default;
27+
virtual ~AudioStream() = default;
2828

29+
virtual bool begin(){return true;}
30+
virtual void end(){}
31+
2932
// overwrite to do something useful
3033
virtual void setAudioInfo(AudioBaseInfo info) {
3134
LOGD(LOG_METHOD);
@@ -55,8 +58,8 @@ class AudioStream : public Stream, public AudioBaseInfoDependent {
5558
*/
5659
class AudioStreamX : public AudioStream {
5760
public:
58-
virtual bool begin(){return true;}
59-
virtual void end(){}
61+
AudioStreamX() = default;
62+
virtual ~AudioStreamX() = default;
6063
virtual size_t readBytes(uint8_t *buffer, size_t length) override { return not_supported(0); }
6164
virtual size_t write(const uint8_t *buffer, size_t size) override{ return not_supported(0); }
6265
virtual size_t write(uint8_t) override { return not_supported(0); }

0 commit comments

Comments
 (0)