ofxpd sample rate and ticksPerBuffer

hello:)

all my patch and its contents are in 44100 but when

  
  
         int ticksPerBuffer = 0;  
  
         core.setup(2, 0, 44100, ticksPerBuffer);  
      
	 // setup OF sound stream  
         ofSoundStreamSetup(2, 0, this, 44100, ofxPd::blockSize()*ticksPerBuffer, 3);  

my osx sample rates are 44100 but when I run simulator , it changes to 48000 and sound is modified(in a bad way)

and these guys show up

[error] ofxiPhoneSoundStream: OS status error code ‘pty?’
[error] ofxiPhoneSoundStream: Couldn’t set ignore speaker routing

any leads? thanks!

You can change your computers sample rate in audio midi settings (inside of your application/utilities folder). Alternatively, you could just ifdef the setup code, like:

#if TARGET_IPHONE_SIMULATOR
ofSoundStreamSetup(2, 0, this, 48000, ofxPd::blockSize()*ticksPerBuffer, 3);
#else
ofSoundStreamSetup(2, 0, this, 44100, ofxPd::blockSize()*ticksPerBuffer, 3);
#endif