Re: Setting format to SND_PCM_FORMAT_MU_LAW does not let me apply hardware parameters

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx
[mailto:alsa-devel-bounces@xxxxxxxxxxxxxxxx] On Behalf Of Clemens
Ladisch
Sent: Tuesday, July 01, 2008 12:39 AM
To: Mitul Sen (misen)
Cc: alsa-devel@xxxxxxxxxxxxxxxx
Subject: Re:  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@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux