Re: Underflow causes permanent silence
Re: Underflow causes permanent silence
- Subject: Re: Underflow causes permanent silence
- From: Jeff Moore <email@hidden>
- Date: Fri, 30 Aug 2002 11:41:43 -0700
On Friday, August 30, 2002, at 10:56 AM, Timothy J. Wood wrote:
I'm working on a ObjC wrapper around audio units for our game ports.
One of the obvious features is a stream that has a QuickTime decoder
attached to one end and I/O proc attached to the other end. This all
works fine (with the QT decoding happening in one thread and the I/O
proc happening in the HAL thread).
Now, the problem is that if I'm in the debugger, and hit ctrl-c to
stop my program for some reason, or worse, when loading the QT
decompression components the debugger hangs while reading symbols,
this causes CoreAudio to get grumpy with me somehow and I only get
silence from then on even though my decoding and I/O proc seem to be
working just fine.
You should not expect to recover properly from hitting a breakpoint in
gdb in the HAL's IO thread. This throws a huge unbounded amount of time
into things and the HAL just can't recover.
It's a huge pain for debugging and we're always looking for ways of
making it better, but right now it's not going to work too well.
In fact, often iTunes will quit playing sound at this point until I
kill my application. If I run my app directly w/o the debugger
involve, it seems to work much better, but I strongly suspect that if
my app chugs for some reason, that I'll hit the same problem.
It seems odd that this would affect another process. The only way I
would expect to see something like that was if you paused your app in a
place where it held one of the cross-process locks the IOAudio Family
keeps in the kernel. But this would be really hard to do, so I wouldn't
expect it to be an every time sort of thing.
--
Jeff Moore
Core Audio
Apple
_______________________________________________
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.