Merged pcmfinal branch.
This commit is contained in:
parent
cfce590e41
commit
25b7943321
4 changed files with 143 additions and 270 deletions
|
|
@ -330,7 +330,7 @@ int main(int argc, char **argv)
|
|||
}
|
||||
}
|
||||
|
||||
if (snd_seq_open(&seq, SND_SEQ_OPEN) < 0) {
|
||||
if (snd_seq_open(&seq, "hw", SND_SEQ_OPEN_DUPLEX, 0) < 0) {
|
||||
fprintf(stderr, "can't open sequencer\n");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -233,12 +233,12 @@ static void init_seq(char *source, char *dest)
|
|||
{
|
||||
snd_seq_addr_t addr;
|
||||
|
||||
if (snd_seq_open(&handle, SND_SEQ_OPEN) < 0) {
|
||||
if (snd_seq_open(&handle, "hw", SND_SEQ_OPEN_DUPLEX, 0) < 0) {
|
||||
perror("snd_seq_open");
|
||||
exit(1);
|
||||
}
|
||||
seqfd = snd_seq_poll_descriptor(handle);
|
||||
snd_seq_block_mode(handle, 0);
|
||||
snd_seq_nonblock(handle, 0);
|
||||
|
||||
/* set client info */
|
||||
if (server_mode)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue