Cleanups and fixed arguments for *_open() - default.

This commit is contained in:
Jaroslav Kysela 2001-06-15 08:55:17 +00:00
parent e875ea948d
commit 9f29bedbfd
3 changed files with 4 additions and 3 deletions

View file

@ -395,7 +395,8 @@ mixer_abort (ErrType error,
{
case ERR_OPEN:
fprintf (stderr,
PRGNAME ": failed to open mixer %s: %s\n",
PRGNAME ": function %s failed for %s: %s\n",
err_string,
card_id,
snd_strerror (xerrno));
break;

View file

@ -350,7 +350,7 @@ int main(int argc, char **argv)
}
}
if (snd_seq_open(&seq, "hw", SND_SEQ_OPEN_DUPLEX, 0) < 0) {
if (snd_seq_open(&seq, "default", SND_SEQ_OPEN_DUPLEX, 0) < 0) {
fprintf(stderr, "can't open sequencer\n");
return 1;
}

View file

@ -254,7 +254,7 @@ static void init_seq(char *source, char *dest)
snd_seq_addr_t addr;
int err, counti, counto;
if (snd_seq_open(&handle, "hw", SND_SEQ_OPEN_DUPLEX, 0) < 0) {
if (snd_seq_open(&handle, "default", SND_SEQ_OPEN_DUPLEX, 0) < 0) {
perror("snd_seq_open");
exit(1);
}