6 writes to nChannels
System.Speech (6)
AudioFormat\SpeechAudioFormatInfo.cs (1)
146wfx.nChannels = (short)ChannelCount;
Internal\SapiInterop\SpAudioStreamWrapper.cs (1)
25wfx.nChannels = (short)audioFormat.ChannelCount;
Internal\Synthesis\AudioBase.cs (3)
99wfx.nChannels = 1; 384wfx.nChannels = Marshal.ReadInt16(ptr, 2); 436wfx.nChannels = 1;
Internal\Synthesis\AudioFileOut.cs (1)
36_wfxOut.nChannels = (short)formatInfo.ChannelCount;
17 references to nChannels
System.Speech (17)
Internal\Synthesis\AudioFileOut.cs (2)
43_wfxOut.nBlockAlign = (short)(_wfxOut.nChannels * _wfxOut.wBitsPerSample / 8); 44_wfxOut.nAvgBytesPerSec = _wfxOut.wBitsPerSample * _wfxOut.nSamplesPerSec * _wfxOut.nChannels / 8;
Internal\Synthesis\AudioFormatConverter.cs (1)
105switch (format.nBlockAlign / format.nChannels)
Internal\Synthesis\PcmConverter.cs (14)
28if (!(inWavFormat.nSamplesPerSec > 0 && inWavFormat.nChannels <= 2 && inWavFormat.nChannels > 0 && outWavFormat.nChannels > 0 && outWavFormat.nSamplesPerSec > 0 && outWavFormat.nChannels <= 2)) 41if (outWavFormat.nSamplesPerSec == inWavFormat.nSamplesPerSec && _iOutFormatType == _iInFormatType && outWavFormat.nChannels == inWavFormat.nChannels) 80if (_inWavFormat.nChannels == 2 && _outWavFormat.nChannels == 1) 86else if (_inWavFormat.nChannels == 1 && _outWavFormat.nChannels == 2) 93else if (_inWavFormat.nChannels == 2 && _outWavFormat.nChannels == 2) 109else if (_inWavFormat.nChannels == 1 && _outWavFormat.nChannels == 1)