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";
2323 */
2424class 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 */
5659class 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 ); }
You can’t perform that action at this time.
0 commit comments