我在大约4个不同的视图控制器中实现了EZAudioPlotGL。即使shouldMirror一直设置为YES,有时也只显示其顶部。有什么建议吗?
发布于 2015-04-28 19:57:03
我使用了"EZAudioPlot.h“类而不是"EZAudioPlotGL.h”。解决了波形不一致的问题,与"EZAudioPlotGL.h“
并在"EZAudioPlot.m“类中实现了clear方法,因为它没有实现或clear方法。
-(void)clear
{
float empty[_changingHistorySize];
// Figure out better way to do this
for(int i = 0; i < _changingHistorySize; i++ )
{
empty[i] = 0.0f;
}
for(int i = 0; i < _scrollHistoryLength; i++)
{
_scrollHistory[i] = 0.0f;
}
_scrollHistoryIndex = 0;
[self setSampleData:_scrollHistory
length:(!_setMaxLength?kEZAudioPlotMaxHistoryBufferLength:_scrollHistoryLength)];
}https://stackoverflow.com/questions/29391860
复制相似问题