diff --git a/api/include/mk_media.h b/api/include/mk_media.h index 14d19938..57b3e187 100755 --- a/api/include/mk_media.h +++ b/api/include/mk_media.h @@ -61,12 +61,6 @@ API_EXPORT int API_CALL mk_media_init_video(mk_media ctx, int codec_id, int widt */ API_EXPORT int API_CALL mk_media_init_audio(mk_media ctx, int codec_id, int sample_rate, int channels, int sample_bit); -/** - * 添加静音音频轨道 - * @param ctx 对象指针 - */ -API_EXPORT void API_CALL mk_media_init_mute_audio(mk_media ctx); - /** * 初始化h264/h265/aac完毕后调用此函数, * 在单track(只有音频或视频)时,因为ZLMediaKit不知道后续是否还要添加track,所以会多等待3秒钟 diff --git a/api/source/mk_media.cpp b/api/source/mk_media.cpp index 3ed7c60c..58f83706 100755 --- a/api/source/mk_media.cpp +++ b/api/source/mk_media.cpp @@ -200,12 +200,6 @@ API_EXPORT int API_CALL mk_media_init_audio(mk_media ctx, int codec_id, int samp return (*obj)->getChannel()->initAudio(info); } -API_EXPORT void API_CALL mk_media_init_mute_audio(mk_media ctx) { - assert(ctx); - MediaHelper::Ptr *obj = (MediaHelper::Ptr *) ctx; - (*obj)->getChannel()->addMuteAudioTrack(); -} - API_EXPORT void API_CALL mk_media_init_complete(mk_media ctx){ assert(ctx); MediaHelper::Ptr *obj = (MediaHelper::Ptr *) ctx;