mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-07 13:30:09 -05:00
module-netjack2: support int and opus in driver
This commit is contained in:
parent
19f3e422e1
commit
0cfd94eb52
1 changed files with 3 additions and 1 deletions
|
|
@ -829,7 +829,9 @@ static int handle_follower_setup(struct impl *impl, struct nj2_session_params *p
|
|||
peer->params.recv_midi_channels < 0 ||
|
||||
peer->params.sample_rate == 0 ||
|
||||
peer->params.period_size == 0 ||
|
||||
peer->params.sample_encoder != NJ2_ENCODER_FLOAT) {
|
||||
(peer->params.sample_encoder != NJ2_ENCODER_FLOAT &&
|
||||
peer->params.sample_encoder != NJ2_ENCODER_OPUS &&
|
||||
peer->params.sample_encoder != NJ2_ENCODER_INT)) {
|
||||
pw_log_warn("invalid follower setup");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue