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:
@@ -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,20 +1921,14 @@ 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,20 +1976,14 @@ 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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user