EZAudio
EZAudio copied to clipboard
EZAudioPlotGL freezes with a UIScrollview
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
Have you found a way for this?