* Another alsa newbie seeks help
@ 2003-09-15 2:02 Sol
2003-09-15 17:37 ` Clemens Ladisch
0 siblings, 1 reply; 2+ messages in thread
From: Sol @ 2003-09-15 2:02 UTC (permalink / raw)
To: alsa-devel
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Another alsa newbie seeks help
2003-09-15 2:02 Another alsa newbie seeks help Sol
@ 2003-09-15 17:37 ` Clemens Ladisch
0 siblings, 0 replies; 2+ messages in thread
From: Clemens Ladisch @ 2003-09-15 17:37 UTC (permalink / raw)
To: Sol; +Cc: alsa-devel
Sol wrote:
> 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
This uses the plug plugin, which does all kinds of intelligent or
"intelligent" conversions. Please try to use hw:0,0 directly.
HTH
Clemens
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-09-15 17:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-15 2:02 Another alsa newbie seeks help Sol
2003-09-15 17:37 ` Clemens Ladisch
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.