/// <summary> /// /// </summary> static public void LoadChannels() { int _nchannel = 0; _input_channels.Clear(); _output_channels.Clear(); AsioChannels.Init(); foreach (String name in AsioChannels.InChannels) { /** Identificar el tipo por el nombre */ CORESIP_SndDevType tipo = GetTipoIn(name); _input_channels[tipo] = _nchannel++; _Logger.Debug("Encontrado Canal de Audio. Entrada {0}: {1} = {2}", _nchannel, tipo, name); } _nchannel = 0; foreach (String name in AsioChannels.OutChannels) { /** Identificar el tipo por el nombre */ CORESIP_SndDevType tipo = GetTipoOut(name); // _tipos[_index_tipos++]; _output_channels[tipo] = _nchannel++; _Logger.Debug("Encontrado Canal de Audio. Salida {0}: {1} = {2}", _nchannel, tipo, name); } }
/// <summary> /// /// </summary> static public void LoadChannels() { int _nchannel = 0; _input_channels.Clear(); _output_channels.Clear(); AsioChannels.Init(); foreach (String name in AsioChannels.InChannels) { CORESIP_SndDevType tipo = GetTipoIn(name); _input_channels[_nchannel++] = new DevData { TipoDev = tipo, AsioName = name }; _Logger.Info("Encontrado Canal de Audio. Entrada {0}: {1} = {2}", _nchannel, tipo, name); } _nchannel = 0; foreach (String name in AsioChannels.OutChannels) { /** Identificar el tipo por el nombre */ CORESIP_SndDevType tipo = GetTipoOut(name); // _tipos[_index_tipos++]; _output_channels[_nchannel++] = new DevData { TipoDev = tipo, AsioName = name }; _Logger.Info("Encontrado Canal de Audio. Salida {0}: {1} = {2} {3}", _nchannel, tipo, name, AsioChannels.SampleRate); } }