Easy synth question
Easy synth question
I'm working on an easy synth project that uses a callback to generate audio
through the default output device.
I know how to determine the default output device ID, buffer size and nominal
SR through the AudioObjectGetPropertyData API.
QUESTION: since my synth uses float samples, can I assume the device will
accept a packet size of 8 bytes (4 per channel) so that my inner loop in the
callback will have a number if iterations equal to bufferSize / 8 ?
In the old days I used to determine the "Bytes per Packet" with
AudioDeviceGetProperty / kAudioDevicePropertyStreamFormat but now that API is
deprecated and kAudioDevicePropertyStreamFormat is not recognized by
AudioObjectGetPropertyData.
I want to keep it simple if possible: will this approach work with hi-end
audio interfaces like Motu / Aprogee and similar?
Any help appreciated, thanks.
Regards,
Eric
_______________________________________________
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