• 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
Setting MaximumFramesPerSlice property on Stereo Mixer AU
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Setting MaximumFramesPerSlice property on Stereo Mixer AU


  • Subject: Setting MaximumFramesPerSlice property on Stereo Mixer AU
  • From: email@hidden
  • Date: Fri, 21 Apr 2006 11:24:11 -0400

Hi folks,

I am trying to adjust the buffer size on all of the nodes in my graph. I have had no problems setting the MaxmimumFramesPerSlice property on my own AU and on my output device, but when I try to adjust a mixer (aumx smxr appl) that I have in my graph, for some reason I am getting an error result.

Short code snippet follows:

ComponentResult result;
UInt32	outDataSize;
Boolean	writable;
UInt32	bufferSize;

result =  AudioUnitGetPropertyInfo(
		mMixerUnit,	// AudioUnit
		kAudioUnitProperty_MaximumFramesPerSlice,
		kAudioUnitScope_Global,
		0,	 // AudioUnitElement     inElement,
		&outDataSize,	// UInt32 *             outDataSize,
		&writable	// Boolean *            outWritable
	 );

// writable returns TRUE, outDataSize returns 4 (sizeof(UInt32))

result = AudioUnitGetProperty(
		mMixerUnit,		// AudioUnit
		kAudioUnitProperty_MaximumFramesPerSlice,
		kAudioUnitScope_Global,	// AudioUnitScope
		0,		// AudioUnitElement      inElement,
		&bufferSize,	// void*  outData,
		&outDataSize	// UInt32*               ioDataSize
	);

// bufferSize returns 1156, outDataSize return 4

result = AudioUnitSetProperty(
		mMixerUnit,	// AudioUnit             ci,
		kAudioUnitProperty_MaximumFramesPerSlice,
		kAudioUnitScope_Global,	// AudioUnitScope
		0, // AudioUnitElement      inElement,
		&bufferSize,	// const void*           inData,
		sizeof(UInt32)	// UInt32                inDataSize
	);

// result is -10849

The SetProperty() call is very similar to the ones that worked fine for my output device and my own AU.

Why would the mixer be returning an error on this call?


I am also getting a similar (bad) result when trying to set this property on the DLSMusicDevice (aumu dls appl).

Thanks in advance!

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


  • Follow-Ups:
    • Re: Setting MaximumFramesPerSlice property on Stereo Mixer AU
      • From: William Stewart <email@hidden>
  • Prev by Date: AUGraphisRunning
  • Next by Date: AUAudioFilePlayer dropouts
  • Previous by thread: [CoreAudio] Options for m4a in 10.2?
  • Next by thread: Re: Setting MaximumFramesPerSlice property on Stereo Mixer AU
  • Index(es):
    • Date
    • Thread