File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ## Audio module
2+
3+
4+ Audio module provides tools for read and play audio data. ASIO and multichannel supports enable low latency streaming to audio devices.
5+
6+ Example:
7+
8+ ```
9+ info = audiodevinfo()
10+ OUTPUT_DEVICE = 0;
11+ INPUT_DEVICE = 1;
12+ for k = [1:audiodevinfo(OUTPUT_DEVICE)]
13+ info.output(k)
14+ end
15+ for k = [1:audiodevinfo(INPUT_DEVICE)]
16+ info.output(k)
17+ end
18+ ```
19+
20+ ```
21+ wav_audio = [modulepath('audio'), '/examples/haha.wav'];
22+ [y, fs] = audioread(wav_audio);
23+ playObj = audioplayer(y, fs);
24+ playblocking(playObj)
25+ delete(playObj)
26+ clear playObj
27+ ```
28+
29+
30+ [ Previous page] ( README.md )
Original file line number Diff line number Diff line change 2727## [ JavaScript Object Notation] ( JSON.md )
2828
2929
30+ ## [ Audio module] ( AUDIO.md )
31+
32+
3033## [ Code editor] ( CODE_EDITOR.md )
3134
3235
You can’t perform that action at this time.
0 commit comments