Re: audio queue start fails with 1752656245. bug in quick time on iPhone 2g running OS 3.0?
Re: audio queue start fails with 1752656245. bug in quick time on iPhone 2g running OS 3.0?
- Subject: Re: audio queue start fails with 1752656245. bug in quick time on iPhone 2g running OS 3.0?
- From: William Stewart <email@hidden>
- Date: Fri, 7 Aug 2009 12:28:45 -0700
On Aug 7, 2009, at 11:54 AM, Andrew E. Davidson wrote:
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
this is kind of bad. the highest sample rate that you can record on a
2G iphone is 8KHz, so why are you recording at 11? You are adding all
kids of distortions in here by upsampling. So you should fix this - to
do that, make sure that the sample rate you get data in matches the
current hardware sample rate (and make sure your session is active
first)
As for the rest of the problem - I really don't know, but it is
certainly odd. I would guess that somehow you aren't closing the file
properly when you create it, so its got a weird collection of
mismatched ideas about what data it contains.
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
alot of the error codes in coreaudio are 4 char codes, so this is
'hwiu' - you are trying to use and audio hardware codec, but the
resource is already in use
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
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden