mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-19 08:57:14 -05:00
alsa: add Tag set and enum support
So that we can see the tags on the sinks and sources.
This commit is contained in:
parent
7554bdea97
commit
a9659d9dce
4 changed files with 68 additions and 4 deletions
|
|
@ -30,6 +30,7 @@ extern "C" {
|
|||
#include <spa/param/param.h>
|
||||
#include <spa/param/latency-utils.h>
|
||||
#include <spa/param/audio/format-utils.h>
|
||||
#include <spa/param/tag-utils.h>
|
||||
|
||||
#include "alsa.h"
|
||||
|
||||
|
|
@ -165,7 +166,8 @@ struct state {
|
|||
#define PORT_Format 3
|
||||
#define PORT_Buffers 4
|
||||
#define PORT_Latency 5
|
||||
#define N_PORT_PARAMS 6
|
||||
#define PORT_Tag 6
|
||||
#define N_PORT_PARAMS 7
|
||||
struct spa_param_info port_params[N_PORT_PARAMS];
|
||||
enum spa_direction port_direction;
|
||||
struct spa_io_buffers *io;
|
||||
|
|
@ -234,6 +236,8 @@ struct state {
|
|||
struct spa_latency_info latency[2];
|
||||
struct spa_process_latency_info process_latency;
|
||||
|
||||
struct spa_pod *tag[2];
|
||||
|
||||
/* Rate match via an ALSA ctl */
|
||||
snd_ctl_t *ctl;
|
||||
snd_ctl_elem_value_t *pitch_elem;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue