• 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: 3D Mixer Bug or User Error?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 3D Mixer Bug or User Error?


  • Subject: Re: 3D Mixer Bug or User Error?
  • From: William Stewart <email@hidden>
  • Date: Thu, 21 Dec 2006 19:37:18 -0800

Yes - this should match, so I'd characterise this as a bug in the mixer

Thanks

Bill

On 21/12/2006, at 7:40 AM, Chandrasekhar Ramakrishnan wrote:


I stumbled across an inconsistency in the behavior of the 3D Mixer compared to the Matrix Mixer.

I'm creating an AudioBufferList via AUOutputBL::Allocate, passing in
my max frames per slice as the argument. When I render the Matrix
Mixer, it updates the mDataByteSize in the buffers of the buffer list
to match what would be expected given the inNumberFrames I asked for.

The 3D Mixer, however, does not do this -- it leaves the mDataByteSize
at maxFramesPerSlice * sizeof(float) (for a mono buffer). This
behavior is causing my AudioConverter to complain. It returns an
'insz' error, apparently because of the decrepency between the number
of frames I ask it to convert and the size of the buffer.

The workaround is easy to implement -- I check if my AU is a 3D Mixer
and, if so, I tweak the mDataByteSizes -- but I'd like to know what
the correct behavior of an AU is in general: is it safe to expect them
to return correct mDataByteSizes, or should I always do the correction
myself?

Thanks and Happy Holidays!

- sekhar

--
C. Ramakrishnan        email@hidden
Illposed Software    http://www.illposed.com
 _______________________________________________
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

-- 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


References: 
 >3D Mixer Bug or User Error? (From: Chandrasekhar Ramakrishnan <email@hidden>)

  • Prev by Date: Re: Unable to figure out Input Callback in cpp
  • Next by Date: Re: Side chains in Logic
  • Previous by thread: 3D Mixer Bug or User Error?
  • Next by thread: record and play program
  • Index(es):
    • Date
    • Thread