FUNCTION REFERENCE

audioplayer.playblocking

Play audio on an audioplayer object and wait until playback finishes.

Play audio on an audioplayer object and wait until playback finishes.

Syntax

playblocking(p)

Syntax

p.playblocking()

Syntax

playblocking(p, start)

Syntax

playblocking(p, [start finish])

Blocks until playback of the clip or sample range completes, checking for cancellation.

Example

p = audioplayer(zeros(64,1), 8000); if isobject(p); p.playblocking(); end

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.