EZAudio icon indicating copy to clipboard operation
EZAudio copied to clipboard

Audioplot not updating real device, working in simulator only

Open karuppub opened this issue 8 years ago • 3 comments

hai, i'm using Ezaudio plot to display the wave while recording audio, but it's not updating while i recording using real device, but working correctly in simulator, i don't kow what is the cause.

please help me.

karuppub avatar Feb 19 '16 05:02 karuppub

I am also having this same problem. EZAudioPlotGL are drawn as expected, Only simulator. below EZMicrophone Delegate Method doesn't woek. However, func microphone(microphone: EZMicrophone!, changedPlayingState isPlaying: Bool) is work.

func microphone(microphone: EZMicrophone!, hasAudioReceived buffer: UnsafeMutablePointer<UnsafeMutablePointer<Float>>, withBufferSize bufferSize: UInt32, withNumberOfChannels numberOfChannels: UInt32) 
func microphone(microphone: EZMicrophone!, hasBufferList bufferList: UnsafeMutablePointer<AudioBufferList>, withBufferSize bufferSize: UInt32, withNumberOfChannels numberOfChannels: UInt32)
Xcode: Version 7.3
Swift 2.2
EZAudio 1.1.5
iOS : iPhone6s(OS 9.2.1)

shoheiyokoyama avatar May 04 '16 14:05 shoheiyokoyama

I've discovered that it only happens when the AVAudioSession category is set to AVAudioSessionCategoryPlayback. Please AVAudioSession category set to AVAudioSessionCategoryRecord. EZAudioPlotGL are drawn as expected.

shoheiyokoyama avatar May 05 '16 00:05 shoheiyokoyama

Hi @shoheiyokoyama thanks for your reply, will try and check

karuppub avatar May 05 '16 03:05 karuppub