去除mk_media_init_mute_audio接口

This commit is contained in:
xiongziliang 2022-03-12 14:33:05 +08:00
parent 1cf0a0cc20
commit 490656ec3e
2 changed files with 0 additions and 12 deletions

View File

@ -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); 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完毕后调用此函数 * h264/h265/aac完毕后调用此函数
* track()ZLMediaKit不知道后续是否还要添加track3 * track()ZLMediaKit不知道后续是否还要添加track3

View File

@ -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); 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){ API_EXPORT void API_CALL mk_media_init_complete(mk_media ctx){
assert(ctx); assert(ctx);
MediaHelper::Ptr *obj = (MediaHelper::Ptr *) ctx; MediaHelper::Ptr *obj = (MediaHelper::Ptr *) ctx;