Re: Recorded mic input plays too fast
Re: Recorded mic input plays too fast
- Subject: Re: Recorded mic input plays too fast
- From: Walantis Giosis <email@hidden>
- Date: Fri, 14 Sep 2007 22:01:45 +0200
Hello,
I looked with QT and to my surprise the data rate is 2928.10 kbits/s.
How can this be ?
The format field has the proper info (44.1 kHz, 32 bit float le stereo).
Thanks so far,
wg
On 13.09.2007, at 21:52, William Stewart wrote:
It is probably because QT thinks that the movie's audio rate is not
what it is. If you open this movie in QTPlayer what does it say
that the sample rate of the audio is?
On 12/09/2007, at 10:05 PM, Walantis Giosis wrote:
Hi,
I'm recording built-in mic input with coreaudio based on apple
examples. The input
is converted with an audio converter and written to a quicktime
file. Everything works
except that the playback of the audio result sounds like if donald
duck spoke into the mic.
what is the point ? I've attached my asbd's for debugging:
---------------------------------
*** fDeviceFormat *** Received with AudioUnitGetProperty
sample rate :44100.000000
format id :0x6c70636d, 6C70636D
format flags :9
bytes/packet :8
frames/packet :1
bytes/frame :8
channels/frame:2
bits/channel :32
reserved :0
---------------------------------
*** fOutputFormat *** Manually built
sample rate :44100.000000
format id :0x6c70636d, 6C70636D
format flags :29
bytes/packet :4
frames/packet :1
bytes/frame :4
channels/frame:2
bits/channel :32
reserved :0
---------------------------------
*** outputASBD *** Manually built
sample rate :44100.000000
format id :0x6c70636d, 6C70636D
format flags :9
bytes/packet :8
frames/packet :1
bytes/frame :8
channels/frame:2
bits/channel :32
reserved :0
I created the audio converter with fDeviceFormat as input and
outputASBD as output.
I use AudioConverterFillComplexBuffer and AddMediaSample2 to
convert and store the samples.
I read a lot in various mailing lists but still did not succeed.
Please give me an advice...
Shall I post the whole code (if it helps) ?
TIA
wg
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40apple.com
This email sent to email@hidden
--
mailto:email@hidden
tel: +1 408 974 4056
______________________________________________________________________
____
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
______________________________________________________________________
____
_______________________________________________
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