audStreamQueued

Category: Audio

Syntax:

audStreamQueued:Int(stream:Int)


Parameters

Returns

Int



Summary

Returns how many sample frames are waiting to be played on a stream.

Counts in sample frames (one sample per channel), so at 44100 a second, 44100 is a second of sound still to play. Queue more before it runs low to avoid gaps; the lower you keep it, the sooner new sound is heard. Returns 0 for a handle that isn't a stream.

View detailed documentation online



Example
If audStreamQueued(s) < 2205 Then      ; under 50 ms left
    audQueueStream(s, buf, 4410)
EndIf

BambooBasic © 2026 Michael Denathorn