Re: Using snd_pcm_set_params() on a capture handle

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

 



Clemens Ladisch wrote:

> To get the current parameters of the device, use snd_pcm_hw_params_current().

Ah, that makes sense. Now I get:

    ACCESS:  RW_INTERLEAVED
    FORMAT:  S32_LE
    SUBFORMAT:  STD
    SAMPLE_BITS: [0 0]
    FRAME_BITS: [64 64]
    CHANNELS: [2 2]
    RATE: [48000 48000]
    PERIOD_TIME: [6250 6250]
    PERIOD_SIZE: [300 300]
    PERIOD_BYTES: [0 0]
    PERIODS: [0 0]
    BUFFER_TIME: [0 0]
    BUFFER_SIZE: [1200 1200]
    BUFFER_BYTES: [9600 9600]
    TICK_TIME: [0 0]

Why is SAMPLE_BITS == [0 0], even though the format is S32_LE?

Erik
-- 
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/
_______________________________________________
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