mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-03 16:14:11 +00:00
example/a2dp_sink_demo: assign command status
This commit is contained in:
parent
6fb6f866f8
commit
60f569ef58
@ -1108,27 +1108,27 @@ static void stdin_process(char cmd){
|
|||||||
break;
|
break;
|
||||||
case 'a':
|
case 'a':
|
||||||
printf("AVRCP: enable notification TRACK_CHANGED\n");
|
printf("AVRCP: enable notification TRACK_CHANGED\n");
|
||||||
avrcp_controller_enable_notification(avrcp_connection->avrcp_cid, AVRCP_NOTIFICATION_EVENT_TRACK_CHANGED);
|
status = avrcp_controller_enable_notification(avrcp_connection->avrcp_cid, AVRCP_NOTIFICATION_EVENT_TRACK_CHANGED);
|
||||||
break;
|
break;
|
||||||
case 'A':
|
case 'A':
|
||||||
printf("AVRCP: disable notification TRACK_CHANGED\n");
|
printf("AVRCP: disable notification TRACK_CHANGED\n");
|
||||||
avrcp_controller_disable_notification(avrcp_connection->avrcp_cid, AVRCP_NOTIFICATION_EVENT_TRACK_CHANGED);
|
status = avrcp_controller_disable_notification(avrcp_connection->avrcp_cid, AVRCP_NOTIFICATION_EVENT_TRACK_CHANGED);
|
||||||
break;
|
break;
|
||||||
case 'R':
|
case 'R':
|
||||||
printf("AVRCP: enable notification PLAYBACK_POS_CHANGED\n");
|
printf("AVRCP: enable notification PLAYBACK_POS_CHANGED\n");
|
||||||
avrcp_controller_enable_notification(avrcp_connection->avrcp_cid, AVRCP_NOTIFICATION_EVENT_PLAYBACK_POS_CHANGED);
|
status = avrcp_controller_enable_notification(avrcp_connection->avrcp_cid, AVRCP_NOTIFICATION_EVENT_PLAYBACK_POS_CHANGED);
|
||||||
break;
|
break;
|
||||||
case 'P':
|
case 'P':
|
||||||
printf("AVRCP: disable notification PLAYBACK_POS_CHANGED\n");
|
printf("AVRCP: disable notification PLAYBACK_POS_CHANGED\n");
|
||||||
avrcp_controller_disable_notification(avrcp_connection->avrcp_cid, AVRCP_NOTIFICATION_EVENT_PLAYBACK_POS_CHANGED);
|
status = avrcp_controller_disable_notification(avrcp_connection->avrcp_cid, AVRCP_NOTIFICATION_EVENT_PLAYBACK_POS_CHANGED);
|
||||||
break;
|
break;
|
||||||
case 's':
|
case 's':
|
||||||
printf("AVRCP: send long button press REWIND\n");
|
printf("AVRCP: send long button press REWIND\n");
|
||||||
avrcp_controller_start_press_and_hold_cmd(avrcp_connection->avrcp_cid, AVRCP_OPERATION_ID_REWIND);
|
status = avrcp_controller_start_press_and_hold_cmd(avrcp_connection->avrcp_cid, AVRCP_OPERATION_ID_REWIND);
|
||||||
break;
|
break;
|
||||||
case 'S':
|
case 'S':
|
||||||
printf("AVRCP: release long button press REWIND\n");
|
printf("AVRCP: release long button press REWIND\n");
|
||||||
avrcp_controller_release_press_and_hold_cmd(avrcp_connection->avrcp_cid);
|
status = avrcp_controller_release_press_and_hold_cmd(avrcp_connection->avrcp_cid);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
show_usage();
|
show_usage();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user