Merge pull request #138 from chrisgarrity/reduce-sound-sizes

Limit size of sounds
This commit is contained in:
chrisgarrity 2017-07-17 16:01:33 -04:00 committed by GitHub
commit 5c2cd3ce23
2 changed files with 3 additions and 3 deletions

View file

@ -61,9 +61,9 @@ NSString *canRecord;
NSError *err;
NSDictionary *settings = [NSDictionary dictionaryWithObjectsAndKeys:
[NSNumber numberWithInt: kAudioFormatLinearPCM], AVFormatIDKey,
[NSNumber numberWithFloat: 22050.0], AVSampleRateKey,
[NSNumber numberWithFloat: 16000.0], AVSampleRateKey,
[NSNumber numberWithInt: 1], AVNumberOfChannelsKey,
[NSNumber numberWithInt: 16], AVLinearPCMBitDepthKey,
[NSNumber numberWithInt: 8], AVLinearPCMBitDepthKey,
nil];
recorder = [[ AVAudioRecorder alloc] initWithURL:url settings:settings error:&err];
if (err) {

View file

@ -173,7 +173,7 @@ export default class Record {
if (isRecording) {
Record.stopRecording();
}
}, 60000);
}, 30000);
}
}