static void source_state_changed(struct audio_device *dev, source_state_t old_state, source_state_t new_state, void *user_data) { struct media_transport *transport = user_data; if (new_state == SOURCE_STATE_PLAYING) transport_update_playing(transport, TRUE); else transport_update_playing(transport, FALSE); }
static void sink_state_changed(struct btd_service *service, sink_state_t old_state, sink_state_t new_state, void *user_data) { struct media_transport *transport = user_data; if (new_state == SINK_STATE_PLAYING) transport_update_playing(transport, TRUE); else transport_update_playing(transport, FALSE); }