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:
parent
522aedbfcf
commit
56eabe24c6
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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 )
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user