From: "Flávio Yuiti" <f_yuiti@yahoo.com.br>
To: Clemens Ladisch <cladisch@fastmail.net>
Cc: alsa-devel@alsa-project.org
Subject: Re: How to play a pcm file
Date: Thu, 26 Apr 2007 13:26:34 -0300 (ART) [thread overview]
Message-ID: <970914.35013.qm@web32205.mail.mud.yahoo.com> (raw)
In-Reply-To: <1177569394.26330.1186645873@webmail.messagingengine.com>
Clemens,
thanks for your help. Can you explain what function of alsa api I insert 128kbps value of pcm file? In my example, I'm reading the content of pcm file and writing directly on sound device, however I don't know the length of buffer that I send to sound device. Can be any length of buffer?
Thanks,
Flavio
Clemens Ladisch <cladisch@fastmail.net> escreveu:
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
__________________________________________________
Fale com seus amigos de graça com o novo Yahoo! Messenger
http://br.messenger.yahoo.com/
prev parent reply other threads:[~2007-04-26 16:26 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
2007-04-26 16:26 ` Flávio Yuiti [this message]
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=970914.35013.qm@web32205.mail.mud.yahoo.com \
--to=f_yuiti@yahoo.com.br \
--cc=alsa-devel@alsa-project.org \
--cc=cladisch@fastmail.net \
/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.