-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathAudioView.h
More file actions
32 lines (28 loc) · 808 Bytes
/
AudioView.h
File metadata and controls
32 lines (28 loc) · 808 Bytes
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
//
// AudioView.h
// Recorder
//
// Created by Daniel Ringwalt on 11/29/11.
//
#import <Cocoa/Cocoa.h>
#import <QuartzCore/QuartzCore.h>
@interface AudioVolumeView : NSView {
double volume, peakVolume;
CALayer *peakLayer, *volumeLayer;
}
@property (assign) double volume;
@property (assign) double peakVolume;
@end
@interface AudioView : NSView {
double position, length;
BOOL isRecording;
CALayer *progressLayer;
AudioVolumeView *volumeView;
double peakAudio, peakTime;
}
@property (assign) double position;
@property (assign) double length;
@property (assign, getter=isRecording, setter=setIsRecording:) BOOL recording;
@property (strong) IBOutlet AudioVolumeView *volumeView;
- (void)displayPcmSamples: (void *)samples count: (long)count startTime: (double)start endTime: (double)end;
@end