# Arguments:
# Name - PCM name (alsa-lib)
# Direction - "Playback" or "Capture"
+# [Format] - sample format like S16_LE or S32_LE
# Channels - application channels
# HWChannels - hardware channels
# HWChannelPos0 - channel position (MONO FR FL etc. - see alsa-lib's strings)
True.Define.__buffer_time 500000
False.Define.__buffer_time "${var:SplitPCMBufferTime}"
}
+ If.format {
+ Condition {
+ Type String
+ Empty "${var:-__Format}"
+ }
+ True.Define.__Format S16_LE
+ }
LibraryConfig.pcm.SubstiConfig.pcm."${var:__Name}" {
@args [ CARD DEV CHN0 ]
device $DEV
chmap [ "${var:__HWChannelPos0}" ]
}
+ format "${var:__Format}"
channels "${evali:$__HWChannels}"
period_time "${evali:$__period_time}"
buffer_time "${evali:$__buffer_time}"