Permalink
Browse files

add default valut for duration in AudioCapture extension

  • Loading branch information...
1 parent ed95d0f commit db60b87334e4de70f64fe2e897018c1d5fcee9d5 @dmitrys dmitrys committed Oct 11, 2012
@@ -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;
@@ -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;
@@ -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;
}

0 comments on commit db60b87

Please sign in to comment.