source: orbit/iOS/Orbit/Orbit/SignalConverter.h @ c9b9edd

Servo
Last change on this file since c9b9edd was c9b9edd, checked in by Steve Castellotti <sc@…>, 6 years ago

iOS:

  • Signal generation update by Hao Zhang
  • Property mode set to 100644
File size: 1.2 KB
Line 
1//
2//  SignalConverter.h
3//  orbit
4//
5//  Created by Jonathon Horsman on 11/07/2013.
6//  Copyright (c) 2013 Puzzlebox Productions, LLC. All rights reserved.
7//
8
9#import <Foundation/Foundation.h>
10//#import <MediaPlayer/MediaPlayer.h>
11#import <AVFoundation/AVFoundation.h>
12#import "TGAccessoryManager.h"
13#import "TGAccessoryDelegate.h"
14#import "SignalConverterDelegate.h"
15#import "AudioGenerator.h"
16
17#define USE_AUDIO_GENERATOR 1
18
19
20@interface SignalConverter : NSObject <TGAccessoryDelegate> {
21   
22#if USE_AUDIO_GENERATOR
23   // Generate Signal
24   AudioGenerator *audioPlayer;
25#else
26   // Play WAV
27   AVAudioPlayer *audioPlayer;
28#endif
29}
30
31@property (weak) id <SignalConverterDelegate> delegate;
32@property (nonatomic) float attentionThreshold;
33@property (nonatomic) float meditationThreshold;
34@property (nonatomic) BOOL running;
35@property (nonatomic) BOOL testing;
36
37
38- (void) setValuesForAttention:(float) attention meditation:(float) meditation;
39- (BOOL) startProcessing;
40- (void) stopProcessing;
41- (void) appStopped;
42- (BOOL) isBluetoothReady;
43- (BOOL) isVolumeMax;
44- (BOOL) isAudioJackPlugged;
45- (void) setYaw:(int)y throttle:(int)t pitch:(int)p;
46- (void) playTestSound;
47- (void) stopTestSound;
48- (void) prepareAudio;
49
50@end
Note: See TracBrowser for help on using the repository browser.