mirror of
https://github.com/scratchfoundation/scratchjr.git
synced 2024-11-28 18:15:37 -05:00
Merge pull request #138 from chrisgarrity/reduce-sound-sizes
Limit size of sounds
This commit is contained in:
commit
5c2cd3ce23
2 changed files with 3 additions and 3 deletions
|
@ -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) {
|
||||
|
|
|
@ -173,7 +173,7 @@ export default class Record {
|
|||
if (isRecording) {
|
||||
Record.stopRecording();
|
||||
}
|
||||
}, 60000);
|
||||
}, 30000);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue