它采用随机输出源,有的时候用电话听筒,有时用扬声器。
我实现了EZAudioPlotGL,有时只显示它的顶部,尽管shouldMirror总是设置为YES。有什么建议吗?
发布于 2015-04-28 11:55:00
我使用了"EZAudioPlot.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/29910476
复制相似问题