Eww: quad loop.
This commit is contained in:
@@ -750,17 +750,17 @@ WinWdmPin *WinWdmFilter::InstantiateRenderPin(
|
|||||||
aTryPCM.push_back( false );
|
aTryPCM.push_back( false );
|
||||||
aTryPCM.push_back( true );
|
aTryPCM.push_back( true );
|
||||||
|
|
||||||
FOREACH( bool, aTryPCM, bTryPCM )
|
for (auto bTryPCM = aTryPCM.begin(); bTryPCM != aTryPCM.end(); ++bTryPCM)
|
||||||
{
|
{
|
||||||
FOREACH( int, aSampleRates, iSampleRate )
|
for (int const &iSampleRate : aSampleRates)
|
||||||
{
|
{
|
||||||
FOREACH( int, aChannels, iChannels )
|
for (int const &iChannels : aChannels)
|
||||||
{
|
{
|
||||||
FOREACH( DeviceSampleFormat, SampleFormats, fmt )
|
for (DeviceSampleFormat &fmt : SampleFormats)
|
||||||
{
|
{
|
||||||
PreferredOutputSampleFormat = *fmt;
|
PreferredOutputSampleFormat = fmt;
|
||||||
iPreferredOutputChannels = *iChannels;
|
iPreferredOutputChannels = iChannels;
|
||||||
iPreferredSampleRate = *iSampleRate;
|
iPreferredSampleRate = iSampleRate;
|
||||||
|
|
||||||
WAVEFORMATEXTENSIBLE wfx;
|
WAVEFORMATEXTENSIBLE wfx;
|
||||||
FillWFEXT( &wfx, PreferredOutputSampleFormat, iPreferredSampleRate, iPreferredOutputChannels );
|
FillWFEXT( &wfx, PreferredOutputSampleFormat, iPreferredSampleRate, iPreferredOutputChannels );
|
||||||
|
|||||||
Reference in New Issue
Block a user