blob: 37cad1abb81f480e4b396130729a91e25a511666 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
// Copyright 2009-2012 The MumbleKit Developers. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
#import <MumbleKit/MKAudio.h>
#import <MumbleKit/MKConnection.h>
#import <AudioUnit/AudioUnit.h>
#import <AudioUnit/AUComponent.h>
#import <AudioToolbox/AudioToolbox.h>
@interface MKAudioInput : NSObject
- (id) initWithSettings:(MKAudioSettings *)settings;
- (void) dealloc;
- (BOOL) setupDevice;
- (BOOL) teardownDevice;
- (void) initializeMixer;
- (void) resetPreprocessor;
- (void) addMicrophoneDataWithBuffer:(short *)input amount:(NSUInteger)nsamp;
- (void) encodeAudioFrame;
- (void) flushCheck:(NSData *)outputBuffer terminator:(BOOL)terminator;
- (void) setForceTransmit:(BOOL)flag;
- (BOOL) forceTransmit;
- (signed long) preprocessorAvgRuntime;
- (float) peakCleanMic;
- (float) speechProbability;
- (void) setSelfMuted:(BOOL)selfMuted;
- (void) setSuppressed:(BOOL)suppressed;
- (void) setMuted:(BOOL)muted;
@end
|