All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sol <science@foxinternet.com>
To: alsa-devel@lists.sourceforge.net
Subject: Another alsa newbie seeks help
Date: 14 Sep 2003 19:02:58 -0700	[thread overview]
Message-ID: <1063591377.3330.29.camel@localhost> (raw)

Hello,

I have been using the example "pcm.c" in the alsa-lib/test directory to
learn about alsa and my soundcard(audiophile 2496 ice1712).

I have found something strange that I do not understand. 
async_direct(mmap) method will produce no sound for my card.  However,
if I change the format to S32_LE in pcm.c and first specify 10 channels
using async method- then I get sound when I use the async_direct method
afterwards.

If I haven't confused myself writing this, it looks like this:

./pcm -c 10 -m async_direct
Playback device is plughw:0,0
Stream parameters are 44100Hz, S32_LE, 10 channels
Sine wave rate is 440.0000Hz
Using transfer method: async_direct

(No sound here)

./pcm -c 10 -m async
Playback device is plughw:0,0
Stream parameters are 44100Hz, S32_LE, 10 channels
Sine wave rate is 440.0000Hz
Using transfer method: async

(Sound plays)

./pcm -c 10 -m async_direct
Playback device is plughw:0,0
Stream parameters are 44100Hz, S32_LE, 10 channels
Sine wave rate is 440.0000Hz
Using transfer method: async_direct

(Sound plays)

I see the hw_params change from RW_INTERLEAVED to MMAP_INTERLEAVED.  Do
I need to specify my channels somewhere for the mmap to work correctly
with my card?  Am I smoking crack!?

Thanks,

Sol




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

             reply	other threads:[~2003-09-15  2:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-15  2:02 Sol [this message]
2003-09-15 17:37 ` Another alsa newbie seeks help Clemens Ladisch

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=1063591377.3330.29.camel@localhost \
    --to=science@foxinternet.com \
    --cc=alsa-devel@lists.sourceforge.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.