alsa: make it possible to configure the clock name

When nodes are synchronized to a common clock, the clock name can
be set to the same value on the alsa nodes and no resampling will
be done.
This commit is contained in:
Wim Taymans 2021-12-10 11:04:38 +01:00
parent e1576c53d4
commit 0648297fcb
2 changed files with 26 additions and 18 deletions

View file

@ -128,7 +128,6 @@ struct state {
bool opened;
snd_pcm_t *hndl;
int pcm_card;
bool have_format;
struct spa_audio_info current_format;
@ -142,6 +141,7 @@ struct state {
struct channel_map default_pos;
unsigned int disable_mmap;
unsigned int disable_batch;
char clock_name[64];
snd_pcm_uframes_t buffer_frames;
snd_pcm_uframes_t period_frames;