Mercurial > mplayer.hg
comparison libao2/ao_alsa9.c @ 1207:bf18175dfad7
ao_subdevice support added
author | al3x |
---|---|
date | Sat, 23 Jun 2001 18:59:54 +0000 |
parents | c50cd5db2359 |
children | 3c390543302c |
comparison
equal
deleted
inserted
replaced
1206:e9138e79ca69 | 1207:bf18175dfad7 |
---|---|
152 if ((err = snd_pcm_info_malloc(&alsa_info)) < 0) | 152 if ((err = snd_pcm_info_malloc(&alsa_info)) < 0) |
153 { | 153 { |
154 printf("alsa-init: memory allocation error: %s\n", snd_strerror(err)); | 154 printf("alsa-init: memory allocation error: %s\n", snd_strerror(err)); |
155 return(0); | 155 return(0); |
156 } | 156 } |
157 | |
158 if (ao_subdevice != NULL) | |
159 alsa_device = ao_subdevice; | |
157 | 160 |
158 if (alsa_device == NULL) | 161 if (alsa_device == NULL) |
159 { | 162 { |
160 if ((alsa_device = malloc(ALSA_DEVICE_SIZE)) == NULL) | 163 if ((alsa_device = malloc(ALSA_DEVICE_SIZE)) == NULL) |
161 { | 164 { |