diff options
author | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2009-07-07 02:26:13 +0300 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2009-07-07 02:34:35 +0300 |
commit | 0eb321bf2c1cc0e048faff26a01f86cdd3ec254f (patch) | |
tree | 71cb9bd9ed121156d3382066c0722c73189afe04 /libao2/ao_alsa5.c | |
parent | 6d908205fbadbdf7ccdc6c5e0eb918f0b43f16e0 (diff) | |
download | mpv-0eb321bf2c1cc0e048faff26a01f86cdd3ec254f.tar.bz2 mpv-0eb321bf2c1cc0e048faff26a01f86cdd3ec254f.tar.xz |
Remove trailing whitespace from most files
Diffstat (limited to 'libao2/ao_alsa5.c')
-rw-r--r-- | libao2/ao_alsa5.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libao2/ao_alsa5.c b/libao2/ao_alsa5.c index bca4e93ed8..b2dc1efd3a 100644 --- a/libao2/ao_alsa5.c +++ b/libao2/ao_alsa5.c @@ -32,7 +32,7 @@ #include "mp_msg.h" #include "help_mp.h" -static const ao_info_t info = +static const ao_info_t info = { "ALSA-0.5.x audio output", "alsa5", @@ -117,7 +117,7 @@ static int init(int rate_hz, int channels, int format, int flags) alsa_format.format = SND_PCM_SFMT_MPEG; break; } - + switch(alsa_format.format) { case SND_PCM_SFMT_S16_LE: @@ -230,7 +230,7 @@ static int init(int rate_hz, int channels, int format, int flags) setup.format = alsa_format; setup.buf.stream.queue_size = ao_data.buffersize; setup.msbits_per_sample = ao_data.bps; - + if ((err = snd_pcm_channel_setup(alsa_handler, &setup)) < 0) { mp_tmsg(MSGT_AO, MSGL_ERR, "[AO ALSA5] alsa-init: error setting up channel: %s\n", snd_strerror(err)); @@ -333,10 +333,10 @@ static void audio_resume(void) static int play(void* data, int len, int flags) { int got_len; - + if (!len) return 0; - + if ((got_len = snd_pcm_write(alsa_handler, data, len)) < 0) { if (got_len == -EPIPE) /* underrun? */ @@ -365,7 +365,7 @@ static int play(void* data, int len, int flags) static int get_space(void) { snd_pcm_channel_status_t ch_stat; - + ch_stat.channel = SND_PCM_CHANNEL_PLAYBACK; if (snd_pcm_channel_status(alsa_handler, &ch_stat) < 0) @@ -378,9 +378,9 @@ static int get_space(void) static float get_delay(void) { snd_pcm_channel_status_t ch_stat; - + ch_stat.channel = SND_PCM_CHANNEL_PLAYBACK; - + if (snd_pcm_channel_status(alsa_handler, &ch_stat) < 0) return (float)ao_data.buffersize/(float)ao_data.bps; /* error occurred */ else |