Re: AU outIsPlaying parameter problems
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