Mercurial > mplayer.hg
comparison libao2/ao_alsa5.c @ 1038:b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
author | arpi_esp |
---|---|
date | Tue, 05 Jun 2001 18:40:44 +0000 |
parents | a97eb50a2c3b |
children | 59fc1f75e486 |
comparison
equal
deleted
inserted
replaced
1037:2767682b85de | 1038:b36fb1ae4b53 |
---|---|
261 if ((err = snd_pcm_channel_prepare(alsa_handler, SND_PCM_CHANNEL_PLAYBACK)) < 0) | 261 if ((err = snd_pcm_channel_prepare(alsa_handler, SND_PCM_CHANNEL_PLAYBACK)) < 0) |
262 { | 262 { |
263 printf("alsa-reset: channel prepare error: %s\n", snd_strerror(err)); | 263 printf("alsa-reset: channel prepare error: %s\n", snd_strerror(err)); |
264 return; | 264 return; |
265 } | 265 } |
266 } | |
267 | |
268 /* stop playing, keep buffers (for pause) */ | |
269 static void audio_pause() | |
270 { | |
271 /* for now, just call reset(); */ | |
272 reset(); | |
273 } | |
274 | |
275 /* resume playing, after audio_pause() */ | |
276 static void audio_resume() | |
277 { | |
266 } | 278 } |
267 | 279 |
268 /* | 280 /* |
269 plays 'len' bytes of 'data' | 281 plays 'len' bytes of 'data' |
270 returns: number of bytes played | 282 returns: number of bytes played |