/* helper function, not a callback */ static bool codec_advance_buffer_counters(size_t amount) { if (bufadvance(ci.audio_hid, amount) < 0) { ci.curpos = ci.filesize; return false; } ci.curpos += amount; return true; }
/* helper function, not a callback */ static void codec_advance_buffer_counters(size_t amount) { bufadvance(get_audio_hid(), amount); ci.curpos += amount; }