Unverified Commit f3e5deb8 authored by Wolle's avatar Wolle Committed by GitHub

problems with test files with big embedded images

from ESPuino forum
parent 1bb085ca
......@@ -5,7 +5,7 @@
*
* Created on: Oct 26.2018
*
* Version 3.0.7t
* Version 3.0.7u
* Updated on: Dec 04.2023
* Author: Wolle (schreibfaul1)
*
......@@ -95,7 +95,7 @@ size_t AudioBuffer::bufferFilled() {
}
size_t AudioBuffer::getMaxAvailableBytes() {
if(m_writePtr >= m_readPtr) { m_dataLength = (m_writePtr - m_readPtr); }
if(m_writePtr >= m_readPtr) { m_dataLength = (m_writePtr - m_readPtr - 1); }
else { m_dataLength = (m_endPtr - m_readPtr);}
return m_dataLength;
}
......
......@@ -3,7 +3,7 @@
*
* Created on: Oct 28,2018
*
* Version 3.0.7t
* Version 3.0.7u
* Updated on: Dec 04.2023
* Author: Wolle (schreibfaul1)
*/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment