Skip to content

Commit eab9cae

Browse files
committed
[Mac] More Mac fixes
1 parent e519dae commit eab9cae

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Client/Source/AudioCallback.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ void AudioCallback::audioDeviceIOCallbackWithContext(const float* const* inputCh
398398
}
399399

400400
// Check if the slider wasn't updated for a while, then take the server value and update the slider
401-
if (!bpmSliderLastMoved_.has_value() || (std::chrono::steady_clock::now() - bpmSliderLastMoved_.value()) > std::chrono::seconds(1)) {
401+
if (!bpmSliderLastMoved_.has_value() || (std::chrono::steady_clock::now() - *bpmSliderLastMoved_) > std::chrono::seconds(1)) {
402402
Data::getPropertyAsValue(VALUE_SERVER_BPM).setValue(bpm);
403403
bpmSliderLastMoved_ = std::chrono::steady_clock::now();
404404
}

Client/Source/Client.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ bool Client::sendData(JammerNetzChannelSetup const& channelSetup, std::shared_pt
9696
}
9797
MidiSignal toSend = MidiSignal_None;
9898
if (controllers.midiSignal.has_value()) {
99-
toSend = controllers.midiSignal.value();
99+
toSend = *controllers.midiSignal;
100100
}
101101

102102
// Create a message

0 commit comments

Comments
 (0)