mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-16 08:56:45 -05:00
a2dp-codecs: add settings to codec init function
To make it possible to add extra config options in init. Also add a method to update settings in a codec.
This commit is contained in:
parent
deb3fa1d9b
commit
5bb7a0f573
7 changed files with 18 additions and 12 deletions
|
|
@ -103,7 +103,7 @@ static struct {
|
|||
|
||||
static int codec_select_config(const struct a2dp_codec *codec, uint32_t flags,
|
||||
const void *caps, size_t caps_size,
|
||||
const struct spa_dict *info, uint8_t config[A2DP_MAX_CAPS_SIZE])
|
||||
const struct spa_dict *settings, uint8_t config[A2DP_MAX_CAPS_SIZE])
|
||||
{
|
||||
a2dp_aac_t conf;
|
||||
int freq;
|
||||
|
|
@ -219,7 +219,8 @@ static int codec_enum_config(const struct a2dp_codec *codec,
|
|||
}
|
||||
|
||||
static void *codec_init(const struct a2dp_codec *codec, uint32_t flags,
|
||||
void *config, size_t config_len, const struct spa_audio_info *info, size_t mtu)
|
||||
void *config, size_t config_len, const struct spa_audio_info *info,
|
||||
const struct spa_dict *settings, size_t mtu)
|
||||
{
|
||||
struct impl *this;
|
||||
a2dp_aac_t *conf = config;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue