inline void RtmpParser::onGetAAC(const char* pcData, int iLen, uint32_t ui32TimeStamp) { //添加adts头 memcpy(m_adts.data + 7, pcData, iLen); m_adts.aac_frame_length = 7 + iLen; m_adts.timeStamp = ui32TimeStamp; writeAdtsHeader(m_adts, m_adts.data); { lock_guard<recursive_mutex> lck(m_mtxCB); if (onAudio) { onAudio(m_adts); } } m_adts.aac_frame_length = 7; }
JNIEXPORT void JNICALL Java_com_n0n3m4_q3e_Q3EJNI_requestAudioData(JNIEnv *env, jclass c) { onAudio(); }