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

Method preload_buffer

src/audio_play/JinglePlayer.cpp:124–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122}
123
124void JinglePlayer::preload_buffer() {
125 int cont = provide(_preload_blocks);
126
127 if (_preload_blocks - cont > 0) cont += provide(_preload_blocks - cont);
128
129 Serial.print("preload blocks: ");
130 Serial.println(cont);
131}
132
133int JinglePlayer::provide(int n) {
134 if (!_available) return 0;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected