//
//  AudioRecPlayViewController.h
//  EAMNext
//
//  Created by Ramakrishna Pasupuleti on 10/18/17.
//
//

#import <UIKit/UIKit.h>
#import "BaseModalViewController.h"
@class DocumentPanelViewController;
typedef enum AudioRecPlayMode {
    AudioRecordMode = 0,
    AudioRecordStopMode = 1,
    AudioPlayMode = 10,
    AudioPlayStopMode = 11
} AudioRecPlayMode;

@protocol AudioRecPlayViewControllerDelegate
-(void)audioRecordAttached:(NSString *)fileName;
-(void)audioRecordDismiss;
@end


@interface AudioRecPlayViewController : UIViewController

@property NSString *playAudioFileName;
-(id)initWithAudioRecorderTitle:(NSString *)title showHeaderView:(BOOL)isShowHeader;
-(id)initWithAudioPlayerTitle:(NSString *)title showHeaderView:(BOOL)isShowHeader;
-(void) releaseRecorderAndPlayer;
-(void)saveRecording;
@property (unsafe_unretained) id<AudioRecPlayViewControllerDelegate> delegate;

@end
