Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 33 lines (25 sloc) 0.626 kB
2e3a7b9 @stephencelis First version.
authored
1 //
72530fa @stephencelis Fixed bug where audio queue wasn't properly being set to nil after di…
authored
2 // SCListener 1.0.1
2e3a7b9 @stephencelis First version.
authored
3 // http://github.com/stephencelis/sc_listener
4 //
5 // (c) 2009-* Stephen Celis, <stephen@stephencelis.com>.
6 // Released under the MIT License.
7 //
8
9 #import <Foundation/Foundation.h>
10 #import <AudioToolbox/AudioQueue.h>
11 #import <AudioToolbox/AudioServices.h>
12
13 @interface SCListener : NSObject {
14 AudioQueueLevelMeterState *levels;
15
16 AudioQueueRef queue;
17 AudioStreamBasicDescription format;
18 Float64 sampleRate;
19 }
20
21 + (SCListener *)sharedListener;
22
23 - (void)listen;
24 - (BOOL)isListening;
25 - (void)pause;
26 - (void)stop;
27
28 - (Float32)averagePower;
29 - (Float32)peakPower;
30 - (AudioQueueLevelMeterState *)levels;
31
32 @end
Something went wrong with that request. Please try again.