source: orbit/iOS/Orbit/Orbit/SignalConverter.h @ 6db346c

Servo
Last change on this file since 6db346c was 6db346c, checked in by Steve Castellotti <sc@…>, 8 years ago
  • Scoring fields added
  • Tilt Control widgets added
  • Property mode set to 100644
File size: 1.3 KB
Line 
1//
2//  SignalConverter.h
3//  orbit
4//
5//  Copyright (c) 2013 Puzzlebox Productions, LLC. All rights reserved.
6//  Originally created by Jonathon Horsman.
7//
8//  This code is released under the GNU Public License (GPL) version 2
9//  For more information please refer to http://www.gnu.org/copyleft/gpl.html
10//
11
12#import <Foundation/Foundation.h>
13//#import <MediaPlayer/MediaPlayer.h>
14#import <AVFoundation/AVFoundation.h>
15#import "TGAccessoryManager.h"
16#import "TGAccessoryDelegate.h"
17#import "SignalConverterDelegate.h"
18#import "AudioGenerator.h"
19
20#define USE_AUDIO_GENERATOR 1
21
22
23@interface SignalConverter : NSObject <TGAccessoryDelegate> {
24   
25#if USE_AUDIO_GENERATOR
26   // Generate Signal
27   AudioGenerator *audioPlayer;
28#else
29   // Play WAV
30   AVAudioPlayer *audioPlayer;
31#endif
32}
33
34@property (weak) id <SignalConverterDelegate> delegate;
35@property (nonatomic) float attentionThreshold;
36@property (nonatomic) float meditationThreshold;
37@property (nonatomic) BOOL running;
38@property (nonatomic) BOOL testing;
39
40
41- (void) setValuesForAttention:(float) attention meditation:(float) meditation;
42- (BOOL) startProcessing;
43- (void) stopProcessing;
44- (void) appStopped;
45- (BOOL) isBluetoothReady;
46- (BOOL) isVolumeMax;
47- (BOOL) isAudioJackPlugged;
48- (void) setYaw:(int)y throttle:(int)t pitch:(int)p;
49- (void) playTestSound;
50- (void) stopTestSound;
51- (void) prepareAudio;
52
53@end
Note: See TracBrowser for help on using the repository browser.