Advertisement
Guest User

Untitled

a guest
Apr 28th, 2015
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. -(void)clear
  2. {
  3. float empty[_changingHistorySize];
  4. // Figure out better way to do this
  5. for(int i = 0; i < _changingHistorySize; i++ )
  6. {
  7. empty[i] = 0.0f;
  8. }
  9. for(int i = 0; i < _scrollHistoryLength; i++)
  10. {
  11. _scrollHistory[i] = 0.0f;
  12. }
  13. _scrollHistoryIndex = 0;
  14.  
  15. [self setSampleData:_scrollHistory
  16. length:(!_setMaxLength?kEZAudioPlotMaxHistoryBufferLength:_scrollHistoryLength)];
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement