always disable wmme clip and dither if an spdif passthrough wave format is requested
This commit is contained in:
parent
78131d9a78
commit
5bf449b175
3 changed files with 15 additions and 2 deletions
|
|
@ -2389,6 +2389,14 @@ static PaError OpenStream( struct PaUtilHostApiRepresentation *hostApi,
|
|||
return paInvalidFlag; /* unexpected platform specific flag */
|
||||
|
||||
|
||||
/* always disable clipping and dithering if we are outputting a raw spdif stream */
|
||||
if( (winMmeSpecificOutputFlags & paWinMmeWaveFormatDolbyAc3Spdif)
|
||||
|| (winMmeSpecificOutputFlags & paWinMmeWaveFormatWmaSpdif) ){
|
||||
|
||||
streamFlags = streamFlags | paClipOff | paDitherOff;
|
||||
}
|
||||
|
||||
|
||||
result = CalculateBufferSettings( &framesPerHostInputBuffer, &hostInputBufferCount,
|
||||
&framesPerHostOutputBuffer, &hostOutputBufferCount,
|
||||
inputChannelCount, hostInputSampleFormat, suggestedInputLatency, inputStreamInfo,
|
||||
|
|
|
|||
Loading…
Reference in a new issue