mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-12 14:47:43 +02:00
Fix warnings for nonexhaustive switches on enumerations
This commit is contained in:
parent
dfc84d030c
commit
3cc4754ac7
src
@ -471,6 +471,8 @@ void TrackArtist::DrawTrack(const Track * t,
|
|||||||
case WaveTrack::Spectrum:
|
case WaveTrack::Spectrum:
|
||||||
DrawSpectrum(wt, dc, rect, selectedRegion, zoomInfo);
|
DrawSpectrum(wt, dc, rect, selectedRegion, zoomInfo);
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
wxASSERT(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(__WXMAC__)
|
#if defined(__WXMAC__)
|
||||||
|
@ -589,6 +589,12 @@ static int encode_audio(AVCodecContext *avctx, AVPacket *pkt, int16_t *audio_sam
|
|||||||
case AV_SAMPLE_FMT_FLTP:
|
case AV_SAMPLE_FMT_FLTP:
|
||||||
((float*)(frame->data[ch]))[i] = audio_samples[ch + i*avctx->channels] / 32767.;
|
((float*)(frame->data[ch]))[i] = audio_samples[ch + i*avctx->channels] / 32767.;
|
||||||
break;
|
break;
|
||||||
|
case AV_SAMPLE_FMT_NONE:
|
||||||
|
case AV_SAMPLE_FMT_DBL:
|
||||||
|
case AV_SAMPLE_FMT_DBLP:
|
||||||
|
case AV_SAMPLE_FMT_NB:
|
||||||
|
wxASSERT(false);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -215,6 +215,9 @@ void MyFLACFile::metadata_callback(const FLAC__StreamMetadata *metadata)
|
|||||||
case FLAC__METADATA_TYPE_PICTURE: // ignore pictures
|
case FLAC__METADATA_TYPE_PICTURE: // ignore pictures
|
||||||
case FLAC__METADATA_TYPE_UNDEFINED: // do nothing with this either
|
case FLAC__METADATA_TYPE_UNDEFINED: // do nothing with this either
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case FLAC__MAX_METADATA_TYPE: // suppress compiler warning
|
||||||
|
wxASSERT(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -79,6 +79,9 @@ void ODFLACFile::metadata_callback(const FLAC__StreamMetadata *metadata)
|
|||||||
case FLAC__METADATA_TYPE_PICTURE: // ignore pictures
|
case FLAC__METADATA_TYPE_PICTURE: // ignore pictures
|
||||||
case FLAC__METADATA_TYPE_UNDEFINED: // do nothing with this either
|
case FLAC__METADATA_TYPE_UNDEFINED: // do nothing with this either
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case FLAC__MAX_METADATA_TYPE: // suppress compiler warning
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user