isrecording
Determine if recording is in progress.
📝Syntax
isrecording(recorder)
📥Input Arguments
Parameter Description
recorder audiorecorder object: audio recorder object created by audiorecorder.
📤Output Arguments
Parameter Description
tf logical: 1 if recording is in progress, 0 otherwise.
📄Description

isrecording(recorder) determines if recording is in progress for the specified audiorecorder object.

💡Examples
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)
pause(2);
stop(recObj)
playerObj = getplayer(recObj);
play(playerObj)
isplaying(playerObj)
      
🔗See Also
audiorecorderaudioplayerplaypauseresumestopisrecordingisplaying
🕔Version History
Version Description
1.16.0 initial version
Edit this page on GitHub