MCPcopy Create free account
hub / github.com/OpenEarable/open-earable / preload_buffer

Method preload_buffer

src/audio_play/ToneGenerator.cpp:98–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98void ToneGenerator::preload_buffer() {
99 int cont = provide(_preload_blocks);
100
101 if (_preload_blocks - cont > 0) cont += provide(_preload_blocks - cont);
102
103 Serial.print("preload blocks: ");
104 Serial.println(cont);
105}
106
107int ToneGenerator::provide(int n) {
108 for(int i = 0; i < n; i++) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected