• 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
IO Proc doesn't behave as expected
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

IO Proc doesn't behave as expected


  • Subject: IO Proc doesn't behave as expected
  • From: Chris Rolfe <email@hidden>
  • Date: Fri, 11 Mar 2005 18:58:17 -0800

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

  • Follow-Ups:
    • Re: IO Proc doesn't behave as expected
      • From: Robert Grant <email@hidden>
References: 
 >"hog mode" for midi? (From: John Pitcairn <email@hidden>)

  • Prev by Date: Re: adding Cocoa UI to SampleEffectUnit
  • Next by Date: AudioOutputUnitStart
  • Previous by thread: "hog mode" for midi?
  • Next by thread: Re: IO Proc doesn't behave as expected
  • Index(es):
    • Date
    • Thread