From 62e9aebdad7a0d8fae7048e8324e9585921e597c Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 10 May 2004 00:43:57 +0000 Subject: [PATCH] https://sourceforge.net/tracker/download.php?group_id=37892&atid=421366&file_id=86614&aid=932709 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.) --- stepmania/src/arch/Sound/RageSoundDriver_CA.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/stepmania/src/arch/Sound/RageSoundDriver_CA.cpp b/stepmania/src/arch/Sound/RageSoundDriver_CA.cpp index cad698a0ff..8af44f5d62 100644 --- a/stepmania/src/arch/Sound/RageSoundDriver_CA.cpp +++ b/stepmania/src/arch/Sound/RageSoundDriver_CA.cpp @@ -24,7 +24,10 @@ static Desc FindClosestFormat(const vector& 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 &&