many many small changes
switched to the new logging here and there some cleanups worked on i2S base class for files id3 parsing
This commit is contained in:
@@ -80,7 +80,9 @@ public:
|
||||
static void clearBuffer() {
|
||||
memset(buffer, 0, sizeof(buffer));
|
||||
state.bufferHalf[0].samplesUsed = 0;
|
||||
state.bufferHalf[0].dropCache();
|
||||
state.bufferHalf[1].samplesUsed = 0;
|
||||
state.bufferHalf[1].dropCache();
|
||||
}
|
||||
|
||||
/** block until the given number of samples were added to the internal buffer */
|
||||
@@ -99,7 +101,7 @@ public:
|
||||
BufferHalf& bh = state.fillingHalf();
|
||||
|
||||
// determine how many samples to add
|
||||
const uint16_t addable = min(numSamples, bh.samplesFree());
|
||||
const uint16_t addable = std::min(numSamples, bh.samplesFree());
|
||||
|
||||
// actually copy the data
|
||||
uint8_t* dst = (uint8_t*) (&bh.mem[bh.samplesUsed]);
|
||||
|
||||
Reference in New Issue
Block a user