EZAudio
EZAudio copied to clipboard
Problem initializing EZAudioPlotGL
audioPlot = [[EZAudioPlotGL alloc] initWithFrame: CGRectMake (0.0f, 0.0f, 100.0f, 20.0f)];
audioPlot.backgroundColor = [UIColor blackColor];
audioPlot.color = [UIColor buttonColor];
audioPlot.plotType = EZPlotTypeBuffer;
audioPlot.shouldFill = YES;
audioPlot.shouldMirror = YES;
[audioPlotScrollView addSubview: audioPlot];
results in this:
Failed to bind EAGLDrawable: <CAEAGLLayer: 0x174421a80> to GL_RENDERBUFFER 1
Failed to make complete multisample framebuffer object 8cd6
Failed to make complete framebuffer object 8cd6
Initializing an EZAudioPlot
instance using the code above works.
I'm seeing this too when trying to plot a file from ipod-library. I even tried copying the file into NSDocumentDirectory but it doesn't seem to help.
If it helps this looks like it's the same error (although caused by different problem): http://stackoverflow.com/questions/8990770/failed-to-make-complete-framebuffer-object-8cd6-ios-programmatically-created-o
im getting the same issue, in my case i'm using the project as Framework, and EZAudio is part of the framework.
In my case I had not give frame to EZAudioPlotGL, giving the frame in init solve the issue for me.