26 Oct
2015
26 Oct
'15
12:27 p.m.
On 10/26/2015 10:54 AM, Erik de Castro Lopo wrote:
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?
That appears to be a bug in snd_pcm_hw_params_current() which does simply not set SAMPLE_BITS.
- Lars