pulse-server: split out volume handling

Part of !776.
This commit is contained in:
Barnabás Pőcze 2021-06-18 22:04:45 +02:00
parent 43e2c64307
commit 4496c33751
6 changed files with 59 additions and 38 deletions

View file

@ -35,6 +35,7 @@
#include <pipewire/private.h>
#include "format.h"
#include "volume.h"
struct defs {
struct spa_fraction min_req;
@ -123,15 +124,6 @@ struct buffer_attr {
uint32_t fragsize;
};
struct volume {
uint8_t channels;
float values[CHANNELS_MAX];
};
#define VOLUME_INIT (struct volume) { \
.channels = 0, \
}
struct stream {
uint32_t create_tag;
uint32_t channel; /* index in map */