fix may-be-used-unset warning

This commit is contained in:
Paul Davis
2022-06-21 18:39:02 -06:00
parent 7436a110dc
commit 123cc92fff

View File

@@ -1718,7 +1718,7 @@ AudioTrigger::setup_stretcher ()
const uint32_t nchans = std::min (_box.input_streams().n_audio(), ar->n_channels());
//map our internal enum to a rubberband option
RubberBandStretcher::Option ro;
RubberBandStretcher::Option ro = RubberBandStretcher::Option (0);
switch (_stretch_mode) {
case Trigger::Crisp : ro = RubberBandStretcher::OptionTransientsCrisp; break;
case Trigger::Mixed : ro = RubberBandStretcher::OptionTransientsMixed; break;