1 parent
86a1818da5
commit
e254ad9543
5 files changed
+46
-9
No files matched your search
@@ -54,6 +54,11 @@ bool AudioOutputSTDIO::begin()
|
||||
|
||||
bool AudioOutputSTDIO::ConsumeSample(int16_t sample[2])
|
||||
{
|
||||
static int avail = 100;
|
||||
if (!(--avail)) {
|
||||
avail = 100;
|
||||
return false;
|
||||
}
|
||||
for (int i=0; i<channels; i++) {
|
||||
if (bps == 8) {
|
||||
uint8_t l = sample[i] & 0xff;
|
||||
|
||||
Reference in new issue
Block a user