EZAudio icon indicating copy to clipboard operation
EZAudio copied to clipboard

EZAudioPlotGL freezes with a UIScrollview

Open ghost opened this issue 9 years ago • 1 comments

Hello,

thanks for the library that is great. Most useful.

I am having a glitch with the AudioPlotGL. I have my audio plot in a view. Next to it, there is a UIScrollView in a different view. When I scroll up or down the UIScrollView, the rendering of the AudioPlotGL freezes. It resumes when the scrollview is static. Nothing drastic here, but I just can't work it out.

I have done some research and have therefore found to implement two solutions:

  • the CADisplayLink solution as explained in the WWDC 2012 "Enhancing user experience with scroolviews"
  • the dispatch_async with semaphore solution (http://stackoverflow.com/questions/5944050/cadisplaylink-opengl-rendering-breaks-uiscrollview-behaviour)

But unfortunately those two solutions only work when the Render method is "self-contained". In EZAudio the AudioPlotGL Render method needs the Audio Buffers as input values. I have tried to store the received audiobuffer before rendering it in a separate serial queue, but no luck.

Has anyone experienced the same issue? Thanks.

Pascal

ghost avatar Sep 25 '14 14:09 ghost

Have you found a way for this?

dkavraal avatar Jun 04 '16 12:06 dkavraal