mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-22 06:41:17 +00:00
example/hfp_ag_demo: print microphone and speaker gain
This commit is contained in:
parent
3d88d85ad9
commit
3ad98ca75b
@ -561,6 +561,16 @@ static void packet_handler(uint8_t packet_type, uint16_t channel, uint8_t * even
|
||||
sco_handle = HCI_CON_HANDLE_INVALID;
|
||||
sco_demo_close();
|
||||
break;
|
||||
|
||||
case HFP_SUBEVENT_SPEAKER_VOLUME:
|
||||
printf("Speaker volume: gain %u\n",
|
||||
hfp_subevent_speaker_volume_get_gain(event));
|
||||
break;
|
||||
case HFP_SUBEVENT_MICROPHONE_VOLUME:
|
||||
printf("Microphone volume: gain %u\n",
|
||||
hfp_subevent_microphone_volume_get_gain(event));
|
||||
break;
|
||||
|
||||
case HFP_SUBEVENT_START_RINGING:
|
||||
printf("** START Ringing **\n");
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user