diff --git a/components/drivers/audio/audio_pipe.h b/components/drivers/audio/audio_pipe.h index 2c9d5d3e1..d40d4234b 100644 --- a/components/drivers/audio/audio_pipe.h +++ b/components/drivers/audio/audio_pipe.h @@ -59,7 +59,10 @@ rt_err_t rt_audio_pipe_init(struct rt_audio_pipe *pipe, enum rt_audio_pipe_flag flag, rt_uint8_t *buf, rt_size_t size); - - +rt_err_t rt_audio_pipe_detach(struct rt_audio_pipe *pipe); +#ifdef RT_USING_HEAP +rt_err_t rt_audio_pipe_create(const char *name, enum rt_audio_pipe_flag flag, rt_size_t size); +void rt_audio_pipe_destroy(struct rt_audio_pipe *pipe); +#endif #endif