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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

audioplayer<br />

2-70<br />

of these methods can use a “dot” notation. For example, play(y) and y.play<br />

are equivalent.<br />

Method Description<br />

play(y)<br />

play(y,start)<br />

play(y,[start stop])<br />

play(y,range)<br />

playblocking(y)<br />

playblocking(y,start)<br />

playblocking(y,[start stop])<br />

playblocking(y,range)<br />

stop(y) Stops playback.<br />

Audio player 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 />

Starts playback from the beginning<br />

and plays to the end, or from start<br />

sample to the end, or from start<br />

sample to stop sample. The values of<br />

start and stop can be specified in a<br />

two-element vector range.<br />

Same as play, but does not return<br />

control until playback completes.<br />

pause(y) Pauses playback.<br />

resume(y) Restarts playback from where<br />

playback was paused.<br />

isplaying(y) Indicates whether playback is in<br />

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

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

display(y)<br />

disp(y)<br />

get(y)<br />

Displays all property information<br />

about audio player y.<br />

get(y,’property’) % Displays ‘property’ setting.

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

Saved successfully!

Ooh no, something went wrong!