Unfortunately, we don't automatically resample (I though we did too!). 
When I removed this during testing, I got the "your soundcard doesn't 
support this rate" message.

Should I look to see what resampling isn't happening?

Leland

Richard Ash wrote:
> Update of /cvsroot/audacity/audacity-src/src
> In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv16406/src
> 
> Modified Files:
>       Project.cpp 
> Log Message:
> Remove the check for supported project rates, because it isn't needed any 
> more. We now resample playback automatically, so we shouldn't mess with the 
> project rate and cause resampling unecessarily.
> 
> 
> Index: Project.cpp
> ===================================================================
> RCS file: /cvsroot/audacity/audacity-src/src/Project.cpp,v
> retrieving revision 1.385
> retrieving revision 1.386
> diff -u -d -r1.385 -r1.386
> --- Project.cpp       4 Jan 2009 09:24:54 -0000       1.385
> +++ Project.cpp       9 Jan 2009 21:27:55 -0000       1.386
> @@ -2850,15 +2850,8 @@
>     // Automatically assign rate of imported file to whole project,
>     // if this is the first file that is imported
>     if (initiallyEmpty && newRate > 0) {
> -      // msmeyer: Before changing rate, check if rate is supported
> -      // by current sound card. If it is not, don't change it,
> -      // otherwise playback won't work.
> -      wxArrayLong rates = AudioIO::GetSupportedSampleRates(-1, -1, newRate);
> -      if (rates.Index((int)newRate) != wxNOT_FOUND)
> -      {
> -         mRate = newRate;
> -         GetSelectionBar()->SetRate(mRate);
> -      }
> +      mRate = newRate;
> +      GetSelectionBar()->SetRate(mRate);
>     }
>  
>     PushState(wxString::Format(_("Imported '%s'"), fileName.c_str()),
> 
> 
> ------------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It is the best place to buy or sell services for
> just about anything Open Source.
> http://p.sf.net/sfu/Xq1LFB
> _______________________________________________
> Audacity-cvs mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/audacity-cvs
> 
> 


------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs

Reply via email to