private ASIOChannelInfo[] GetChannels(int Count, bool Input) { ASIOChannelInfo[] channels = new ASIOChannelInfo[Count]; for (int i = 0; i < channels.Length; ++i) { channels[i] = new ASIOChannelInfo() { channel = i, isInput = Input ? ASIOBool.True : ASIOBool.False }; Try(vtbl.getChannelInfo(_this, ref channels[i])); } return(channels); }
public Channel(ASIOChannelInfo Info) { index = Info.channel; name = Info.name; type = Info.type; }
private ASIOChannelInfo[] GetChannels(int Count, bool Input) { ASIOChannelInfo[] channels = new ASIOChannelInfo[Count]; for (int i = 0; i < channels.Length; ++i) { channels[i] = new ASIOChannelInfo() { channel = i, isInput = Input ? ASIOBool.True : ASIOBool.False }; Try(vtbl.getChannelInfo(_this, ref channels[i])); } return channels; }