OpenFrameworks has open source code that works for audio on all iPod
Touchs, including the 1G. Other options would be to checkout Bryan
Sommerset's original pdlib for iPhoneOS.
.hc
On Nov 26, 2010, at 4:43 PM, Peter Brinkmann wrote:
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 <cjni...@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
_______________________________________________
Pd-dev mailing list
Pd-dev@iem.at
http://lists.puredata.info/listinfo/pd-dev
----------------------------------------------------------------------------
'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. - “Hijab Scene #2", by Mohja Kahf
_______________________________________________
Pd-dev mailing list
Pd-dev@iem.at
http://lists.puredata.info/listinfo/pd-dev