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

Author

Allan CORNET

Last updated