openbsd-ports/audio/audacity/patches/patch-src_AudioIO_cpp
jakemsr 46383da97f - use the capture parameters argument instead of the playback
parameters argument with Pa_IsFormatSupported() when checking if
  certain capture parameters are supported.
- take maintainership per former MAINTAINER's suggestion
2008-03-24 05:31:48 +00:00

31 lines
1.0 KiB
Plaintext

$OpenBSD: patch-src_AudioIO_cpp,v 1.3 2008/03/24 05:31:48 jakemsr Exp $
--- src/AudioIO.cpp.orig Sun Mar 2 02:32:09 2008
+++ src/AudioIO.cpp Sun Mar 2 02:33:50 2008
@@ -490,7 +490,7 @@ void AudioIO::HandleDeviceChange()
if( error )
return;
- mPortMixer = Px_OpenMixer(stream, 0);
+ mPortMixer = Px_OpenMixer(stream, recDeviceNum);
if (!mPortMixer) {
Pa_CloseStream(stream);
@@ -1516,7 +1516,7 @@ wxArrayLong AudioIO::GetSupportedCaptureRates(wxString
for (i = 0; i < NumStandardRates; i++)
{
- if (Pa_IsFormatSupported(NULL, &pars, StandardRates[i]) == 0)
+ if (Pa_IsFormatSupported(&pars, NULL, StandardRates[i]) == 0)
{
supported.Add(StandardRates[i]);
}
@@ -1524,7 +1524,7 @@ wxArrayLong AudioIO::GetSupportedCaptureRates(wxString
if (irate != 0 && supported.Index(irate) == wxNOT_FOUND)
{
- if (Pa_IsFormatSupported(NULL, &pars, irate) == 0)
+ if (Pa_IsFormatSupported(&pars, NULL, irate) == 0)
{
supported.Add(irate);
}