channelmix: initialize with float

This commit is contained in:
Wim Taymans 2021-02-02 11:01:01 +01:00
parent 9d74bd61a7
commit 47b6ce84b2

View file

@ -74,7 +74,7 @@ static void props_reset(struct props *props)
props->volume = DEFAULT_VOLUME; props->volume = DEFAULT_VOLUME;
props->n_channel_volumes = 0; props->n_channel_volumes = 0;
for (i = 0; i < SPA_AUDIO_MAX_CHANNELS; i++) for (i = 0; i < SPA_AUDIO_MAX_CHANNELS; i++)
props->channel_volumes[i] = 1.0; props->channel_volumes[i] = 1.0f;
props->n_channels = 0; props->n_channels = 0;
for (i = 0; i < SPA_AUDIO_MAX_CHANNELS; i++) for (i = 0; i < SPA_AUDIO_MAX_CHANNELS; i++)
props->channel_map[i] = SPA_AUDIO_CHANNEL_UNKNOWN; props->channel_map[i] = SPA_AUDIO_CHANNEL_UNKNOWN;