• 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
R: Easy synth question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

R: Easy synth question


  • Subject: R: Easy synth question
  • From: "email@hidden" <email@hidden>
  • Date: Sun, 10 Apr 2011 14:23:17 +0200 (CEST)

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

  • Prev by Date: Easy synth question
  • Next by Date: Which iOS audio API for reverse audio
  • Previous by thread: Easy synth question
  • Next by thread: Which iOS audio API for reverse audio
  • Index(es):
    • Date
    • Thread