format.mSampleRate == 0 means "set it yourself", I think (TODO: actually
set it--SetNominalSampleRate--and verify with IsValidNominalSampleRate)

(I'm not going to try to fix the QT1 driver; hopefully the remaining CA
problems can be fixed and QT can be removed.)
This commit is contained in:
Glenn Maynard
2004-05-10 00:43:57 +00:00
parent dfded1c1ab
commit 62e9aebdad
@@ -24,7 +24,10 @@ static Desc FindClosestFormat(const vector<Desc>& formats)
{
const Desc& format = *i;
if (!format.IsPCM() || format.mSampleRate != 44100.0)
if( !format.IsPCM() )
continue;
if( format.mSampleRate != 0. && format.mSampleRate != 44100.0 )
continue;
if (format.SampleWordSize() == 2 &&