mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-17 08:30:06 +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))
|
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;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -820,7 +820,6 @@ static PaError InitializeOutputDeviceInfo( PaWinMmeHostApiRepresentation *winMme
|
|||||||
MMRESULT mmresult;
|
MMRESULT mmresult;
|
||||||
WAVEOUTCAPS woc;
|
WAVEOUTCAPS woc;
|
||||||
PaDeviceInfo *deviceInfo = &winMmeDeviceInfo->inheritedDeviceInfo;
|
PaDeviceInfo *deviceInfo = &winMmeDeviceInfo->inheritedDeviceInfo;
|
||||||
int wdmksDeviceOutputChannelCountIsKnown;
|
|
||||||
|
|
||||||
*success = 0;
|
*success = 0;
|
||||||
|
|
||||||
@ -886,6 +885,7 @@ static PaError InitializeOutputDeviceInfo( PaWinMmeHostApiRepresentation *winMme
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef PAWIN_USE_WDMKS_DEVICE_INFO
|
#ifdef PAWIN_USE_WDMKS_DEVICE_INFO
|
||||||
|
int wdmksDeviceOutputChannelCountIsKnown;
|
||||||
wdmksDeviceOutputChannelCountIsKnown = QueryWaveOutKSFilterMaxChannels(
|
wdmksDeviceOutputChannelCountIsKnown = QueryWaveOutKSFilterMaxChannels(
|
||||||
winMmeOutputDeviceId, &deviceInfo->maxOutputChannels );
|
winMmeOutputDeviceId, &deviceInfo->maxOutputChannels );
|
||||||
if( wdmksDeviceOutputChannelCountIsKnown && !winMmeDeviceInfo->deviceOutputChannelCountIsKnown )
|
if( wdmksDeviceOutputChannelCountIsKnown && !winMmeDeviceInfo->deviceOutputChannelCountIsKnown )
|
||||||
|
@ -53,7 +53,7 @@ wxString EffectBassTreble::GetEffectDescription() {
|
|||||||
|
|
||||||
bool EffectBassTreble::NewTrackSimpleMono()
|
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
|
//(re)initialise filter parameters for low shelf
|
||||||
xn1Bass=0;
|
xn1Bass=0;
|
||||||
xn2Bass=0;
|
xn2Bass=0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user