mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-17 08:56:49 -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
|
|
@ -119,7 +119,7 @@ static uint8_t default_bitpool(uint8_t freq, uint8_t mode)
|
|||
|
||||
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_sbc_t conf;
|
||||
int bitpool;
|
||||
|
|
@ -303,7 +303,8 @@ static int codec_get_block_size(void *data)
|
|||
}
|
||||
|
||||
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_sbc_t *conf = config;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue