• 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: Device input format change.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Device input format change.


  • Subject: Re: Device input format change.
  • From: Jeff Moore <email@hidden>
  • Date: Thu, 1 Feb 2007 11:18:15 -0800

First off, the general rule of thumb is that applications should not be fiddling with device settings. Settings belong to the user and should be set using the system apps. Obviously there are exceptions to every rule, but most apps should respect the settings the user has already made.

That said, the problem here is probably due to your app not using the correct format in your IOProc. The usual mistake that gets made here is assuming that the format you set is the format the device actually is using. The other common mistake is assuming that the format change takes place immediately, when in fact changing the format is an asynchronous operation that can't be deemed complete until your listener proc gets called indicating that the format did, in fact, change.

On Feb 1, 2007, at 11:05 AM, Tommy Braas wrote:

I am currently facing a problem when changing the input stream format on a recording device using HAL.

When it is done in my application, the device ends up generating pink noise. When the device is set as the default system input device and the input stream format changed using AMS, there is no pink noise!

Can anyone speak to what the issue might be here, or at least describe the recommended sequence of input stream property changes in HAL?


--

Jeff Moore
Core Audio
Apple



_______________________________________________
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: Device input format change.
      • From: Tommy Braas <email@hidden>
References: 
 >Device input format change. (From: Tommy Braas <email@hidden>)

  • Prev by Date: Device input format change.
  • Next by Date: Re: Device input format change.
  • Previous by thread: Device input format change.
  • Next by thread: Re: Device input format change.
  • Index(es):
    • Date
    • Thread