[alsa-devel] Using snd_pcm_set_params() on a capture handle

Erik de Castro Lopo mle+la at mega-nerd.com
Mon Oct 26 10:54:31 CET 2015


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/


More information about the Alsa-devel mailing list