• 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: Setting buffer size?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting buffer size?


  • Subject: Re: Setting buffer size?
  • From: Michael Thornburgh <email@hidden>
  • Date: Tue, 4 Nov 2003 22:33:04 -0800

you want to set the "kAudioDevicePropertyBufferFrameSize" property on the audio device:

- (void) setDeviceBufferSizeInFrames:(UInt32)numFrames
{
OSStatus theStatus;
UInt32 theSize;

theSize = sizeof(UInt32);
theStatus = AudioDeviceSetProperty ( myDevice, NULL, 0, false, kAudioDevicePropertyBufferFrameSize, theSize, &numFrames );
}

-mike


On Nov 4, 2003, at 7:40 PM, Christy Warren wrote:

This is probably an FAQ but google search didn't reveal anything.

I have an audioProc for writing my sound buffers out to the audio hardware. One of the parameters is an in/out parameter that contains a list of the buffers that you need to write to.

I can write my audio by filling the whole 4k buffer. However i would rather write smaller chunks. Is there any way to change the buffer size that is expected? I tried setting the size field in the AudioBuffer but that seems to have no effect.

What is the right way to do this?

Christy
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: [coreaudio] Re: Setting buffer size?
      • From: Michael Bonnice <email@hidden>
References: 
 >Setting buffer size? (From: Christy Warren <email@hidden>)

  • Prev by Date: au midi/control output in panther
  • Next by Date: Re: HAL, AU or streams?
  • Previous by thread: Setting buffer size?
  • Next by thread: Re: [coreaudio] Re: Setting buffer size?
  • Index(es):
    • Date
    • Thread