-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathGRFSoundObjects.h
52 lines (40 loc) · 1.33 KB
/
GRFSoundObjects.h
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//
// GRFSoundObjects.h
// GaborRFMap
//
// Created by Murty V P S Dinavahi on 25/04/15.
//
//
#import <Foundation/Foundation.h>
// Define AudStimDesc struct here
typedef struct AudStimDesc {
int stimDurationMS;
int protocolType;
int stimType;
float azimuthDeg;
float elevationDeg;
float spatialFreqCPD;
float directionDeg;
float contrastPC;
float temporalFreqHz;
} AudStimDesc;
@interface GRFSoundObjects : NSObject <NSSoundDelegate>
// A GRFSoundObjects object consists of the following objects within it:
{
int stimulusDuration;
BOOL playerDone;
float stimVolume;
NSSound *player;
NSString *soundName;
NSString *soundFile;
NSString *soundsDir;
}
// Only the following Methods of this object are accessible to other classes.
-(id)init;
-(void)setDir:(NSString*)dir;
-(void)getSoundForGabor:(AudStimDesc)pSD;
-(void)startPlay;
-(void)stopPlay;
// NSSoundDelegate method {-(void)sound:(NSSound *)sound didFinishPlaying:(BOOL)aBool} is declared in NSSound and should need not be redeclared here. However, it needs to be implemented in GRFSoundObjects.m
// Protocol-specific methods are declared in GRFSoundObjects.m, and are not accessible to other classes
@end