Next: , Previous: , Up: Audio Recorder   [Contents][Index]

33.4.2 Data Retrieval

The following methods allow you to retrieve recorded audio data in various ways.

Function File: data = getaudiodata (recorder)
Function File: data = getaudiodata (recorder, datatype)

Return recorder audio data as a matrix with values between -1.0 and 1.0 and with as many columns as there are channels in the recorder.

Given the optional argument datatype, convert the recorded data to the specified type, which may be one of "double", "single", "int16", "int8" or "uint8".

Function File: player = getplayer (recorder)

Return an audioplayer object with data recorded by the audiorecorder object recorder.

Function File: player = play (recorder)
Function File: player = play (recorder, start)
Function File: player = play (recorder, [start, end])

Play the audio recorded in recorder and return a corresponding audioplayer object.

If the optional argument start is provided, begin playing start seconds in to the recording.

If the optional argument end is provided, stop playing at end seconds in the recording.