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

clipOutputSamples question


  • Subject: clipOutputSamples question
  • From: Laurent Humbert <email@hidden>
  • Date: Tue, 29 Oct 2002 14:12:00 +0100

Something weird's happening in my clipOutputSamples routine.

Calling my audio engine's getCurrentSampleFrame() method completely locks up the machine, including the mouse cursor, and unloading the driver by switching off the device is the only way to regain control.

My getCurrentSampleFrame override method looks exactely like that:

UInt32 MyAudioEngine::getCurrentSampleFrame()
{
return fCurFramePos;
}

If instead of calling getCurrentSampleFrame I directly access the instance variable, then everything's fine.

I created another dummy MyAudioEngine method that simply returns a UInt32, and I can call that one without any problem.

I'd like to understand what's going on, if it's a bug in IO/Kit or if there are limitations in clipOutputSamples I am not aware of. I noticed that the AppleUSBAudio driver does call getCurrentSampleFrame() from clipOutputSamples, so I suppose it's legal...

This is on 10.2.1

Thanks very much

Laurent
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Rép : Custom HIViews and AudioUnits
  • Next by Date: Specifying an external synthesizer in OS X
  • Previous by thread: Rép : Custom HIViews and AudioUnits
  • Next by thread: Specifying an external synthesizer in OS X
  • Index(es):
    • Date
    • Thread