• 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
Re: Easy synth question (follow-up)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Easy synth question (follow-up)


  • Subject: Re: Easy synth question (follow-up)
  • From: "email@hidden" <email@hidden>
  • Date: Mon, 11 Apr 2011 22:13:52 +0200 (CEST)

Same topic as before but now I found the property I was looking for, i.e.
kAudioDevicePropertyBufferFrameSize.
So let me rephrase my question:

I'm getting the default output device ID with
kAudioHardwarePropertyDefaultOutputDevice, the sample rate with
kAudioDevicePropertyNominalSampleRate and the buffer size (in frames) with
kAudioDevicePropertyBufferFrameSize.

My prototype synth works fine with the Mac built-in output device, but will
this approach work with any sound card / external interface?

Thanks in advance for any help on this, I'm just trying to tackle the basics
of Core Audio.

Regards,
Eric


>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: MVC in avTouch and SpeakHere
  • Next by Date: Overview of Sequencing, MIDI & Audio Units in iOS 4.3
  • Previous by thread: MVC in avTouch and SpeakHere
  • Next by thread: Overview of Sequencing, MIDI & Audio Units in iOS 4.3
  • Index(es):
    • Date
    • Thread