[alsa-devel] Unknown PCM cards.pcm.front

Rick Mann rmann at latencyzero.com
Thu Oct 29 23:21:24 CET 2015


> On Oct 29, 2015, at 05:47 , Clemens Ladisch <clemens at ladisch.de> wrote:
> 
> Rick Mann wrote:
>> "ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.front"
> 
> This means that some code tried to open device named "front", and that there
> is no such definition for your hardware.

Thanks, Clemens,

Here's my code that opens the device:


    int driverID = ::ao_default_driver_id();
    ao_sample_format format = { 0 };
    format.bits = 16;
    format.channels = inNumChannels;
    format.rate = inRate;
    format.byte_format = AO_FMT_LITTLE;
	
    mDevice = ::ao_open_live(driverID, &format, NULL);
    if (mDevice == NULL)
    {
        LogDebug("Error opening output device");
    }

I'm not sure where the change in default device would come from.

-- 
Rick Mann
rmann at latencyzero.com




More information about the Alsa-devel mailing list