• 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
How to get the number of bytes per packet of the default output device?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to get the number of bytes per packet of the default output device?


  • Subject: How to get the number of bytes per packet of the default output device?
  • From: "cparodi.ugemi" <email@hidden>
  • Date: Fri, 29 Jan 2010 19:19:30 +0100

Hi all, my name is Charles, I've just subscribed and already have one question for you Coreaudio gurus.

I know how to determine the ID of the Default Output device, and I also know how to get its nominal sample rate; since I want to generate some basic waveform sounds by means  of a callback render function, I also need to know the buffer size and the number of bytes per packet, so that I can then loop at a given number of samples calculated as buffer size / packet size.

I want to do that in the simplest possible way to avoid headaches with Audio Units and the whole list of Audio Streams etc.: I just want to ask the Default Output device to please tell me what is its current buffer size and number of bytes per packet.

Is property kAudioDevicePropertyBufferFrameSize of any help with this?

And is kAudioDevicePropertyBufferFrameSize (that gives me the buffer size right?) deprecated?

Any suggestions please? I am really struggling with this.

Regards,
Charles

 _______________________________________________
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: How to get the number of bytes per packet of the default output device?
      • From: Jeff Moore <email@hidden>
  • Prev by Date: Assigning a callback and enabling playthru on remoteIO node
  • Next by Date: Re: How to get the number of bytes per packet of the default output device?
  • Previous by thread: Re: Assigning a callback and enabling playthru on remoteIO node
  • Next by thread: Re: How to get the number of bytes per packet of the default output device?
  • Index(es):
    • Date
    • Thread