诸子百家-谁的天下?
诸子百家-谁的天下?
录音播放文件MicSource.mm 录音回调函数中使用AudioUnitRender(...)传入的AudioBufferList应该malloc申请内存空间,然后再free().不然会造成不必要的bug!如下: static OSStatus handleInputBuffer(void *inRefCon, AudioUnitRenderActionFlags *ioActionFlags, const AudioTimeStamp *inTimeStamp, UInt32 inBusNumber, UInt32 inNumberFrames, AudioBufferList *ioData) { videocore::iOS::MicSource* mc =static_cast(inRefCon); AudioBuffer buffer; buffer.mData = NULL; buffer.mDataByteSize = 0; buffer.mNumberChannels...
C++方法里面掉用OC的代理方法,然后被屏蔽了!
目前已经采用python3环境搞了,python2已经被放弃了,求教!!!!