mirror of https://github.com/nealey/hdjd.git
Seems like it ought to be working
This commit is contained in:
parent
d95064cf87
commit
bc38826f46
14
alsa.c
14
alsa.c
|
@ -117,11 +117,23 @@ alsa_write(uint8_t *data, size_t datalen)
|
|||
abort();
|
||||
}
|
||||
|
||||
snd_seq_ev_set_direct(&ev);
|
||||
snd_seq_ev_set_source(&ev, seq_port);
|
||||
snd_seq_ev_set_subs(&ev);
|
||||
if ((r = snd_seq_event_output(snd_handle, &ev)) < 0) {
|
||||
fprintf(stderr, "ALSA couldn't write an event: %ld\n", r);
|
||||
abort();
|
||||
}
|
||||
|
||||
snd_seq_drain_output(snd_handle);
|
||||
DUMP();
|
||||
|
||||
{
|
||||
int i;
|
||||
|
||||
printf("A> ");
|
||||
for (i = 0; i < datalen; i += 1) {
|
||||
printf("%02x ", data[i]);
|
||||
}
|
||||
printf("\n");
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue