[alsa-devel] Setting format to SND_PCM_FORMAT_MU_LAW does not let me apply hardware parameters

Mitul Sen (misen) misen at cisco.com
Tue Jul 1 19:01:04 CEST 2008


The code is correct (as intended). I am sorry I forgot to change the
comment. I think I should be using SND_PCM_ACCESS_RW_NONINTERLEAVED
since I have only one source (mono). Please correct me if that is wrong.

Regards,
Mitul 

-----Original Message-----
From: alsa-devel-bounces at alsa-project.org
[mailto:alsa-devel-bounces at alsa-project.org] On Behalf Of Clemens
Ladisch
Sent: Tuesday, July 01, 2008 12:39 AM
To: Mitul Sen (misen)
Cc: alsa-devel at alsa-project.org
Subject: Re: [alsa-devel] Setting format to SND_PCM_FORMAT_MU_LAW does
not let me apply hardware parameters

Mitul Sen (misen) wrote:
> // Set access to RW interleaved.
> if ((err = snd_pcm_hw_params_set_access (_soundDevice, hw_params,
> SND_PCM_ACCESS_RW_NONINTERLEAVED)) < 0)

The comment and the code do not agree.  Please try
SND_PCM_ACCESS_RW_INTERLEAVED.


Regards,
Clemens
_______________________________________________
Alsa-devel mailing list
Alsa-devel at alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel


More information about the Alsa-devel mailing list