Re: IO Proc doesn't behave as expected
Re: IO Proc doesn't behave as expected
- Subject: Re: IO Proc doesn't behave as expected
- From: Robert Grant <email@hidden>
- Date: Sat, 12 Mar 2005 14:59:25 -0500
Hi Chris,
I can confirm that AudioOutputUnitStart and Stop work fine with a Cocoa
UI - Rax does it a lot.
There's something else going on here...
Robert.
On Mar 11, 2005, at 9:58 PM, Chris Rolfe wrote:
Taking for granted initialization, etc., can anyone suggest why
starting/sleeping/stopping an IO Proc works, but the same IO Proc might
produce garbage when start/stop are called from a Cocoa UI, a la:
This works fine:
void start() { AudioOutputUnitStart (unit); }
void stop() { AudioOutputUnitStop (unit); }
void test()
{
start();
usleep (4 * 1000 * 1000); // sleep this thread while audio
plays
stop();
}
This sucks:
-(void) startButton () { start() ; }
-(void) stopButton () { stop() ; }
TIA,
Chris
_______________________________________________
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
_______________________________________________
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