From 490656ec3edafcb8db38fe63360d81fcc483b750 Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Sat, 12 Mar 2022 14:33:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4mk=5Fmedia=5Finit=5Fmute=5Fau?= =?UTF-8?q?dio=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/include/mk_media.h | 6 ------ api/source/mk_media.cpp | 6 ------ 2 files changed, 12 deletions(-) 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;