22 lines
675 B
C
22 lines
675 B
C
|
#ifndef _APP_AUDIO_H
|
||
|
#define _APP_AUDIO_H
|
||
|
|
||
|
#include <stdint.h>
|
||
|
#include <stdbool.h>
|
||
|
|
||
|
#include "audio_common.h"
|
||
|
#include "audio_scene.h"
|
||
|
|
||
|
void app_audio_a2dp_sink_start(audio_type_t audio_type, uint32_t sample_rate);
|
||
|
void app_audio_a2dp_sink_stop(void);
|
||
|
void app_audio_a2dp_sink_play(uint8_t *buffer, uint32_t length);
|
||
|
|
||
|
void app_audio_sco_start(audio_type_t audio_type, audio_sence_report_encoded_frame report_enc_cb, void *report_enc_arg);
|
||
|
void app_audio_sco_stop(void);
|
||
|
void app_audio_sco_recv(bool valid, uint8_t audio_type, uint8_t *buffer, uint32_t length);
|
||
|
|
||
|
void app_audio_voice_recognize_start(void);
|
||
|
void app_audio_voice_recognize_stop(void);
|
||
|
|
||
|
#endif // _APP_AUDIO_H
|