• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Strange silience after connecting to AUGraphicEQ
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Strange silience after connecting to AUGraphicEQ


  • Subject: Re: Strange silience after connecting to AUGraphicEQ
  • From: William Stewart <email@hidden>
  • Date: Tue, 26 Aug 2008 18:50:24 -0700

But the EQ can't be generating this error - it doesn't use an audio converter, so I think you have something wrong here.

The numbers below are correct because this is a de-interleaved formats (that is the canonical form for audio units). With de-interleaved, the format fields describe the format for one channel (which is one buffer). For interleaved formats the flags describe the format for all channels (which is still one buffer)... This is described in the core audio ref docs if you want to read more details

Bill

On Aug 26, 2008, at 6:41 PM, Lukhnos D. Liu wrote:

On Aug 27, 2008, at 7:53 AM, William Stewart wrote:
You can't provide integer to most audio units on the desktop - you have to provide float32 - so your "IsSigneInteger" flag is wrong.
In CoreAudioTypes.h there are also some definitions for the linear PCM flags for native, canonical formats, so have a look through these... You can also get the format first from an audio unit and have a look at what its default is and use that as a starting point

Thanks for the advice. I tried the flag kAudioFormatFlagsCanonical, but the EQ unit still yielded kAudioConverterErr_InvalidInputSize render error.


I then called AudioUnitGetProperty to get the the kAudioUnitProperty_StreamFormat from the EQ unit, then I'm even more puzzled... the reading was this:

	sample rate: 44100.000000,
	format: lpcm,
	flags: 0x00000029 (kAudioFormatFlagsCanonical on Intel)
	bytes/packet: 4,
	frames/packet: 1,
	bytes/frame: 4,
	channels/frame: 2,
	bits/channel: 32,
	reserved: 0x00000000

The number didn't seem to add up (shouldn't bits/channel be 16 in this case)? I must have wrong understanding of how EQ unit works or what it expects as input, but I don't know what goes wrong...

Thanks again!

d.




_______________________________________________ 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
References: 
 >Strange silience after connecting to AUGraphicEQ (From: "Lukhnos D. Liu" <email@hidden>)
 >Re: Strange silience after connecting to AUGraphicEQ (From: Lukhnos D.Liu <email@hidden>)
 >Re: Strange silience after connecting to AUGraphicEQ (From: William Stewart <email@hidden>)
 >Re: Strange silience after connecting to AUGraphicEQ (From: "Lukhnos D. Liu" <email@hidden>)

  • Prev by Date: Re: Strange silience after connecting to AUGraphicEQ
  • Next by Date: Re: Test report MBP built-in audio device
  • Previous by thread: Re: Strange silience after connecting to AUGraphicEQ
  • Next by thread: Attempting to set kAudioUnitProperty_StreamFormat -> kAudioUnitScope_Input returning kAudioUnitErr_FormatNotSupported
  • Index(es):
    • Date
    • Thread