Skip to content

Commit

Permalink
problems with test files with big embedded images
Browse files Browse the repository at this point in the history
from ESPuino forum
  • Loading branch information
schreibfaul1 committed Dec 4, 2023
1 parent 1bb085c commit f3e5deb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Audio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
*
Expand Down Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Audio.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
*/
Expand Down

0 comments on commit f3e5deb

Please sign in to comment.