fish-red / CMEqualizerIndicatorView

Indicator view used to represent the play/pause/stop state of audio, compatible with OS X.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CMEqualizerIndicatorView

CMEqualizerIndicatorView is an OS X library used to visually indicate the play, pause, or stop state of audio. CMEqualizerIndicatorView is designable in Interface Builder for quicker mockups.

Getting Started

  • Download CMEqualizerIndicatorView and try the included example project.
  • Copy the CMEqualizerIndicatorView directory into your project
  • Import the header file at the top of your document, like so: #import "CMEqualizerIndicatorView.h"

Using CMEqualizerIndicatorView

Quick demonstration.

CMEqualizerIndicatorView *equalizerIndicatorView = [[CMEqualizerIndicatorView alloc] initWithFrame: CGRectMake(0,0,16,16)];
equlizerIndicatorView.tintColor = [NSColor blueColor];
[equalizerIndicatorView startAnimated:YES]; // audio begins playing
[equalizerIndicatorView pauseAnimated:YES]; // audio is paused
[equalizerIndicatorView stopAnimated:YES]; // audio ends playback

There's also an example project in the repo.

Demo

Check out this video demo.

Credits

CMEqualizerView is a fork of Alex Givens's AGEqualizerView for iOS.

About

Indicator view used to represent the play/pause/stop state of audio, compatible with OS X.

License:MIT License


Languages

Language:Objective-C 98.3%Language:Ruby 1.7%