• 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: Using converter API for a multiple streams driver
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using converter API for a multiple streams driver


  • Subject: Re: Using converter API for a multiple streams driver
  • From: Doug Wyatt <email@hidden>
  • Date: Tue, 18 Jan 2005 10:35:59 -0800

Stephane,

You'll need one converter per stream, since there's no way to describe all of the 828's (or similar device's) streams with a single AudioStreamBasicDescription. If all of the device's streams are mono -- there are some devices like this -- you can special-case that and just have one converter.

Or you could write your own set of interleaving/deinterleaving routines (it's a bit of a pain to handle arbitrary numbers of channels efficiently but it's certainly possible). If you do this it would be wise to analyze the generated code for stalls.

Doug

On Jan 18, 2005, at 3:23, Stéphane Letz wrote:
Hi,

I need to write code to convert data from a multiple streams driver (like the MOTU 828mk2) to a set of non-interleaved mono channels, and I want to use the converter API (AudioConverterNew and AudioConverterFillComplexBuffer....) For various reasons I cannot use the AUHAL component.

I'm a bit confused: do I need to allocate and use a converter for *each* stream in the driver ? That is for the MOTU 828mk2 example:

Stream 1 Main OUT (2 channels) ==> Converter  ==> 2 mono channels
Stream2 Analog (8 channels) ==> Converter ==> 8 mono channels
Stream3 SP-DIF (2 channels) ==> Converter ==> 2 mono channels
Stream4 Phones (2 channels) ==> Converter ==> 2 mono channels
Stream4 ADAT (8 channels) ==> Converter ==> 8 mono channels

or is it possible to use a unique converter to convert all streams at the same time?

Thanks

Stephane Letz

_______________________________________________ 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
  • Follow-Ups:
    • Re: Using converter API for a multiple streams driver
      • From: Michael Thornburgh <email@hidden>
References: 
 >Using converter API for a multiple streams driver (From: Stéphane Letz <email@hidden>)

  • Prev by Date: Is it dangerous to call AudioDeviceGetProperty() from within a AudioHardwarePropertyListenerProc?
  • Next by Date: Re: Using converter API for a multiple streams driver
  • Previous by thread: Using converter API for a multiple streams driver
  • Next by thread: Re: Using converter API for a multiple streams driver
  • Index(es):
    • Date
    • Thread