Mercurial > mplayer.hg
comparison libao2/ao_alsa1x.c @ 1180:c50cd5db2359
added warning message
author | al3x |
---|---|
date | Thu, 21 Jun 2001 21:27:56 +0000 |
parents | a84610bb5476 |
children | bf18175dfad7 |
comparison
equal
deleted
inserted
replaced
1179:2da8cd8aced9 | 1180:c50cd5db2359 |
---|---|
1 /* | 1 /* |
2 ao_alsa9 - ALSA-0.9.x output plugin for MPlayer | 2 ao_alsa9 - ALSA-0.9.x output plugin for MPlayer |
3 | 3 |
4 (C) Alex Beregszaszi <alex@naxine.org> | 4 (C) Alex Beregszaszi <alex@naxine.org> |
5 | |
6 Don't use this buggy driver, ALSA-0.9.x emulates OSS very well... | |
5 */ | 7 */ |
6 | 8 |
7 #include <errno.h> | 9 #include <errno.h> |
8 #include <sys/asoundlib.h> | 10 #include <sys/asoundlib.h> |
9 | 11 |
81 static int init(int rate_hz, int channels, int format, int flags) | 83 static int init(int rate_hz, int channels, int format, int flags) |
82 { | 84 { |
83 int err; | 85 int err; |
84 int cards = -1; | 86 int cards = -1; |
85 snd_pcm_info_t *alsa_info; | 87 snd_pcm_info_t *alsa_info; |
88 | |
89 printf("alsa-init: Don't use this buggy driver, ALSA-0.9.x emulates OSS very well...\n"); | |
86 | 90 |
87 printf("alsa-init: requested format: %d Hz, %d channels, %s\n", rate_hz, | 91 printf("alsa-init: requested format: %d Hz, %d channels, %s\n", rate_hz, |
88 channels, audio_out_format_name(format)); | 92 channels, audio_out_format_name(format)); |
89 | 93 |
90 alsa_handler = NULL; | 94 alsa_handler = NULL; |