-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAudioRecorder.h
38 lines (20 loc) · 917 Bytes
/
AudioRecorder.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
//
// AudioRecorder.h
// Howdy
//
// Created by Edan Lichtenstein on 3/14/14.
// Copyright (c) 2014 Edan Lichtenstein. All rights reserved.
//
#import <AVFoundation/AVFoundation.h>
#import <Foundation/Foundation.h>
@class AudioNoteRecorderViewController;
typedef void (^AudioNoteRecorderFinishBlock) (BOOL wasRecordingTaken, NSURL *recordingURL) ;
@protocol AudioNoteRecorderDelegate <NSObject>
//- (void) audioNoteRecorderDidCancel:(AudioNoteRecorderViewController *)audioNoteRecorder;
//- (void) audioNoteRecorderDidTapDone:(AudioNoteRecorderViewController *)audioNoteRecorder withRecordedURL:(NSURL *) recordedURL;
@end
@interface AudioRecorder : NSObject <AVAudioRecorderDelegate, AVAudioPlayerDelegate>
@property (nonatomic, weak) id<AudioNoteRecorderDelegate> delegate;
@property (nonatomic, copy) AudioNoteRecorderFinishBlock finishedBlock;
- (void) recordStart:(UIButton *) sender;
@end