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

Servo
Last change on this file since fc960da was fc960da, checked in by Steve Castellotti <sc@…>, 7 years ago
  • Property mode set to 100644
File size: 1.9 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 (nonatomic, retain) [NSArray arrayWithObjects:[NSNumber numberWithFloat:6.9]] *rawEEG;
35//Number[] rawEEG = new Number[512];
36
37//@property (nonatomic, retain) [NSArray arrayWithObjects:[NSNumber numberWithFloat:6.9]] *historyAttention;
38
39//@property (nonatomic, retain) NSArray *rawEEG;
40//@property (nonatomic, retain) NSArray *historyAttention;
41//@property (nonatomic, retain) NSArray *historyMeditation;
42
43//@property (nonatomic, retain) int historyAttention[30];
44//@property (nonatomic, retain) historyMeditation;
45
46@property (weak) id <SignalConverterDelegate> delegate;
47@property (nonatomic) float attentionThreshold;
48@property (nonatomic) float meditationThreshold;
49@property (nonatomic) BOOL running;
50@property (nonatomic) BOOL testing;
51
52
53- (void) setValuesForAttention:(float) attention meditation:(float) meditation;
54- (BOOL) startProcessing;
55- (void) stopProcessing;
56- (void) appStopped;
57- (BOOL) isBluetoothReady;
58- (BOOL) isVolumeMax;
59- (BOOL) isAudioJackPlugged;
60- (void) setControlSettings:(int)y throttle:(int)t pitch:(int)p;
61- (void) playTestSound;
62- (void) stopTestSound;
63- (void) prepareAudio;
64
65//- (int[30]) getAttentionHistory;
66- (int) getAttentionHistory:(int) index;
67
68@end
Note: See TracBrowser for help on using the repository browser.