Skip to content

Commit 10da2ed

Browse files
committed
Merge pull request #5 from SensingKit/next
v0.4.1
2 parents a3f2742 + 1f82268 commit 10da2ed

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
### 0.4.1 (October 16, 2015)
4+
- Added a restriction of 4 hours when recording audio using Microphone sensor.
5+
36
### 0.4.0 (October 11, 2015)
47
- Added Documentation using appledoc generator.
58
- Added support for iOS 9.

SensingKit/SKMicrophone.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@ - (void)startSensing
185185
{
186186
[super startSensing];
187187

188-
// Start recording
189-
if (![self.recorder record])
188+
// Start recording (maximum 4 hours)
189+
if (![self.recorder recordForDuration:14400])
190190
{
191191
NSLog(@"Recording using Microphone sensor could not be started.");
192192
// TODO: In the future, report this as NSError.

SensingKit/SKSensorType.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ typedef NS_ENUM(NSUInteger, SKSensorType)
8888
EddystoneProximity,
8989

9090
/**
91-
* Microphone sensor can be used to record audio from the environment by converting sound into electrical signal.
91+
* Microphone sensor can be used to record audio from the environment (up to 4 hours) by converting sound into electrical signal.
9292
*/
9393
Microphone
9494
};

0 commit comments

Comments
 (0)