@@ -84,7 +84,7 @@ class AudioBuffer {
8484 size_t init (); // set default values
8585 bool isInitialized () { return m_f_init; };
8686 int32_t getBufsize ();
87- void setBufsize (size_t mbs); // default is m_buffSizePSRAM for psram, and m_buffSizeRAM without psram
87+ bool setBufsize (size_t mbs); // default is m_buffSizePSRAM for psram, and m_buffSizeRAM without psram
8888 void changeMaxBlockSize (uint16_t mbs); // is default 1600 for mp3 and aac, set 16384 for FLAC
8989 uint16_t getMaxBlockSize (); // returns maxBlockSize
9090 size_t freeSpace (); // number of free bytes to overwrite
@@ -120,7 +120,7 @@ static StaticTask_t __attribute__((unused)) xAudioTaskBuffer;
120120static StackType_t __attribute__ ((unused)) xAudioStack[AUDIO_STACK_SIZE];
121121extern char audioI2SVers[];
122122
123- class Audio : private AudioBuffer {
123+ class Audio {
124124
125125 AudioBuffer InBuff; // instance of input buffer
126126
@@ -399,17 +399,17 @@ class Audio : private AudioBuffer{
399399 uint32_t getTotalPlayingTime ();
400400 uint16_t getVUlevel ();
401401
402- uint32_t inBufferFilled (); // returns the number of stored bytes in the inputbuffer
403- uint32_t inBufferFree (); // returns the number of free bytes in the inputbuffer
404- uint32_t inBufferSize (); // returns the size of the inputbuffer in bytes
405- void setBufsize (size_t mbs); // sets the size of the inputbuffer in bytes
406- void setTone (int8_t gainLowPass, int8_t gainBandPass, int8_t gainHighPass);
407- void setI2SCommFMT_LSB (bool commFMT);
408- int getCodec () {return m_codec;}
409- const char * getCodecname () {return codecname[m_codec];}
410- const char * getVersion () {return audioI2SVers;}
402+ uint32_t inBufferFilled (); // returns the number of stored bytes in the inputbuffer
403+ uint32_t inBufferFree (); // returns the number of free bytes in the inputbuffer
404+ uint32_t getInBufferSize (); // returns the size of the inputbuffer in bytes
405+ bool setInBufferSize (size_t mbs); // sets the size of the inputbuffer in bytes
406+ void setTone (int8_t gainLowPass, int8_t gainBandPass, int8_t gainHighPass);
407+ void setI2SCommFMT_LSB (bool commFMT);
408+ int getCodec () { return m_codec; }
409+ const char * getCodecname () { return codecname[m_codec]; }
410+ const char * getVersion () { return audioI2SVers; }
411411
412- private:
412+ private:
413413 // ------- PRIVATE MEMBERS ----------------------------------------
414414
415415 void latinToUTF8 (ps_ptr<char >& buff, bool UTF8check = true );
0 commit comments