echonest / echoprint-ios-sample

Sample Echoprint song identifier for iOS
http://echoprint.me/
165 stars 53 forks source link

GetPCMFromFile and iOS 3.1.3 #4

Open daaa57150 opened 13 years ago

daaa57150 commented 13 years ago

Hi,

We'd like to use echoprint codegen in one of our projects, and we ran this successfully in iOS 4. We then tried on our "old" iPodTouch with firmware 3.1.3, which we'd like to support and it fails. Specifically, the function GetPCMFromFile will give an OSStatus error because the format kAudioFormatFlagIsFloat / kAudioFormatFlagsNativeFloatPacked is not supported. We can get PCM frames using kAudioFormatFlagIsSignedInteger but then the rest of the code is not appropriate anymore and the fingerprint returned is wrong or empty.

Any chance to add support for iOS 3.1.3?

Thanks.