mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2026-01-31 14:51:11 +03:00
tweak BT + first AirPlay commit
This commit is contained in:
31
components/raop/raop_sink.h
Normal file
31
components/raop/raop_sink.h
Normal file
@@ -0,0 +1,31 @@
|
||||
/*
|
||||
This example code is in the Public Domain (or CC0 licensed, at your option.)
|
||||
|
||||
Unless required by applicable law or agreed to in writing, this
|
||||
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
||||
CONDITIONS OF ANY KIND, either express or implied.
|
||||
*/
|
||||
|
||||
#ifndef RAOP_SINK_H
|
||||
#define RAOP_SINK_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
typedef enum { RAOP_STREAM, RAOP_PLAY, RAOP_FLUSH, RAOP_PAUSE, RAOP_STOP, RAOP_VOLUME } raop_event_t ;
|
||||
|
||||
typedef void (*raop_cmd_cb_t)(raop_event_t event, void *param);
|
||||
typedef void (*raop_data_cb_t)(const u8_t *data, size_t len);
|
||||
|
||||
/**
|
||||
* @brief init sink mode (need to be provided)
|
||||
*/
|
||||
|
||||
void raop_sink_init(raop_cmd_cb_t cmd_cb, raop_data_cb_t data_cb);
|
||||
|
||||
/**
|
||||
* @brief init sink mode (need to be provided)
|
||||
*/
|
||||
|
||||
void raop_sink_cmd(raop_event_t event, void *param);
|
||||
|
||||
#endif /* RAOP_SINK_H*/
|
||||
Reference in New Issue
Block a user