6 writes to nChannels
System.Speech (6)
AudioFormat\SpeechAudioFormatInfo.cs (1)
146
wfx.
nChannels
= (short)ChannelCount;
Internal\SapiInterop\SpAudioStreamWrapper.cs (1)
25
wfx.
nChannels
= (short)audioFormat.ChannelCount;
Internal\Synthesis\AudioBase.cs (3)
99
wfx.
nChannels
= 1;
384
wfx.
nChannels
= Marshal.ReadInt16(ptr, 2);
436
wfx.
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)
105
switch (format.nBlockAlign / format.
nChannels
)
Internal\Synthesis\PcmConverter.cs (14)
28
if (!(inWavFormat.nSamplesPerSec > 0 && inWavFormat.
nChannels
<= 2 && inWavFormat.
nChannels
> 0 && outWavFormat.
nChannels
> 0 && outWavFormat.nSamplesPerSec > 0 && outWavFormat.
nChannels
<= 2))
41
if (outWavFormat.nSamplesPerSec == inWavFormat.nSamplesPerSec && _iOutFormatType == _iInFormatType && outWavFormat.
nChannels
== inWavFormat.
nChannels
)
80
if (_inWavFormat.
nChannels
== 2 && _outWavFormat.
nChannels
== 1)
86
else if (_inWavFormat.
nChannels
== 1 && _outWavFormat.
nChannels
== 2)
93
else if (_inWavFormat.
nChannels
== 2 && _outWavFormat.
nChannels
== 2)
109
else if (_inWavFormat.
nChannels
== 1 && _outWavFormat.
nChannels
== 1)