Hi
I ran into a really strange problem on iPhone 2g running OS
3.0
My app allows users to record an audio file in PCM, then
converts that file into ALAC. Users can then send the ALAC version using in app
mail.
Everything seems fine. I am able to down load the audio file
from the email on both my Mac and windows machine. The file plays as expected. How
ever when I use the mail tool on the iPhone to play the message, no sound is
played? The really strange part is after trying to play the audio file from with
in the mail tool, I am not able to get audible sound from any of the
other apps, not even the iPod player!
Is there a bug in the mail tool or quick time?
I did a little more digging around. I looked at the file I
sent in email using afinfo (I am not an expert) and noticed something odd.
File type id: m4af
Data format 1 ch, 11025 hz, ‘alac’ from 16-bit
source, 4096 frames/packet . this is as expected. How ever the estimated duration
is 50.023 seconds. It should be at most 5 – 15 sec! The actual file size
on disk is only 44k
I have a second audio application I wrote that has been
working fine for several months, so I used it try to figure out what the problem
was. So I start mail and try to play the problem audio file attachment. Then I
started my other app using the debugger. In this second app AudioQueueStart fails
with error 1752656245! This application does not even have access to the audio
file in question
I googled 1752656245 but could not find anything. Does any
one know what this error means? Does anyone know of a way to translate error
numbers into something more meaningful? Or at the very least where I can go to
figure out what these numbers mean? There must be better way to figure this out
besides digging through system header files.
The only way to get audio working again on my iPhone is to
reboot the OS
Any idea what my problem is?
Thanks
Andy