EZAudio
EZAudio copied to clipboard
Drawing a timeline along with the waveform
I'm trying to use EZAudio to get the results like in the Voice Memo application -- the waveform has a ruler timeline on the top and waveform is embedded in a UIScrollView.
If I represent 1 second with 54 pixels (on the ruler), how can I make sure that the waveform generated by EZAudio spans over 54 pixels for 1 second?
EZAudioPlot.m is using following code to calculate the xscale value: double xscale = (frame.size.width) / (float)plotLength;
I suspect that I'll have to update this value to get the desired result, but I just can't figure out exactly what that value should be. Any help would be greatly appreciated.
Did you ever make any progress on this? I was also trying to emulate the Voice Memos functionality.
Guys, does anyone made this happen? I need this