mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
Fix compilation with -Werror=float-conversion
Better make the conversions explicit so that we don't get any surprises. Fixes #4065
This commit is contained in:
parent
50870aac57
commit
1ae4374ccf
71 changed files with 286 additions and 284 deletions
|
|
@ -581,7 +581,7 @@ static void emit_device_set_node(struct impl *this, uint32_t id)
|
|||
|
||||
for (i = 0; i < node->n_channels; ++i) {
|
||||
/* Session manager will override this, so put in some safe number */
|
||||
node->volumes[i] = node->soft_volumes[i] = 0.064;
|
||||
node->volumes[i] = node->soft_volumes[i] = 0.064f;
|
||||
}
|
||||
|
||||
/* Produce member info json */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue