コード例 #1
0
/* 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;
}
コード例 #2
0
/* helper function, not a callback */
static void codec_advance_buffer_counters(size_t amount)
{
    bufadvance(get_audio_hid(), amount);
    ci.curpos += amount;
}