Repository navigation
Speaker example on Mac Pi Pico 2 W never seems to increase the sample count #24
|
using the sample code in https://github.com/pschatzmann/Adafruit_TinyUSB_Arduino/blob/Audio/examples/Audio/audio_speaker/audio_speaker.ino it runs and the Mac sees it as a speaker and I can play out to it but the serial output only every shows this: Total samples: 5556 / Sample rate: 44100 It carries on going but never changes. To my completely newbie eyes it looks like writeCB stops getting called? |
Replies: 2 comments 2 replies
|
Just look what the sketch is doing: it is providing the audio data in the callback which is just counting the samples and in the loop we print the processed samples... You could use the AudioTools to do something more useful in the callback and e.g. write the data to I2S |
|
Ok tested on windows all works as expected so either:
would be good to rule out 1 and 2 before I pull things apart |
Just look what the sketch is doing: it is providing the audio data in the callback which is just counting the samples and in the loop we print the processed samples...
You could use the AudioTools to do something more useful in the callback and e.g. write the data to I2S