Object for playing audio
Use an audioplayer
object to play audio data. The object
contains properties that enable additional flexibility during playback. For example, you can
pause, resume, or define callbacks using the audioplayer
object
functions.
get | Query property values for audioplayer object |
isplaying | Determine if playback is in progress |
pause | Pause playback or recording |
play | Play audio from audioplayer object |
playblocking | Play audio from audioplayer object, hold control until playback
completes |
resume | Resume playback or recording from paused state |
set | Set property values for audioplayer object |
stop | Stop playback or recording |
These limitations apply when using audioplayer
in MATLAB
Online™:
You cannot create an audioplayer
object from a
recorder
object.
You cannot change the sample rate of an existing audioplayer
object.
audioplayer
ignores nBits
. Instead, it
plays audio data using the default number of bits per sample of the output audio
device.
Audio playback in MATLAB Online is supported in Google Chrome™.