From: James Courtier-Dutton <James@superbug.demon.co.uk>
To: Bill Kapralos <billk@cs.yorku.ca>
Cc: Clemens Ladisch <clemens@ladisch.de>, alsa-devel@lists.sourceforge.net
Subject: Re: Question Regarding Simple ALSA Stereo Output
Date: Wed, 23 Jun 2004 17:50:21 +0100 [thread overview]
Message-ID: <40D9B4CD.5030201@superbug.demon.co.uk> (raw)
In-Reply-To: <Pine.GSO.4.58.0406231057040.6839@blue.cs.yorku.ca>
Bill Kapralos wrote:
> Hi Clemens
>
> Thanks for the prompt response!
>
> Should have mentioned this in the original email however I am using an SGI
> "box" wit dual Pentium III processors running SuSe Linux with a
> (VT82C686 ACER AC97 Audio Controller). The card does support stereo and I
> can successfully set the number of channels to two (using
> snd_pcm_hw_params_set_channels() ). After adding the code you suggested,
> the following was output:
>
> stream : PLAYBACK
> access : RW_INTERLEAVED
> format : S16_LE
> subformat : STD
> channels : 2
> rate : 44100
> exact rate : 44100 (44100/1)
> msbits : 16
> buffer_size : 20480
> period_size : 2048
> period_time : 46438
> tick_time : 10000
>
> Once again, thanks for the response!
>
> Regards,
>
> ================================================
>
> On Wed, 23 Jun 2004, Clemens Ladisch wrote:
>
>
>>Bill Kapralos wrote:
>>
>>>It appears as if it is simply outputting the data assuming one
>>>channel e.g. the same signal is heard in both the left and right
>>>ear even when I have deliberately made the signals different (e.g.
>>>introduced a considerable delay to one channel etc.). Furthermore,
>>>when I explicitly set all left channel samples to "0" and the
>>>right channel samples to "non-zero", no sound is heard at all - it
>>>seems as if only the left channel data is being output which is of
>>>course all zero. In contrast, if i set all the right channel
>>>samples to zero and the left channel samples to non-zero, the
>>>sound is heard.
>>
>>Does the function snd_pcm_hw_params_set_channels() return an error?
>>
>>What is output when you add the following code after the call to
>>snd_pcm_hw_params():
>>
>> snd_output_t *out;
>> ...
>> snd_output_stdio_attach(&out, stdout, 0);
>> snd_pcm_dump_hw_setup(pcm, out);
>> snd_output_close(out);
>>
>>What hardware do you use?
>>
>>
>>Regards,
>>Clemens
>>
>>
Which device name are you opening?
Try using "plug:front" as the device name in snd_pcm_open()
James
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
next prev parent reply other threads:[~2004-06-23 16:50 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-23 13:57 Question Regarding Simple ALSA Stereo Output Bill Kapralos
2004-06-23 14:45 ` Clemens Ladisch
2004-06-23 15:04 ` Bill Kapralos
2004-06-23 15:18 ` Clemens Ladisch
2004-06-23 16:50 ` James Courtier-Dutton [this message]
2004-06-23 15:44 ` James Courtier-Dutton
[not found] <Pine.GSO.4.58.0406231129100.6839@blue.cs.yorku.ca>
2004-06-23 16:10 ` Clemens Ladisch
[not found] <E1Bd8zp-00028B-03@sc8-sf-list2.sourceforge.net>
2004-06-23 22:11 ` Tom Watson
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=40D9B4CD.5030201@superbug.demon.co.uk \
--to=james@superbug.demon.co.uk \
--cc=alsa-devel@lists.sourceforge.net \
--cc=billk@cs.yorku.ca \
--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.