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
#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>
#import <CoreAudio/CoreAudioTypes.h>


@interface RootViewController : UIViewController <AVAudioRecorderDelegate> {
    
  IBOutlet UIButton * btnStart;
  IBOutlet UIButton * btnPlay;
  IBOutlet UIActivityIndicatorView * actSpinner;
  BOOL toggle;
  
  //Variables setup for access in the class:
  NSURL * recordedTmpFile;
  AVAudioRecorder * recorder;
  NSError * error;
  
}

@property (strong,nonatomic) IBOutlet UIActivityIndicatorView * actSpinner;
@property (strong,nonatomic) IBOutlet UIButton * btnStart;
@property (strong,nonatomic) IBOutlet UIButton * btnPlay;


- (IBAction) start_button_pressed;
- (IBAction) play_button_pressed;


@end