isrecording

Determine if recording is in progress.

📝 Syntax

  • isrecording(recorder)

📥 Input argument

  • recorder - audiorecorder object: audio recorder object created by audiorecorder.

📤 Output argument

  • tf - logical: 1 if recording is in progress, 0 otherwise.

📄 Description

isrecording(recorder) determines if recording is in progress for 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)
pause(2);
stop(recObj)
playerObj = getplayer(recObj);
play(playerObj)
isplaying(playerObj)

🔗 See also

audiorecorder, audioplayer, play, pausearrow-up-right, resume, stop, isrecording, isplaying.

🕔 History

Version
📄 Description

1.16.0

initial version

Last updated

Was this helpful?