Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
28 lines (19 sloc) 1.1 KB

Cocoa Waveform Audio Player Control

A cocoa audio player component which displays the waveform of the audio file.

How to use it ?


Add a view in IB and set the class to WaveFormViewOSX


Add a view in IB and set the class to WaveFormViewIOS

Then you can use:

  • (void) openAudioURL:(NSURL *)url;

Note on iOS: on iOS you should provide a direct URL to the audio data, you cannot use URL obtained from MPMediaItemPropertyAssetURL. You should extract the content from AVAsset. More on this you can read In the sample application you should add an mp3 file, named sample.mp3 to the iOS app, because I removed it to avoid legal concerns.

How to hack it ?

If you would like to change visual appearance you should take a look at WaveFormView???:drawRect and hack as you wish.

And the Oscar goes to …

This component is inspired by an article found on


This software is free.