How to get the number of bytes per packet of the default output device?
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