Difference between revisions of "Source:queue"

(Created page)
 
m (0.11.0 -> 11.0)
Line 1: Line 1:
{{newin|[[0.11.0]]|110|type=function}}
+
{{newin|[[11.0]]|110|type=function}}
 
Queues SoundData for playback in a [[love.audio.newQueueableSource|queueable Source]].
 
Queues SoundData for playback in a [[love.audio.newQueueableSource|queueable Source]].
  

Revision as of 18:35, 7 May 2019

Available since LÖVE 11.0
This function is not supported in earlier versions.

Queues SoundData for playback in a queueable Source.

This method requires the Source to be created via love.audio.newQueueableSource.

Function

Synopsis

success = Source:queue( sounddata )

Arguments

SoundData sounddata
The data to queue. The SoundData's sample rate, bit depth, and channel count must match the Source's.

Returns

boolean success
True if the data was successfully queued for playback, false if there were no available buffers to use for queueing.

See Also

Other Languages