зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1102703: (5/10) Porting bluetooth interface of android lollipop (a2dp) r=shawnjohnjr
This commit is contained in:
Родитель
e281c7bdc4
Коммит
bc9200ec52
|
@ -98,6 +98,16 @@ struct BluetoothA2dpHALCallback
|
|||
&BluetoothA2dpNotificationHandler::AudioStateNotification,
|
||||
aState, aBdAddr);
|
||||
}
|
||||
|
||||
#if ANDROID_VERSION >= 21
|
||||
static void
|
||||
AudioConfig(bt_bdaddr_t *aBdAddr, uint32_t aSampleRate, uint8_t aChannelCount)
|
||||
{
|
||||
AudioConfigNotification::Dispatch(
|
||||
&BluetoothA2dpNotificationHandler::AudioConfigNotification,
|
||||
aBdAddr, aSampleRate, aChannelCount);
|
||||
}
|
||||
#endif
|
||||
};
|
||||
|
||||
// Interface
|
||||
|
@ -121,7 +131,10 @@ BluetoothA2dpHALInterface::Init(
|
|||
static btav_callbacks_t sCallbacks = {
|
||||
sizeof(sCallbacks),
|
||||
BluetoothA2dpHALCallback::ConnectionState,
|
||||
BluetoothA2dpHALCallback::AudioState
|
||||
BluetoothA2dpHALCallback::AudioState,
|
||||
#if ANDROID_VERSION >= 21
|
||||
BluetoothA2dpHALCallback::AudioConfig
|
||||
#endif
|
||||
};
|
||||
|
||||
sA2dpNotificationHandler = aNotificationHandler;
|
||||
|
|
Загрузка…
Ссылка в новой задаче