[PD-dev] Debugging PdLib on iPod Touch

Peter Brinkmann peter.brinkmann at googlemail.com
Fri Nov 26 22:43:51 CET 2010


Hi Chris,
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'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.  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:
http://noisepages.com/groups/pd-everywhere/forum/topic/libpd-and-armv6/
Best,
     Peter


On Fri, Nov 26, 2010 at 2:16 PM, Chris Niven <cjniven at gmail.com> wrote:

> Hey Peter, list —
>
> 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.
>
> 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
>
> AudioSessionSetProperty(kAudioSessionProperty_PreferredHardwareSampleRate
> sizeof(sampleRate), &sampleRate);
>
> 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.
>
> 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.
>
> Thanks,
>
> Chris Niven
> B.Mus., Music Technology
> 514.591.9487
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20101126/ff9dbe7c/attachment.htm>


More information about the Pd-dev mailing list