23.12.2012 Views

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Method Description<br />

audiorecorder<br />

isrecording(y) Indicates whether recording is in<br />

progress. If 0, recording is not in<br />

progress. If 1, recording is in progress.<br />

play(y) Creates an audioplayer, plays the<br />

recorded audio data, and returns a<br />

handle to the created audioplayer.<br />

getplayer(y) Creates an audioplayer and returns a<br />

handle to the created audioplayer.<br />

getaudiodata(y)<br />

getaudiodata(y,'type')<br />

display(y)<br />

disp(y)<br />

get(y)<br />

Audio recorder objects have the properties listed below. To set a user-settable<br />

property use this syntax<br />

set(y, 'property1', value,'property2',value,...)<br />

To view a read-only property<br />

Returns the recorded audio data to the<br />

<strong>MATLAB</strong> workspace. type is a string<br />

containing the desired data type.<br />

Supported data types are double,<br />

single, int16, int8, or uint8. If type<br />

is omitted, it defaults to 'double'.<br />

For double and single, the array<br />

contains values between -1 and 1. For<br />

int8, values are between -128 to 127,<br />

for uint8, values are from 0 to 255,<br />

and for int16, values are from -32768<br />

to 32767. If the recording is in mono,<br />

the returned array has one column. If<br />

it is in stereo, the array has two<br />

columns—one for each channel.<br />

Displays all property information<br />

about audio recorder y.<br />

2-73

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!