Play handles
Last updated
Was this helpful?
Last updated
Was this helpful?
In LMMS, play handles manage playback of notes, instruments, or sample clips. All play handles are managed by subclasses of PlayHandle
.
There are several types of PlayHandle
s defined:
: manages Note
s being played, and get audio output for specific note
: manages instruments which provides per-instrument audio output(single-streamed instruments)
: manages sample playback
PresetPreviewHandle
SampleRecordHandle
m_offset
(type f_cnt_t
): The number remaining of audio frames before the play handle starts to produce audio, evaluated at the beginning of a rendering period
PlayHandle
itself can't be used directly because it doesn't implement some of the required functionalities.
play(sampleFrame *buf)
: Render a period of audio buffer to buf
and check/manage the playback state of the managed object
isFinished()
: Return whether the managed object finished playing and this
can be deleted
isFromTrack(const Track *track)
: Check if the play handle plays objects in the given track