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

Re: AU outIsPlaying parameter problems


  • Subject: Re: AU outIsPlaying parameter problems
  • From: email@hidden (Brett Takacs)
  • Date: Wed, 30 Apr 2008 01:46:14 +0000

Still no luck with getting *outIsPlaying to work.  Does anyone know how to properly use this parameter?

Thanks,

Brett



 -------------- Original message ----------------------
From: email@hidden (Brett Takacs)
> 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

  • Prev by Date: Re: SonogramViewDemo
  • Next by Date: Is openal capable to capture audio?
  • Previous by thread: Re: AU outIsPlaying parameter problems
  • Next by thread: AudioQueueNewOutput return value
  • Index(es):
    • Date
    • Thread