linux: shared memory interface - link with librt
[supercollider.git] / HelpSource / Classes / AudioIn.schelp
blob361e3a272bcbf2c6f3bf0de8ea64e3fa5ed81755
1 class:: AudioIn
2 summary:: Read audio input.
3 related:: Classes/In, Classes/SoundIn
4 categories::  UGens>InOut
7 Description::
9 Reads audio from the sound input hardware.
11 note::
12 This is provided for backwards compatibility with SC2 code. For normal use link::Classes/SoundIn::, which has bus numbers beginning at 0, as AudioIn may be deprecated and removed at some point in the future.
15 classmethods::
17 method::ar
19 argument::channel
21 Input channel number to read. Channel numbers begin at 1.
23 Examples::
24 Patching input to output
25 code::
26 // patching input to output
28 // watch the feedback
31 SynthDef("help-AudioIn",{ arg out=0;
32         Out.ar(out,
33                 AudioIn.ar(1)
34         )
35 }).play;
39 Stereo through patching from input to output
40 code::
41 // stereo through patching from input to output
43 // watch the feedback
46 SynthDef("help-AudioIn",{ arg out=0;
47         Out.ar(out,
48                 AudioIn.ar([1,2])
49         )
50 }).play;