Re: AU outIsPlaying parameter problems
Re: AU outIsPlaying parameter problems
- Subject: Re: AU outIsPlaying parameter problems
- From: Stefan Gretscher <email@hidden>
- Date: Wed, 30 Apr 2008 11:50:15 +0200
Hi Brett,
I just had a brief look at this in the debugger and as far as I can
tell there are correct values returned by Logic.
I wonder if you may be calling the host callback out of context - you
may only call these from inside rendering.
If you're calling it outside render, Logic will just bail out, not
touching any of the pointers you've passed.
That would explain the behavior you're reporting. If you're calling
from inside rendering and still not getting
proper values please contact me off-list how to get a build of your AU
so I can debug this.
-Stefan
Am 29.04.2008 um 05:06 schrieb 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
------------------------------------
Stefan Gretscher
plug-in development & 3rd party developer support
phone: (+49)-4101-495-586 (Central European Time)
AU developer support: email@hidden
TDM developer support: email@hidden
Apple GmbH
Geschäftsführung: Georges Guyon de Chemilly
Sitz der Gesellschaft: München
Amtsgericht München, HRB 66158
_______________________________________________
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