1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-16 15:41:11 +02:00

Remove unneeded log messages

This commit is contained in:
martynshaw99
2011-08-23 19:45:14 +00:00
parent 304d2ae909
commit d2a2de2d9e

View File

@@ -1902,7 +1902,6 @@ wxArrayLong AudioIO::GetSupportedPlaybackRates(int devIndex, double rate)
const PaDeviceInfo* devInfo = NULL; const PaDeviceInfo* devInfo = NULL;
int i; int i;
wxLogDebug(wxT("Getting supported playback rates for device %d"), devIndex);
devInfo = Pa_GetDeviceInfo(devIndex); devInfo = Pa_GetDeviceInfo(devIndex);
if (!devInfo) if (!devInfo)
@@ -1922,19 +1921,13 @@ wxArrayLong AudioIO::GetSupportedPlaybackRates(int devIndex, double rate)
for (i = 0; i < NumRatesToTry; i++) for (i = 0; i < NumRatesToTry; i++)
{ {
if (Pa_IsFormatSupported(NULL, &pars, RatesToTry[i]) == 0) if (Pa_IsFormatSupported(NULL, &pars, RatesToTry[i]) == 0)
{
wxLogDebug(wxT("Rate %ld Hz is supported"), RatesToTry[i]);
supported.Add(RatesToTry[i]); supported.Add(RatesToTry[i]);
}
} }
if (irate != 0 && supported.Index(irate) == wxNOT_FOUND) if (irate != 0 && supported.Index(irate) == wxNOT_FOUND)
{ {
if (Pa_IsFormatSupported(NULL, &pars, irate) == 0) if (Pa_IsFormatSupported(NULL, &pars, irate) == 0)
{
wxLogDebug(wxT("Suggested rate %ld Hz is supported"), irate);
supported.Add(irate); supported.Add(irate);
}
} }
return supported; return supported;
@@ -1959,7 +1952,6 @@ wxArrayLong AudioIO::GetSupportedCaptureRates(int devIndex, double rate)
const PaDeviceInfo* devInfo = NULL; const PaDeviceInfo* devInfo = NULL;
int i; int i;
wxLogDebug(wxT("Getting supported capture rates for device %d"), devIndex);
devInfo = Pa_GetDeviceInfo(devIndex); devInfo = Pa_GetDeviceInfo(devIndex);
if (!devInfo) if (!devInfo)
@@ -1984,19 +1976,13 @@ wxArrayLong AudioIO::GetSupportedCaptureRates(int devIndex, double rate)
for (i = 0; i < NumRatesToTry; i++) for (i = 0; i < NumRatesToTry; i++)
{ {
if (Pa_IsFormatSupported(&pars, NULL, RatesToTry[i]) == 0) if (Pa_IsFormatSupported(&pars, NULL, RatesToTry[i]) == 0)
{
wxLogDebug(wxT("Rate %ld Hz is supported"), RatesToTry[i]);
supported.Add(RatesToTry[i]); supported.Add(RatesToTry[i]);
}
} }
if (irate != 0 && supported.Index(irate) == wxNOT_FOUND) if (irate != 0 && supported.Index(irate) == wxNOT_FOUND)
{ {
if (Pa_IsFormatSupported(&pars, NULL, irate) == 0) if (Pa_IsFormatSupported(&pars, NULL, irate) == 0)
{
wxLogDebug(wxT("Suggested rate %ld Hz is supported"), irate);
supported.Add(irate); supported.Add(irate);
}
} }
return supported; return supported;