Re: Getting 'fmt?' error returns from AudioConverterNew ()
Re: Getting 'fmt?' error returns from AudioConverterNew ()
- Subject: Re: Getting 'fmt?' error returns from AudioConverterNew ()
- From: "Kyle Sluder" <email@hidden>
- Date: Mon, 5 Nov 2007 15:38:31 +0000
It was a typo in your code, or in the version you pasted here?
You might want to take this to the coreaudio-api list instead of here.
This list is for Xcode itself, not for the code you write with it.
;-)
--Kyle Sluder
On 11/5/07, Daniel Stenning <email@hidden> wrote:
> Typo - should read 'aac '.
>
>
> On 5/11/07 14:43, "Kyle Sluder" <email@hidden> wrote:
>
> > You're setting mFormatID to "aac " instead of 'aac '? It compiles
> > because sizeof(int) == sizeof(char[4]).
> >
> > --Kyle Sluder
> >
> > On 11/5/07, Daniel Stenning <email@hidden> wrote:
> >> I am experimenting with using the CoreAudio audio converter to convert an
> >> aac stream to PCM. With the following settings I am getting 'fmt?' return
> >> errors.
> >>
> >>
> >> Anyone know what i'm doing wrong ?
> >>
> >> AudioStreamBasicDescription ASIn;
> >> AudioStreamBasicDescription ASOut;
> >>
> >>
> >> ASIn.mBitsPerChannel = 0;
> >> ASIn.mBytesPerFrame = 0;
> >> ASIn.mBytesPerPacket = 0;
> >> ASIn.mChannelsPerFrame= 1;
> >> ASIn.mFormatFlags = kMP4Audio_AAC_LC_ObjectType;
> >> ASIn.mFormatID = "aac ";
> >> ASIn.mFramesPerPacket = 1024;
> >> ASIn.mSampleRate = 44100;
> >>
> >> ASOut.mBitsPerChannel = 16;
> >> ASOut.mBytesPerFrame = 2;
> >> ASOut.mBytesPerPacket = 1024;
> >> ASOut.mChannelsPerFrame = 2;
> >> ASOut.mFormatFlags = 3; // for float, big endian
> >> ASOut.mFormatID = 'lpcm';
> >> ASOut.mFramesPerPacket = 512;
> >> ASOut.mSampleRate = 44100;
> >>
> >>
> >> AudioConverterRef conv;
> >>
> >> UInt32 err = AudioConverterNew ( &ASIn, &ASOut, &conv );
> >>
> >> Regards,
> >>
> >> Dan
> >>
> >>
> >> _______________________________________________
> >> Do not post admin requests to the list. They will be ignored.
> >> Xcode-users mailing list (email@hidden)
> >> Help/Unsubscribe/Update your Subscription:
> >>
> >> This email sent to email@hidden
> >>
> >
>
> Cheers,
> Dan
>
>
>
>
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden