Category: Audio
Syntax:
audQueueStream:Int(stream:Int, samples:Short[], count:Int)
Int
Queues samples from a Short array to play on a stream. Returns how many it took.
Adds the first count samples of the array to the end of the stream's queue. Each is a 16-bit sample (-32768 to 32767). For a stereo stream they're interleaved, left then right, so count is twice the number of sample frames.
The queue holds 2 seconds. If it's full, the samples that don't fit are left out, and the return value says how many were taken. Use audStreamQueued to keep it topped up without overfilling it.
View detailed documentation online
If audStreamQueued(s) < 4410 Then audQueueStream(s, buf, 4410)
BambooBasic © 2026 Michael Denathorn