jack: also add rate to format

This commit is contained in:
Wim Taymans 2019-10-28 22:02:10 +01:00
parent 2728babc85
commit 241a6165d2
2 changed files with 4 additions and 2 deletions

View file

@ -488,7 +488,7 @@ impl_node_remove_port(void *object, enum spa_direction direction, uint32_t port_
return -ENOTSUP;
}
static int port_enum_formats(void *object,
static int port_enum_formats(struct impl *this,
enum spa_direction direction, uint32_t port_id,
uint32_t index,
const struct spa_pod *filter,
@ -502,6 +502,7 @@ static int port_enum_formats(void *object,
SPA_FORMAT_mediaType, SPA_POD_Id(SPA_MEDIA_TYPE_audio),
SPA_FORMAT_mediaSubtype, SPA_POD_Id(SPA_MEDIA_SUBTYPE_raw),
SPA_FORMAT_AUDIO_format, SPA_POD_Id(SPA_AUDIO_FORMAT_F32P),
SPA_FORMAT_AUDIO_rate, SPA_POD_Int(this->client->frame_rate),
SPA_FORMAT_AUDIO_channels, SPA_POD_Int(1));
break;
default: