• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Different behavior between simulator and device
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Different behavior between simulator and device (From: Jokke Heikkila <email@hidden>)
 >Re: Different behavior between simulator and device (From: tahome izwah <email@hidden>)
 >Re: Different behavior between simulator and device (From: Jokke Heikkila <email@hidden>)
 >Re: Different behavior between simulator and device (From: Bruce Meagher <email@hidden>)

  • Prev by Date: Re: Different behavior between simulator and device
  • Next by Date: RE: audio unit deinstantiation thread
  • Previous by thread: Re: Different behavior between simulator and device
  • Next by thread: Re: Different behavior between simulator and device
  • Index(es):
    • Date
    • Thread