alsa-seq: keep track of last port

Keep track of the last port and only iterate until that port.
This commit is contained in:
Wim Taymans 2020-03-31 17:52:22 +02:00
parent b3bddb853f
commit 74665de68e
3 changed files with 19 additions and 9 deletions

View file

@ -94,6 +94,7 @@ struct seq_stream {
unsigned int caps;
snd_midi_event_t *codec;
struct seq_port ports[MAX_PORTS];
uint32_t last_port;
};
struct seq_conn {