R: Easy synth question
R: Easy synth question
To further clarify: this synthesizer is using a canonical linear PCM stereo
format (L+R samples, both float; so frame size is fixed to 8 bytes). I'd expect
any device to be able to deal with it. Internally I have my own SR/buffer size -
dependent code.
I'm getting the default output device with
kAudioHardwarePropertyDefaultOutputDevice, the buffer size with
kAudioDevicePropertyBufferSize and the nominal SR with
kAudioDevicePropertyNominalSampleRate.
Regards,
Eric
>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