diff --git a/src/sound/musicformats/music_midistream.cpp b/src/sound/musicformats/music_midistream.cpp index 207ea51a05..989dc6af79 100644 --- a/src/sound/musicformats/music_midistream.cpp +++ b/src/sound/musicformats/music_midistream.cpp @@ -829,7 +829,7 @@ uint32_t *MIDIStreamer::WriteStopNotes(uint32_t *events) void MIDIStreamer::SetMIDISource(MIDISource *_source) { source = _source; - source->setTempoCallback([=](int tempo) { return MIDI->SetTempo(tempo); } ); + source->setTempoCallback([=](int tempo) { return !!MIDI->SetTempo(tempo); } ); }