123456789101112131415161718192021222324252627282930313233343536 |
- #ifndef __BT_APP_SINK_H__
- #define __BT_APP_SINK_H__
- #include <stdint.h>
- #include "bt_app_core.h"
- typedef enum { BT_SINK_CONNECTED, BT_SINK_DISCONNECTED, BT_SINK_AUDIO_STARTED, BT_SINK_AUDIO_STOPPED, BT_SINK_PLAY, BT_SINK_STOP, BT_SINK_PAUSE,
- BT_SINK_RATE, BT_SINK_VOLUME, BT_SINK_METADATA, BT_SINK_PROGRESS } bt_sink_cmd_t;
-
- typedef bool (*bt_cmd_vcb_t)(bt_sink_cmd_t cmd, va_list args);
- typedef void (*bt_data_cb_t)(const uint8_t *data, uint32_t len);
- void bt_sink_init(bt_cmd_vcb_t cmd_cb, bt_data_cb_t data_cb);
- void bt_sink_deinit(void);
- void bt_disconnect(void);
- #endif
|