ezaudio

How to convert that UnsafeMutablePointer<UnsafeMutablePointer<Float>> variable into AudioBufferList?

ぃ、小莉子 提交于 2019-12-24 05:54:45
问题 I have this EZAudio method in my Swift project, to capture audio from the microphone: func microphone(microphone: EZMicrophone!, hasAudioReceived bufferList: UnsafeMutablePointer<UnsafeMutablePointer<Float>>, withBufferSize bufferSize: UInt32, withNumberOfChannels numberOfChannels: UInt32) { } But what I really need is to have that "bufferList" parameter coming in as an AudioBufferList type, in order to send those audio packets through a socket, just like I did in Objective C: //Objective C

EZAudio output source is not consistant ? and EZAudio Plot Mirror Not Consistant?

陌路散爱 提交于 2019-12-12 02:16:53
问题 Its taking random output source, some time uses the phone hearing speaker some times loud speaker. I implemented the EZAudioPlotGL,sometimes only the top part of it is showing , even though shouldMirror is set to YES at all times. Any Suggestions ? 回答1: I have used "EZAudioPlot.h" class rather than "EZAudioPlotGL.h". which resolves issue of inconsistent wave form. and implemented clear method in "EZAudioPlot.m" class because it does not have implementation or clear method. -(void)clear {