alsa: disable pause-on-idle by default

snd_pcm_drop() causes pops and cracks. It is better to just let the
sink consume silence until it gets suspended.
This commit is contained in:
Wim Taymans 2021-01-18 11:13:48 +01:00
parent 19be555fa6
commit d9a63dc69f
3 changed files with 3 additions and 1 deletions

View file

@ -273,6 +273,7 @@ static const struct spa_dict_item node_info_items[] = {
{ SPA_KEY_DEVICE_API, "alsa" },
{ SPA_KEY_MEDIA_CLASS, "Audio/Sink" },
{ SPA_KEY_NODE_DRIVER, "true" },
{ SPA_KEY_NODE_PAUSE_ON_IDLE, "false" },
};
static void emit_node_info(struct state *this, bool full)

View file

@ -275,6 +275,7 @@ static const struct spa_dict_item node_info_items[] = {
{ SPA_KEY_DEVICE_API, "alsa" },
{ SPA_KEY_MEDIA_CLASS, "Audio/Source" },
{ SPA_KEY_NODE_DRIVER, "true" },
{ SPA_KEY_NODE_PAUSE_ON_IDLE, "false" },
};
static void emit_node_info(struct state *this, bool full)