views:

28

answers:

1

How do I check if the iPod supports audio recording using Cocoa API?

+1  A: 

If you know what devices support audio recording (iPhone always does for example) you can use methods from this question:

http://stackoverflow.com/questions/448162/determine-device-iphone-ipod-touch-with-iphone-sdk

Actual testing for input device connected can be done by Audio Session Services shown in this solution:

http://stackoverflow.com/questions/667196/detecting-iphone-ipod-touch-accessories

Ben
my ipod touch (2g) supports audio recording if a headset with microphone is plugged in. So I would not go for the method you suggest.
fluchtpunkt
Well, the thing is iPods can have audio input if you plug in specific headphones...
ruibm
Ah this seems to have the answer to checking for actual connected input devices:http://stackoverflow.com/questions/667196/detecting-iphone-ipod-touch-accessories
Ben