diff options
author | Thierry Bultel <thierry.bultel@iot.bzh> | 2018-09-28 15:59:25 +0200 |
---|---|---|
committer | Jonathan Aillet <jonathan.aillet@iot.bzh> | 2018-10-08 15:57:27 +0200 |
commit | 3b7a9941a9741833596a8e90bd235d16e643252f (patch) | |
tree | 2fd9a3564aaa31f70e9b0b8bc8ab480113610e27 /plugins/lib/bluetooth/hal-bt-mixer-link.h | |
parent | 19e4a3cd29f3e4d49ce8c484ab471eaee4d22753 (diff) |
bluetooth: set audio rate to 44100
44100 seems to be the most common sample rate.
Fis is a temporary fix, because the actual sample rate
may differ and depend on the information available at
the bluetooth transport level.
Handing it dynamically means some significant changes in
softmixer:
- instanciate the rate converter on playback in all the cases
- either been able to modify it after creation, or if not possible,
close and restart the output PCM plugin stack.
Change-Id: I6bd900fd539251b60b97bbaf15e1390bf49c13e0
Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
Diffstat (limited to 'plugins/lib/bluetooth/hal-bt-mixer-link.h')
-rw-r--r-- | plugins/lib/bluetooth/hal-bt-mixer-link.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/lib/bluetooth/hal-bt-mixer-link.h b/plugins/lib/bluetooth/hal-bt-mixer-link.h index 6fc90f6..0550339 100644 --- a/plugins/lib/bluetooth/hal-bt-mixer-link.h +++ b/plugins/lib/bluetooth/hal-bt-mixer-link.h @@ -52,7 +52,7 @@ \"volume\": 80,\ \"mute\": false,\ \"params\": {\ - \"rate\" : 48000,\ + \"rate\" : 44100,\ \"format\": \"S16_LE\",\ \"channels\": 2\ }\ @@ -62,4 +62,4 @@ // HAL controllers handle mixer bt calls functions int HalBtMixerLinkSetBtStreamingSettings(AFB_ApiT apiHandle, char *mixerApiName, unsigned int btStreamStatus, char *hci, char *btAddress); -#endif /* _HAL_BT_MIXER_LINK_INCLUDE_ */
\ No newline at end of file +#endif /* _HAL_BT_MIXER_LINK_INCLUDE_ */ |