objective c - EZAudio output source is not consistant ? and EZAudio Plot Mirror Not Consistant? -


its taking random output source, time uses phone hearing speaker times loud speaker.

i implemented ezaudioplotgl,sometimes top part of showing , though shouldmirror set yes @ times. suggestions ?

i have used "ezaudioplot.h" class rather "ezaudioplotgl.h". resolves issue of inconsistent wave form.

and implemented clear method in "ezaudioplot.m" class because not have implementation or clear method.

  -(void)clear {     float              empty[_changinghistorysize];     // figure out better way     for(int = 0; < _changinghistorysize; i++ )     {         empty[i] = 0.0f;     }     for(int = 0; < _scrollhistorylength; i++)     {         _scrollhistory[i] = 0.0f;     }     _scrollhistoryindex = 0;      [self setsampledata:_scrollhistory                  length:(!_setmaxlength?kezaudioplotmaxhistorybufferlength:_scrollhistorylength)]; }