cmake build system: visiblity support for clang
[supercollider.git] / SCClassLibrary / Common / Control / asBus.sc
blob9447fdc196660d194d4258b896280767bd231f17
1 + Server {
2         asBus { arg rate,numChannels=1;
3                 ^Bus.alloc(rate,this,numChannels)
4         }
7 + Bus {
8         asBus { ^this }
11 + Integer {
12         asBus { arg rate = \control,numChannels=1,server;
13                 ^Bus.new(rate,this,numChannels,server)
14         }
17 + Nil {
18         asBus { arg rate,numChannels=1,server;
19                 ^if(rate == \audio,{
20                         Bus(\audio,0,numChannels,server); // out yer speakers
21                 },{
22                         Bus.alloc(\control,server,numChannels); // private control bus
23                 })
24         }