pulse-server: init volume/channelmap correctly in stream-restore

This commit is contained in:
Wim Taymans 2020-11-24 09:54:42 +01:00
parent edbec5d4ba
commit 0c66b5677b
4 changed files with 20 additions and 11 deletions

View file

@ -28,6 +28,10 @@ struct volume {
};
#define VOLUME_INIT (struct volume) { \
.channels = 0, \
}
#define VOLUME_DEFAULT (struct volume) { \
.channels = 2, \
.values[0] = 1.0f, \
.values[1] = 1.0f, \