mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
pulse-server: put valid volume in sample info
This commit is contained in:
parent
44cad2d533
commit
dcc5779cd6
2 changed files with 11 additions and 1 deletions
|
|
@ -44,6 +44,14 @@ static inline bool volume_valid(const struct volume *vol)
|
|||
return true;
|
||||
}
|
||||
|
||||
static inline void volume_make(struct volume *vol, uint8_t channels)
|
||||
{
|
||||
uint8_t i;
|
||||
for (i = 0; i < channels; i++)
|
||||
vol->values[i] = 1.0f;
|
||||
vol->channels = channels;
|
||||
}
|
||||
|
||||
struct volume_info {
|
||||
struct volume volume;
|
||||
struct channel_map map;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue