Skip to content

Commit

Permalink
Some more debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmoreno committed Nov 26, 2024
1 parent b8f6e58 commit e3d1310
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/local_alsa_multi_listener.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,13 +157,15 @@ void local_alsa_multi_listener_t::send_midi(midipeer_id_t from,
snd_seq_ev_set_direct(ev);
auto result = snd_seq_event_output(seq->seq, ev);
if (result < 0) {
ERROR("Error: {}", snd_strerror(result));
ERROR("Error sending from={} to={}: {}", this->port, port,
snd_strerror(result));
snd_seq_drop_input(seq->seq);
snd_seq_drop_output(seq->seq);
}
result = snd_seq_drain_output(seq->seq);
if (result < 0) {
ERROR("Error: {}", snd_strerror(result));
ERROR("Error drain sending from={} to={}: {}", this->port, port,
snd_strerror(result));
snd_seq_drop_input(seq->seq);
snd_seq_drop_output(seq->seq);
}
Expand Down

0 comments on commit e3d1310

Please sign in to comment.