FUNCTION REFERENCE

audioplayer

Create a handle for audio playback.

Create a handle for audio playback.

Syntax

p = audioplayer(y, Fs)

Syntax

p = audioplayer(y, Fs, nBits)

Syntax

p = audioplayer(y, Fs, nBits, ID)

Use play or playblocking to start playback. SampleRate, Tag and UserData are writable. BitsPerSample, NumChannels, DeviceID, TotalSamples, CurrentSample and Running are read-only. DeviceID defaults to -1, the default output device. With no output device, playback follows the clip's timing in silence.

Example

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

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