<br>Hi Chris,<br>Regarding the sample rate problem on older iPods, I would try to find an audio project that works properly on an iPod Touch 2G and see how its setup code differs from that in PdAudio.  Other than that, I&#39;m afraid I don&#39;t have much of an idea because I don&#39;t know much about iPhone development and I don&#39;t have any ARMv6 devices to experiment with.  A number of people seem to be interested in this problem, and so I started a new topic at pd-everywhere in order to create a place where people can meet up and exchange notes: <a href="http://noisepages.com/groups/pd-everywhere/forum/topic/libpd-and-armv6/">http://noisepages.com/groups/pd-everywhere/forum/topic/libpd-and-armv6/</a><br>
Best,<br>     Peter<br><br><br><div class="gmail_quote">On Fri, Nov 26, 2010 at 2:16 PM, Chris Niven <span dir="ltr">&lt;<a href="mailto:cjniven@gmail.com">cjniven@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hey Peter, list —<br>
<br>
I&#39;ve been testing out PdLib&#39;s objc glue with the xcode project included in your git repo, and was able to get it to run successfully on an iPhone 3G, which is cool but — I noticed in the readme that audio doesn&#39;t work on iPod Touch 2G, as well as a few other devices.<br>

<br>
Is there any reason for this? I&#39;ve been trying to debug it (my main testing device is an iPod Touch 2G) and it seems that in PdAudio&#39;s initializeAudioSession, the sampling rate does not get set properly with the call to<br>

<br>
AudioSessionSetProperty(kAudioSessionProperty_PreferredHardwareSampleRate sizeof(sampleRate), &amp;sampleRate);<br>
<br>
I set the sampling rate to 22050Hz, which works fine for the iPhone 3G — but the iPod Touch always reverts to the sampling rate of 44.1Hz, and audio is never played.<br>
<br>
I&#39;m going to keep looking at it, but any ideas as to why this is happening in the first place would be appreciated — I&#39;m curious as to why I can run RJDJ on my iPod Touch fine, but PdLib does not work even though it is based on the same code.<br>

<br>
Thanks,<br>
<font color="#888888"><br>
Chris Niven<br>
B.Mus., Music Technology<br>
514.591.9487<br>
<br>
</font></blockquote></div><br>