<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div><div>OpenFrameworks has open source code that works &nbsp;for audio on all iPod Touchs, including the 1G. &nbsp;Other options would be to checkout Bryan Sommerset's original pdlib for iPhoneOS.</div><div><br></div><div>.hc</div><br><div><div>On Nov 26, 2010, at 4:43 PM, Peter Brinkmann wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><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.&nbsp; Other than that, I'm afraid I don't have much of an idea because I don't know much about iPhone development and I don't have any ARMv6 devices to experiment with.&nbsp; 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>&nbsp;&nbsp;&nbsp;&nbsp; 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've been testing out PdLib'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't work on iPod Touch 2G, as well as a few other devices.<br> <br> Is there any reason for this? I've been trying to debug it (my main testing device is an iPod Touch 2G) and it seems that in PdAudio'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'm going to keep looking at it, but any ideas as to why this is happening in the first place would be appreciated — I'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> _______________________________________________<br>Pd-dev mailing list<br><a href="mailto:Pd-dev@iem.at">Pd-dev@iem.at</a><br><a href="http://lists.puredata.info/listinfo/pd-dev">http://lists.puredata.info/listinfo/pd-dev</a><br></blockquote></div><br><div> <span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><br class="Apple-interchange-newline"><div><br class="khtml-block-placeholder"></div><div><br class="khtml-block-placeholder"></div><div><br></div><div>----------------------------------------------------------------------------<br></div><div><br class="khtml-block-placeholder"></div><div>'You people have such restrictive dress for women,’ she said, hobbling away in three inch heels and panty hose to finish out another pink-collar temp pool day.&nbsp; -&nbsp;“Hijab Scene #2", by&nbsp;Mohja Kahf</div><br class="Apple-interchange-newline"></div></span> </div><br></body></html>