Re: iPhone interruption with OpenAL?

2010-01-11 Thread E. Wing
The quick answer is no. Assuming iPhone OS 3.0+, you must suspend/disable the OpenAL context by making the current context NULL. And if you have an iPod Touch, you can use the Clock.app's alarm feature to help test interruptions. FYI, I cover iPhone audio and OpenAL in excruciating detail

Re: iPhone endInterruption delegate method killing OpenAL

2010-01-11 Thread E. Wing
On 1/11/10, Chunk 1978 chunk1...@gmail.com wrote: i can't figure out what it wrong with my code (attached .m file). i'm playing a looping sound with OpenAL, which becomes interrupted by an alarm. when i quit the alarm, my endInterruption delegate method is activated, and a new OpenAL session

Re: CALayers Lost After Switching Window's ContentView

2009-02-16 Thread E. Wing
I think I ran into this problem about 7 months ago. We ended up filing a DTS incident for an explanation and some work-arounds. If memory serves, the problem was that AppKit was too aggressive about freeing the layer-backing of the NSViews it owns. My application was a mixure of both NSViews and

Re: Visualization strategy/choosing a framework

2009-01-06 Thread E. Wing
Off to do some refactoring of my Swarm class; at the risk of spawning a tangent, am I just completely missing a Cocoa data structure that's suited to matrices of scalar values? I had a working implementation using nested NSMutableArrays, but the code wound up looking disgusting (my fault, not

Re: Synchronizing QTMovieLayers

2009-01-06 Thread E. Wing
On 1/2/09, Seth Willits sli...@araelium.com wrote: Howdy guys, I have a need to make sure multiple QTMovieLayers are in perfect sync. In other words, I need them to start at exactly the same time. If you just do a few [movieN play] in a row, they're slightly off from each other. Has

Re: Which language to get started with cocoa development?

2009-01-05 Thread E. Wing
On 12/31/08, Achim Domma do...@procoders.net wrote: Hi, I develop software for a living and want to get started with cocoa development just for fun. I'm good at python, C, C++ and C# and have some Ruby knowledge. Now I'm asking myself, which language I should use to get started with cocoa

Re: Rotating a QTMovie doesn't work the way it used to

2008-10-22 Thread E. Wing
So does anyone know whether this is a problem that's specific for dealing with QuickTime movies from a cocoa app? Or is there a more elegant way of rotating movies? I don't know anything about the old QuickTime APIs. But I would suggest the new way to do this is use Core Animation. You might

Re: Synching Animations Across CALayers

2008-05-23 Thread E. Wing
On 5/23/08, Dmitri Goutnik [EMAIL PROTECTED] wrote: On May 23, 2008, at 11:18 AM, Bridger Maxwell wrote: Perhaps there is a way to see how far along the animation is for a given layer, and be able to make another layer synch to the same time. Surely this has to be possible. Haven't tried

Re: Making use of Core 2 features without 64bit addressing

2008-04-11 Thread E. Wing
On 4/10/08, Michael Vannorsdel [EMAIL PROTECTED] wrote: Indeed I can do that. This brings up another question; since frameworks and libs didn't have much 64 bit support in 10.4, is it possible for a fat binary to load the 64 bit image on 10.5 and 32 bit on 10.4? Perhaps with some Info.plist

Re: Best Way To Lookup From a Huge Table

2008-03-20 Thread E. Wing
You really should profile to find your bottlenecks, especially when the STL is concerned. My personal experience has been that gcc poorly optimizes STL code automatically for you and you must go in and profile to eliminate the real bottlenecks. A real world case I dealt with a couple years back,