1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-16 07:31:16 +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;
int i;
wxLogDebug(wxT("Getting supported playback rates for device %d"), devIndex);
devInfo = Pa_GetDeviceInfo(devIndex);
if (!devInfo)
@@ -1922,20 +1921,14 @@ wxArrayLong AudioIO::GetSupportedPlaybackRates(int devIndex, double rate)
for (i = 0; i < NumRatesToTry; i++)
{
if (Pa_IsFormatSupported(NULL, &pars, RatesToTry[i]) == 0)
{
wxLogDebug(wxT("Rate %ld Hz is supported"), RatesToTry[i]);
supported.Add(RatesToTry[i]);
}
}
if (irate != 0 && supported.Index(irate) == wxNOT_FOUND)
{
if (Pa_IsFormatSupported(NULL, &pars, irate) == 0)
{
wxLogDebug(wxT("Suggested rate %ld Hz is supported"), irate);
supported.Add(irate);
}
}
return supported;
}
@@ -1959,7 +1952,6 @@ wxArrayLong AudioIO::GetSupportedCaptureRates(int devIndex, double rate)
const PaDeviceInfo* devInfo = NULL;
int i;
wxLogDebug(wxT("Getting supported capture rates for device %d"), devIndex);
devInfo = Pa_GetDeviceInfo(devIndex);
if (!devInfo)
@@ -1984,20 +1976,14 @@ wxArrayLong AudioIO::GetSupportedCaptureRates(int devIndex, double rate)
for (i = 0; i < NumRatesToTry; i++)
{
if (Pa_IsFormatSupported(&pars, NULL, RatesToTry[i]) == 0)
{
wxLogDebug(wxT("Rate %ld Hz is supported"), RatesToTry[i]);
supported.Add(RatesToTry[i]);
}
}
if (irate != 0 && supported.Index(irate) == wxNOT_FOUND)
{
if (Pa_IsFormatSupported(&pars, NULL, irate) == 0)
{
wxLogDebug(wxT("Suggested rate %ld Hz is supported"), irate);
supported.Add(irate);
}
}
return supported;
}