getplayer
Create associated audioplayer object.
📝 Syntax
playerObject = getplayer(recorder)
📥 Input argument
recorder - audiorecorder object: audio recorder object created by audiorecorder.
📤 Output argument
playerObject - audioplayer object associated with the specified audiorecorder object.
📄 Description
getplayer(recorder) creates the audioplayer object associated with the specified audiorecorder object.
💡 Example
Control Audio Recording and Playback
recObj = audiorecorder;
record(recObj);
disp('Recording in progress now ...')
pause(recObj);
isrecording(recObj)
playerObj = getplayer(recObj);
play(playerObj);
isplaying(playerObj)
resume(recObj)
stop(recObj)
playerObj = getplayer(recObj);
play(playerObj)
🔗 See also
audiorecorder, audioplayer, play, pause, resume, stop, isrecording, isplaying.
🕔 History
Version
📄 Description
1.16.0
initial version
Last updated
Was this helpful?