Skip to content

Commit

Permalink
Fixed not sending midi events when an organ is loading
Browse files Browse the repository at this point in the history
  • Loading branch information
oleg68 committed Mar 8, 2025
1 parent 3cfb760 commit b04c81a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/grandorgue/midi/objects/GOMidiSendingObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ void GOMidiSendingObject::PreparePlayback() {
m_sender.SetName(GetName());
}

void GOMidiSendingObject::PrepareRecording() {
GOMidiObject::PrepareRecording();
SendCurrentMidiValue();
}

void GOMidiSendingObject::AbortPlayback() {
SendEmptyMidiValue();
GOMidiObject::AbortPlayback();
Expand Down
1 change: 1 addition & 0 deletions src/grandorgue/midi/objects/GOMidiSendingObject.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ class GOMidiSendingObject : public GOMidiObject {
void OnSettingsApplied() override { ResendMidi(); }

void PreparePlayback() override;
void PrepareRecording() override;
void AbortPlayback() override;

public:
Expand Down

0 comments on commit b04c81a

Please sign in to comment.