FUNCTION REFERENCE

audioplayer.play

Start asynchronous playback on an audioplayer object.

Start asynchronous playback on an audioplayer object.

Syntax

play(p)

Syntax

p.play()

Syntax

play(p, start)

Syntax

play(p, [start finish])

Starts playback from sample 1 or the given 1-based sample index or inclusive [start finish] range and returns immediately.

Example

p = audioplayer(zeros(64,1), 8000); if isobject(p); p.play([1 16]); p.stop(); end

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