1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-15 23:59:37 +02:00

Fix a few new compiler warnings.

This commit is contained in:
v.audacity 2013-01-04 03:07:03 +00:00
parent 522aedbfcf
commit 56eabe24c6
3 changed files with 3 additions and 3 deletions

View File

@ -106,7 +106,7 @@ wxString FileSelector(const wxChar *title,
{
if (filters[n].Contains(defaultExtension))
{
filterIndex = n;
filterIndex = (int)n; // Convert to int to avoid compiler warning, because we probably do not need many tens of thousands of filters.
break;
}
}

View File

@ -820,7 +820,6 @@ static PaError InitializeOutputDeviceInfo( PaWinMmeHostApiRepresentation *winMme
MMRESULT mmresult;
WAVEOUTCAPS woc;
PaDeviceInfo *deviceInfo = &winMmeDeviceInfo->inheritedDeviceInfo;
int wdmksDeviceOutputChannelCountIsKnown;
*success = 0;
@ -886,6 +885,7 @@ static PaError InitializeOutputDeviceInfo( PaWinMmeHostApiRepresentation *winMme
}
#ifdef PAWIN_USE_WDMKS_DEVICE_INFO
int wdmksDeviceOutputChannelCountIsKnown;
wdmksDeviceOutputChannelCountIsKnown = QueryWaveOutKSFilterMaxChannels(
winMmeOutputDeviceId, &deviceInfo->maxOutputChannels );
if( wdmksDeviceOutputChannelCountIsKnown && !winMmeDeviceInfo->deviceOutputChannelCountIsKnown )

View File

@ -53,7 +53,7 @@ wxString EffectBassTreble::GetEffectDescription() {
bool EffectBassTreble::NewTrackSimpleMono()
{
const float slope = 0.4; // same slope for both filters
const float slope = 0.4f; // same slope for both filters
//(re)initialise filter parameters for low shelf
xn1Bass=0;
xn2Bass=0;