Re: Different behavior between simulator and device
Re: Different behavior between simulator and device
- Subject: Re: Different behavior between simulator and device
- From: Jokke Heikkila <email@hidden>
- Date: Fri, 15 Jul 2011 00:07:49 +0300
On 14 July 2011 19:14, Bruce Meagher <email@hidden> wrote:
> One possibility might be that you are incorrectly setting up the audio session. From previous experience I believe the simulator ignores the audio session category, whereas it is definitely required on the device.
I should have the session correctly setup, below is how I'm doing it.
- (void)initializeAudioSession {
NSError *err = nil;
AVAudioSession *session = [AVAudioSession sharedInstance];
[session setPreferredHardwareSampleRate:sampleRate error:&err];
[session setCategory:AVAudioSessionCategoryPlayAndRecord error:&err];
[session setActive:YES error:&err];
sampleRate = [session currentHardwareSampleRate];
[self realFFTSetup];
}
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden