EZAudio icon indicating copy to clipboard operation
EZAudio copied to clipboard

Drawing a timeline along with the waveform

Open ghulammustafa opened this issue 10 years ago • 2 comments

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.

ghulammustafa avatar Aug 06 '14 11:08 ghulammustafa

Did you ever make any progress on this? I was also trying to emulate the Voice Memos functionality.

mnearents avatar Feb 25 '15 07:02 mnearents

Guys, does anyone made this happen? I need this

TareqElMasriDev avatar Jan 30 '17 00:01 TareqElMasriDev