From: "Clemens Ladisch" <cladisch@fastmail.net>
To: "Flávio Yuiti" <f_yuiti@yahoo.com.br>, alsa-devel@alsa-project.org
Subject: Re: How to play a pcm file
Date: Thu, 26 Apr 2007 08:36:34 +0200 [thread overview]
Message-ID: <1177569394.26330.1186645873@webmail.messagingengine.com> (raw)
In-Reply-To: <778314.78890.qm@web32215.mail.mud.yahoo.com>
Flávio Yuiti wrote:
> I did a test with pcm file and the sound is playing very fast,
>
> snd_pcm_open(&handleSound,"hw:0,0",SND_PCM_STREAM_PLAYBACK,0)
Use "default" as device name. Using "hw" will prevent any automatic
sample format/rate conversions.
> //snd_pcm_hw_params_set_rate(handleSound,hardwareParam,8000,0);
This shouldn't be commented out, and you should check the return
values of all these functions.
HTH
Clemens
next prev parent reply other threads:[~2007-04-26 6:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-26 0:51 How to play a pcm file Flávio Yuiti
2007-04-26 6:36 ` Clemens Ladisch [this message]
2007-04-26 16:26 ` Flávio Yuiti
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1177569394.26330.1186645873@webmail.messagingengine.com \
--to=cladisch@fastmail.net \
--cc=alsa-devel@alsa-project.org \
--cc=f_yuiti@yahoo.com.br \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.