bluez5: init node soft volumes to 1.0f

This commit is contained in:
Huang-Huang Bao 2021-06-03 06:08:20 +08:00 committed by Wim Taymans
parent f92a5b3bbd
commit c7cac40e03

View file

@ -155,8 +155,10 @@ static void init_node(struct impl *this, struct node *node, uint32_t id)
spa_zero(*node);
node->id = id;
for (i = 0; i < SPA_AUDIO_MAX_CHANNELS; i++)
node->volumes[i] = 1.0;
for (i = 0; i < SPA_AUDIO_MAX_CHANNELS; i++) {
node->volumes[i] = 1.0f;
node->soft_volumes[i] = 1.0f;
}
}
static const struct a2dp_codec *get_a2dp_codec(enum spa_bluetooth_audio_codec id)