mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-25 20:27:34 +08:00
实现输入PCM帧的接口
实现输入PCM帧的接口
This commit is contained in:
parent
791c773ae0
commit
f0a538d37d
@ -157,6 +157,15 @@ API_EXPORT void API_CALL mk_media_input_aac(mk_media ctx, void *data, int len, u
|
|||||||
(*obj)->getChannel()->inputAAC((char *) data, len, dts, (char *) adts);
|
(*obj)->getChannel()->inputAAC((char *) data, len, dts, (char *) adts);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef ENABLE_FAAC
|
||||||
|
API_EXPORT void API_CALL mk_media_input_PCM(mk_media ctx, void *data , int len, uint32_t pts)
|
||||||
|
{
|
||||||
|
assert(ctx && data && len > 0);
|
||||||
|
MediaHelper::Ptr* obj = (MediaHelper::Ptr*) ctx;
|
||||||
|
(*obj)->getChannel()->inputPCM((char*)data, len, pts);
|
||||||
|
}
|
||||||
|
#endif //ENABLE_FAAC
|
||||||
|
|
||||||
API_EXPORT void API_CALL mk_media_input_g711(mk_media ctx, void* data, int len, uint32_t dts){
|
API_EXPORT void API_CALL mk_media_input_g711(mk_media ctx, void* data, int len, uint32_t dts){
|
||||||
assert(ctx && data && len > 0);
|
assert(ctx && data && len > 0);
|
||||||
MediaHelper::Ptr* obj = (MediaHelper::Ptr*) ctx;
|
MediaHelper::Ptr* obj = (MediaHelper::Ptr*) ctx;
|
||||||
|
Loading…
Reference in New Issue
Block a user