Skip to content

Commit

Permalink
Merge pull request #5 from SensingKit/next
Browse files Browse the repository at this point in the history
v0.4.1
  • Loading branch information
minoskt committed Oct 17, 2015
2 parents a3f2742 + 1f82268 commit 10da2ed
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

### 0.4.1 (October 16, 2015)
- Added a restriction of 4 hours when recording audio using Microphone sensor.

### 0.4.0 (October 11, 2015)
- Added Documentation using appledoc generator.
- Added support for iOS 9.
Expand Down
4 changes: 2 additions & 2 deletions SensingKit/SKMicrophone.m
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,8 @@ - (void)startSensing
{
[super startSensing];

// Start recording
if (![self.recorder record])
// Start recording (maximum 4 hours)
if (![self.recorder recordForDuration:14400])
{
NSLog(@"Recording using Microphone sensor could not be started.");
// TODO: In the future, report this as NSError.
Expand Down
2 changes: 1 addition & 1 deletion SensingKit/SKSensorType.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ typedef NS_ENUM(NSUInteger, SKSensorType)
EddystoneProximity,

/**
* Microphone sensor can be used to record audio from the environment by converting sound into electrical signal.
* Microphone sensor can be used to record audio from the environment (up to 4 hours) by converting sound into electrical signal.
*/
Microphone
};

0 comments on commit 10da2ed

Please sign in to comment.