• 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
AU outIsPlaying parameter problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AU outIsPlaying parameter problems


  • Subject: AU outIsPlaying parameter problems
  • From: email@hidden (Brett Takacs)
  • Date: Tue, 29 Apr 2008 03:06:18 +0000

Hi,

I am writing an AU plugin which requires the plugin to know when playback from the host's transport starts and stops.  Using Logic 8, I have tried *HostCallback_GetTransportState parameters such as *outIsPlaying and *outTransportStateChanged, but through debugging (using printf and Console view) the value of these parameters is always 1 (TRUE), never showing 0 (FALSE).  Also, they never show output values when playback is stopped.  Therefore, when transport stops, the plugin doesn't detect the stop and doesn't know when transport starts again.  Do these parameters work correctly in Logic?

Here's a bit of my code implementing these parameters (from AudioUnitProperties.h):

//***************
Boolean playback;
Boolean stateChanged;

OSStatus err2 = mAudioUnit->CallHostTransportState(&playback,&stateChanged,NULL,NULL,NULL,NULL);

	if (err2 == noErr)
	{
		if (playback == 1)
		{	printf("Playback TRUE\n");    }
                if (playback == 0)
                {      printf("Playback FALSE\n");   }
                if (stateChanged == 1)
                {     printf("stateChanged TRUE\n");    }
                if (stateChanged == 0)
                {    printf("stateChanged FALSE\n");    }
              etc....
       }
 //******************

Can anyone help me figure out how to determine when playback starts and stops?  I've searched the archive lists but this topic seems to be rarely discussed.  I appreciate your help!!

- Brett




 _______________________________________________
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: AU outIsPlaying parameter problems
      • From: Stefan Gretscher <email@hidden>
  • Prev by Date: Re: Making a waterfall display
  • Next by Date: Re: Making a waterfall display
  • Previous by thread: Re: Making a waterfall display
  • Next by thread: Re: AU outIsPlaying parameter problems
  • Index(es):
    • Date
    • Thread