<< play Audio playback resume >>

playblocking


Plays an audioplayer object with blocking.


Syntax


playblocking(playObj)
playblocking(playObj, start)
playblocking(playObj, [start end])

Input argument


playObj

an audioplayer object.

start

an integer value: first sample to play.

end

an integer value: last sample to play.

Description


playblocking plays an audioplayer object until playback is finished.

Example


signal = rand(2, 44100) - 0.5;
playObj = audioplayer(signal, 44100, 16)
playblocking(playObj)
delete(playObj)
playObj

See also


audioplayer, play.

History


Version Description
1.0.0 initial version

Author


Allan CORNET

<< play Audio playback resume >>