Barrie Reader
Barrie Reader

Reputation: 10715

How do I set the sample rate of an audio recording within Objective C?

How do I set the sample rate of an audio recording within Objective C?

Upvotes: 0

Views: 457

Answers (1)

Neil Knight
Neil Knight

Reputation: 48537

NSMutableDictionary *settings = [[NSMutableArray alloc] init];    
[settings setValue: [NSNumber numberWithFloat:44100.0] forKey:AVSampleRate];

This should work.

Upvotes: 2

Related Questions