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

Easy synth question


  • Subject: Easy synth question
  • From: "email@hidden" <email@hidden>
  • Date: Sun, 10 Apr 2011 01:29:18 +0200 (CEST)

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: Re: Cocoa classes and plug-in bundle (dylib) in-memory lifetimes (AU, x64, ObjC)
  • Next by Date: R: Easy synth question
  • Previous by thread: Re: Cocoa classes and plug-in bundle (dylib) in-memory lifetimes (AU, x64, ObjC)
  • Next by thread: R: Easy synth question
  • Index(es):
    • Date
    • Thread