Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gyetvan-andras/cocoa-waveform
A cocoa audio player component which displays the waveform of the audio file.
https://github.com/gyetvan-andras/cocoa-waveform
Last synced: 3 months ago
JSON representation
A cocoa audio player component which displays the waveform of the audio file.
- Host: GitHub
- URL: https://github.com/gyetvan-andras/cocoa-waveform
- Owner: gyetvan-andras
- Created: 2012-06-28T17:30:20.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-07-22T06:53:56.000Z (almost 11 years ago)
- Last Synced: 2024-01-18T11:42:51.584Z (5 months ago)
- Language: Objective-C
- Size: 4.3 MB
- Stars: 259
- Watchers: 30
- Forks: 58
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Lists
- awesome-stars - cocoa-waveform - A cocoa audio player component which displays the waveform of the audio file. (Objective-C)
README
# Cocoa Waveform Audio Player Control #
A cocoa audio player component which displays the waveform of the audio file.
## How to use it ? ##
### OSX
Add a view in IB and set the class to WaveFormViewOSX
### iOS
Add a view in IB and set the class to WaveFormViewIOSThen 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 http://www.subfurther.com/blog/2010/12/13/from-ipod-library-to-pcm-samples-in-far-fewer-steps-than-were-previously-necessary/
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 http://supermegaultragroovy.com/2009/10/06/drawing-waveforms/
## License ##
This software is free.