File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -23,9 +23,12 @@ static const char *UNDERFLOW_MSG = "data underflow";
23
23
*/
24
24
class AudioStream : public Stream , public AudioBaseInfoDependent {
25
25
public:
26
- virtual bool begin () ;
27
- virtual void end () ;
26
+ AudioStream () = default ;
27
+ virtual ~AudioStream () = default ;
28
28
29
+ virtual bool begin (){return true ;}
30
+ virtual void end (){}
31
+
29
32
// overwrite to do something useful
30
33
virtual void setAudioInfo (AudioBaseInfo info) {
31
34
LOGD (LOG_METHOD);
@@ -55,8 +58,8 @@ class AudioStream : public Stream, public AudioBaseInfoDependent {
55
58
*/
56
59
class AudioStreamX : public AudioStream {
57
60
public:
58
- virtual bool begin (){ return true ;}
59
- virtual void end (){}
61
+ AudioStreamX () = default ;
62
+ virtual ~AudioStreamX () = default ;
60
63
virtual size_t readBytes (uint8_t *buffer, size_t length) override { return not_supported (0 ); }
61
64
virtual size_t write (const uint8_t *buffer, size_t size) override { return not_supported (0 ); }
62
65
virtual size_t write (uint8_t ) override { return not_supported (0 ); }
You can’t perform that action at this time.
0 commit comments