playrec
R2026bDescription
playrec(
plays and records audio simultaneously. Calling as,audioOut)playrec starts a new
recording and deletes any recorded data that was not previously read.
The default recording length is size(audioOut,1). If you have
pre-buffered audio data in the playback queue, the recording length is
size(audioOut,1) plus the length of audio data in the playback
queue.
playrec(
specifies the number of samples to record.as,audioOut,numSamples)
returns the recorded audio data. With this syntax, the function blocks MATLAB® execution until recording completes.recordedAudio = playrec(___)
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2025a
