Skip to content

dr-skot/AudioMeterView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AudioMeterView

Written in RubyMotion. Based on the level meters in Apple's Speak Here example app.

Synopsis

@meter = AudioMeterView.alloc.initWithFrame frame
view.addSubview(@meter)
@meter.input = @audioRecorder

AudioMeterView takes as input an AVAudioRecorder or any other object that responds to

updateMeters

and either

averagePowerForChannel(channel)
peakPowerForChannel(channel)

or

averagePower
peakPower

The latter methods are used if they exist. Otherwise the former methods are called, with a channel of 0 unless you explicitly set the AudioMeterView's channel attribute.

The meter begins displaying when you set the AudioMeterView's input to an appropriate object. When you set input to nil, the meter lights gradually fall to zero.

screenshot

About

level meter for audio input for iOS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages