[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/sound.c
From: |
Jan Djärv |
Subject: |
[Emacs-diffs] Changes to emacs/src/sound.c |
Date: |
Fri, 26 May 2006 06:29:18 +0000 |
Index: emacs/src/sound.c
diff -u emacs/src/sound.c:1.36 emacs/src/sound.c:1.37
--- emacs/src/sound.c:1.36 Thu May 18 17:06:01 2006
+++ emacs/src/sound.c Fri May 26 06:29:18 2006
@@ -1019,6 +1019,9 @@
if ((err = snd_pcm_hw_params_set_channels (p->handle, p->hwparams, val)) < 0)
alsa_sound_perror ("Could not set channel count", err);
+ if ((err = snd_pcm_hw_params (p->handle, p->hwparams)) < 0)
+ alsa_sound_perror ("Could not set parameters", err);
+
err = snd_pcm_hw_params_get_period_size (p->hwparams, &p->period_size, &dir);
if (err < 0)
@@ -1028,9 +1031,6 @@
if (err < 0)
alsa_sound_perror("Unable to get buffer size for playback", err);
- if ((err = snd_pcm_hw_params (p->handle, p->hwparams)) < 0)
- alsa_sound_perror ("Could not set parameters", err);
-
err = snd_pcm_sw_params_current (p->handle, p->swparams);
if (err < 0)
alsa_sound_perror ("Unable to determine current swparams for playback",