public LugusAudioChannel GetChannel(Lugus.AudioChannelType type) { LugusAudioChannel output = null; foreach( LugusAudioChannel channel in _channels ) { if( channel.ChannelType == type ) { output = channel; break; } } if( output == null ) { output = CreateChannel( type ); } return output; }
protected LugusAudioChannel CreateChannel(Lugus.AudioChannelType type) { LugusAudioChannel channel = new LugusAudioChannel( type ); _channels.Add( channel ); return channel; }
public LugusAudioChannel(Lugus.AudioChannelType type) { this.ChannelType = type; // TODO : create a number of tracks at the beginning to act as a Pool }