mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2026-02-13 04:27:44 -05:00
pcm: Introduce snd_pcm_subformat_value()
Allow userspace applications to select subformats easily just like in snd_pcm_format_t case - by string conversion. Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
This commit is contained in:
parent
58da05803b
commit
663139f3ef
2 changed files with 27 additions and 0 deletions
|
|
@ -282,6 +282,8 @@ typedef enum _snd_pcm_format {
|
|||
|
||||
/** PCM sample subformat */
|
||||
typedef enum _snd_pcm_subformat {
|
||||
/** Unknown */
|
||||
SND_PCM_SUBFORMAT_UNKNOWN = -1,
|
||||
/** Standard */
|
||||
SND_PCM_SUBFORMAT_STD = 0,
|
||||
SND_PCM_SUBFORMAT_LAST = SND_PCM_SUBFORMAT_STD
|
||||
|
|
@ -1092,6 +1094,7 @@ const char *snd_pcm_format_name(const snd_pcm_format_t format);
|
|||
const char *snd_pcm_format_description(const snd_pcm_format_t format);
|
||||
const char *snd_pcm_subformat_name(const snd_pcm_subformat_t subformat);
|
||||
const char *snd_pcm_subformat_description(const snd_pcm_subformat_t subformat);
|
||||
snd_pcm_subformat_t snd_pcm_subformat_value(const char* name);
|
||||
snd_pcm_format_t snd_pcm_format_value(const char* name);
|
||||
const char *snd_pcm_tstamp_mode_name(const snd_pcm_tstamp_t mode);
|
||||
const char *snd_pcm_state_name(const snd_pcm_state_t state);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue