Re: problem encoding in PCM format
Re: problem encoding in PCM format
- Subject: Re: problem encoding in PCM format
- From: "Sandeep Chandna" <email@hidden>
- Date: Thu, 2 Nov 2006 10:26:35 +0530
Hi!
Thanks for your replies but I found that the problem was something else.
I compared the code with the scaudiocompress example and removed the call to ImageSettings function so that I could set the outuput ASBD myself. I found after comparison that the problem was because of the difference between old and new apis.
I was setting the sound description with Format ID of LPCM and that was the problem. I had to actually create a new SoundDescription with the updated output ASBD before passing it to AddMediaSample API. This is the reason why other codecs were working as they didnt have any subtypes and so getting the sound description again was not required for them.
Sandeep
On 02/11/06, Mark Pauley <email@hidden> wrote:
I've had issues with floating point PCM conversions unless I specifically specified kAudioFlagIsNativeEndian on the input stream and the desired endian flag on the output stream of the converter (vice versa for reading from a file).
I can definitely understand that the code will likely not work across architectures (especially if your file format has an endian requirement) unless this is the case. On which architecture are you seeing the issue and what are you passing to the converter as the input format?
_Mark
On Oct 31, 2006, at 8:47 PM, Sandeep Chandna wrote:
I am writing in a .mov file . QTPro does the encoding properly with the same settings and generates the expected output.
_______________________________________________
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