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:
@@ -24,7 +24,10 @@ static Desc FindClosestFormat(const vector<Desc>& formats)
|
|||||||
{
|
{
|
||||||
const Desc& format = *i;
|
const Desc& format = *i;
|
||||||
|
|
||||||
if (!format.IsPCM() || format.mSampleRate != 44100.0)
|
if( !format.IsPCM() )
|
||||||
|
continue;
|
||||||
|
|
||||||
|
if( format.mSampleRate != 0. && format.mSampleRate != 44100.0 )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (format.SampleWordSize() == 2 &&
|
if (format.SampleWordSize() == 2 &&
|
||||||
|
|||||||
Reference in New Issue
Block a user