• 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: USB Audio driver and THREAD_TIME_CONSTRAINT_POLICY
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: USB Audio driver and THREAD_TIME_CONSTRAINT_POLICY


  • Subject: Re: USB Audio driver and THREAD_TIME_CONSTRAINT_POLICY
  • From: Vyacheslav Matyushin <email@hidden>
  • Date: Wed, 28 Dec 2011 03:24:33 -0800 (PST)

Just in case anybody face strange gaps in buffers used with IOUSBLowLatencyIsocFrame,
allocate memory for them using this pattern (add sanity checks):

mach_vm_address_t physicalMask;
IOOptionBits usbOptions;
IOUSBControllerV2 *usbController;

usbController = OSDynamicCast(IOUSBControllerV2, mStreamInterface->GetDevice()->GetBus());
usbController->GetLowLatencyOptionsAndPhysicalMask(&usbOptions, &physicalMask);
usbOptions |= kIODirectionInOut;
mMemDesc = IOBufferMemoryDescriptor::inTaskWithPhysicalMask(kernel_task, usbOptions, memorySize, physicalMask);

This is what I have found in AppleUSBAudio and this is what I was missing, so thread priority was not my problem.

 _______________________________________________
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

References: 
 >USB Audio driver and THREAD_TIME_CONSTRAINT_POLICY (From: Vyacheslav Matyushin <email@hidden>)

  • Prev by Date: MIDI CC and MIDI Clock
  • Next by Date: Re: SampleUSBAudioPlugin buffer sizes
  • Previous by thread: Re: USB Audio driver and THREAD_TIME_CONSTRAINT_POLICY
  • Next by thread: What happened to the Public Utility in Xcode 4.3?
  • Index(es):
    • Date
    • Thread