Skip to content

Commit

Permalink
add default valut for duration in AudioCapture extension
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrys committed Oct 11, 2012
1 parent ed95d0f commit db60b87
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Expand Up @@ -28,7 +28,7 @@ public static Audiocapture getInstance() {
private String mCallbackURL = null;
private String mDestination = null;
private String mName = null;
private int mDuration = 0;
private int mDuration = 20000;
private boolean mIsSaveFile = false;

private ExtAudioRecorder mRecorder = null;
Expand Down
Expand Up @@ -28,6 +28,7 @@
@property (readwrite, copy) NSString *callbackURL;
@property (readwrite, copy) NSString *destination;
@property (readwrite, copy) NSString *recorderFilePath;
@property (readwrite, copy) int duration;

+ (RhoAudioCapture*) getInstance;

Expand Down
Expand Up @@ -10,11 +10,12 @@

@implementation RhoAudioCapture

@synthesize callbackURL, destination, recorderFilePath;
@synthesize callbackURL, destination, recorderFilePath, duration;

+ (RhoAudioCapture*) getInstance {
if (ourRhoAudioCapture == nil) {
ourRhoAudioCapture = [[RhoAudioCapture alloc] init];
ourRhoAudioCapture.duration = 20000;
}
return ourRhoAudioCapture;
}
Expand Down

0 comments on commit db60b87

Please sign in to comment.