Contenido principal

getUnderrunCount

Get number of underrun samples

Since R2025a

    Description

    count = getUnderrunCount(as) returns the number of underrun samples since the audiostreamer started streaming or since the last time you called this function. Underruns occur when the output queue is empty during playback, causing the audiostreamer to play silence.

    Input Arguments

    collapse all

    The audiostreamer object for counting underruns.

    Output Arguments

    collapse all

    The underrun count, returned as an integer. The count resets to zero after this function is called.

    Version History

    Introduced in R2025a