From: Brian Black <BlackBsd@Mountain.net>
To: Clemens Ladisch <clemens@ladisch.de>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: snd_pcm_writei() help!
Date: Fri, 15 Jul 2005 14:17:16 -0400 [thread overview]
Message-ID: <42D7FDAC.702@Mountain.net> (raw)
In-Reply-To: <Pine.HPX.4.33n.0507121023160.11996-100000@studcom.urz.uni-halle.de>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Clemens Ladisch wrote:
> Brian Black wrote:
>
>>Sometimes i pass in a size to write and i am getting an error -22
>>(Invalid argument) and sometimes the data writes out correctly.
>>
>> while ((AlsaCallReturnCode = snd_pcm_writei(PCM_Handle,
>> ptrCurrentDataPosition, NumberOfSamplesToWrite)) < 0)
>
>
> The size is in frames, not samples.
>
>
> HTH
> Clemens
Thanks for the reply Clemens,
i had made the changes above to samples (I dont know what i was
thinking. :-) ), anyways the issue i was having with the -22 had
something to do with setting some software parameters. by commenting
out all software parameter stuff. it worked well.
Do you have any idea on how i can target certain channels. for example
have a sound play out only the left or right channel? i cannot find any
documentation on the int he alsa docs.
and if any alsa list admin is reading,
i still have not recieved my digest of the list for over a week, is
their an issue with the alsa daily digest?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFC1/2sI9Y/1VIS+jgRAni2AJ9iDWk1kYPZsIT+vKMwunW0m6m8PwCg0e5Q
MgZn1zFvj+H2k69rLmQl1+Q=
=Gh/F
-----END PGP SIGNATURE-----
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
prev parent reply other threads:[~2005-07-15 18:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-11 21:08 snd_pcm_writei() help! Brian Black
2005-07-12 8:24 ` Clemens Ladisch
2005-07-15 18:17 ` Brian Black [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=42D7FDAC.702@Mountain.net \
--to=blackbsd@mountain.net \
--cc=alsa-devel@lists.sourceforge.net \
--cc=clemens@ladisch.de \
/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.