Commit ed1f0a45 authored by Juanma Barranquero's avatar Juanma Barranquero
Browse files

(Fplay_sound_internal): Remove spurious newline in docstring.

parent 04c21c78
...@@ -1015,14 +1015,14 @@ alsa_configure (sd) ...@@ -1015,14 +1015,14 @@ alsa_configure (sd)
val = sd->format; val = sd->format;
err = snd_pcm_hw_params_set_format (p->handle, p->hwparams, val); err = snd_pcm_hw_params_set_format (p->handle, p->hwparams, val);
if (err < 0) if (err < 0)
alsa_sound_perror ("Could not set sound format", err); alsa_sound_perror ("Could not set sound format", err);
uval = sd->sample_rate; uval = sd->sample_rate;
err = snd_pcm_hw_params_set_rate_near (p->handle, p->hwparams, &uval, 0); err = snd_pcm_hw_params_set_rate_near (p->handle, p->hwparams, &uval, 0);
if (err < 0) if (err < 0)
alsa_sound_perror ("Could not set sample rate", err); alsa_sound_perror ("Could not set sample rate", err);
val = sd->channels; val = sd->channels;
err = snd_pcm_hw_params_set_channels (p->handle, p->hwparams, val); err = snd_pcm_hw_params_set_channels (p->handle, p->hwparams, val);
if (err < 0) if (err < 0)
...@@ -1072,11 +1072,11 @@ alsa_configure (sd) ...@@ -1072,11 +1072,11 @@ alsa_configure (sd)
p->hwparams = NULL; p->hwparams = NULL;
snd_pcm_sw_params_free (p->swparams); snd_pcm_sw_params_free (p->swparams);
p->swparams = NULL; p->swparams = NULL;
err = snd_pcm_prepare (p->handle); err = snd_pcm_prepare (p->handle);
if (err < 0) if (err < 0)
alsa_sound_perror ("Could not prepare audio interface for use", err); alsa_sound_perror ("Could not prepare audio interface for use", err);
if (sd->volume > 0) if (sd->volume > 0)
{ {
int chn; int chn;
...@@ -1098,7 +1098,7 @@ alsa_configure (sd) ...@@ -1098,7 +1098,7 @@ alsa_configure (sd)
long pmin, pmax; long pmin, pmax;
snd_mixer_selem_get_playback_volume_range (e, &pmin, &pmax); snd_mixer_selem_get_playback_volume_range (e, &pmin, &pmax);
long vol = pmin + (sd->volume * (pmax - pmin)) / 100; long vol = pmin + (sd->volume * (pmax - pmin)) / 100;
for (chn = 0; chn <= SND_MIXER_SCHN_LAST; chn++) for (chn = 0; chn <= SND_MIXER_SCHN_LAST; chn++)
snd_mixer_selem_set_playback_volume (e, chn, vol); snd_mixer_selem_set_playback_volume (e, chn, vol);
} }
...@@ -1230,9 +1230,9 @@ alsa_write (sd, buffer, nbytes) ...@@ -1230,9 +1230,9 @@ alsa_write (sd, buffer, nbytes)
err); err);
} }
} }
else else
alsa_sound_perror ("Error writing to sound device", err); alsa_sound_perror ("Error writing to sound device", err);
} }
else else
nwritten += err * fact; nwritten += err * fact;
...@@ -1374,7 +1374,7 @@ do_play_sound (psz_file, ui_volume) ...@@ -1374,7 +1374,7 @@ do_play_sound (psz_file, ui_volume)
DEFUN ("play-sound-internal", Fplay_sound_internal, Splay_sound_internal, 1, 1, 0, DEFUN ("play-sound-internal", Fplay_sound_internal, Splay_sound_internal, 1, 1, 0,
doc: /* Play sound SOUND. doc: /* Play sound SOUND.
Internal use only, use `play-sound' instead.\n */) Internal use only, use `play-sound' instead. */)
(sound) (sound)
Lisp_Object sound; Lisp_Object sound;
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment