Re: Converting to LPCM 32bit
Re: Converting to LPCM 32bit
- Subject: Re: Converting to LPCM 32bit
- From: "Sandeep Chandna" <email@hidden>
- Date: Thu, 11 Jan 2007 11:52:46 +0530
You were right, the sound description was actually being created perfectly with proper endian-ness, there was a mistake
later in my code.
Thanks alot for your valuable inputs.
Sandeep
On 10/01/07, Gennady Dudarek <email@hidden> wrote:
You dumped only part of returned sound description.
QTSoundDescriptionCreate returns a handle, as you see descSize is 134
bytes, so if you dump the rest of the description you will see a lot
of private data including four bytes 'enda' followed by endian value.
On Jan 9, 2007, at 9:26 AM, Sandeep Chandna wrote:
> Gennady,Brad - Thanks for your inputs, I had a further look into
> the later code but could not find where it could be going wrong. My
> sound description for 32bit little endian integer looks like this,
> please check if this looks correct?
>
> descSize 134
> dataFormat 1768829746
> resvd1 0
> resvd2 0
> dataRefIndex 0
> version 1
> revelevel 0
> vendor 0
> numChannels 2
> sampleSize 16
> compressionID -1
> packetSize 0
> sampleRate 524288000
>
> This is returned when I set my asbd to
>
> sampleRate 8000
> mFormatID 1819304813
> mFormatFlags 12
> mBytesPerPacket 8
> mFramesPerPacket 1
> mBytesPerFrame 8
> mChannelsPerFrame 2
> mBitsPerChannel 32
> mReserved 0
>
>
> Please confirm if the above sound Description/asbd are correct for
> 32 bit integer little endian in which case we can be sure that
> problem is in further code and I am not setting the asbd incorrectly.
>
> Thanks
> Sandeep
>
>
> On 09/01/07, Gennady Dudarek <email@hidden
> wrote: On
> Jan 8, 2007, at 11:36 PM, Brad Ford wrote:
>
> >>
> >
> > <SNIP>
> >
> >>>
> >>> Also, I am using QTSoundDescriptionCreate to create the SDH, and
> >>> output ASBD is defined as given in my last mail (qouted here).
> >>>
> >>
> >> Looks like returned sound description does not contain required
> >> extension.
> >
> > QTSoundDescriptionCreate does indeed add appropriate extensions for
> > endianness. It's a well tested code path.
> >
> So, there is no needs to spend a time for dumping the returned
> description, probably bug is somewhere in further code.
>
> > -Brad Ford
> > QuickTime Engineering
>
> --
> Gennady Dudarek
>
>
>
>
>
--
Gennady Dudarek
--
Sandeep Chandna
98183-59325
_______________________________________________
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