AEIO Sound output, interleaving wanted
We are writing an AEIO plugin and we're still in the very beginning stages following the IO example almost exactly. We determined that the all the sound chunks are provided first, followed by the sequence of video frames. We want to get the sound chunks and frames to come through interleaved. How can this be done?
Using the following flags:
info->flags =
AEIO_MFlag_OUTPUT |
AEIO_MFlag_FILE |
AEIO_MFlag_VIDEO |
AEIO_MFlag_AUDIO |
AEIO_MFlag_NO_OPTIONS |
AEIO_MFlag_HAS_AUX_DATA;
info->flags2 = AEIO_MFlag2_CAN_DO_AUDIO_32;
The sequence of calls immediately following the start of rendering looks like this:
2010/11/02T14:39:43.461 [07848]:[TID:10252] VyAE_GetDepths (out)
2010/11/02T14:39:43.462 [07848]:[TID:10252] VyAE_OutputInfoChanged (out)
2010/11/02T14:39:43.463 [07848]:[TID:10252] VyAE_GetDepths (out)
2010/11/02T14:39:43.464 [07848]:[TID:10252] VyAE_OutputInfoChanged (out)
2010/11/02T14:39:43.594 [07848]:[TID:10252] VyAE_SetOutputFile (out)
2010/11/02T14:39:43.595 [07848]:[TID:10252] VyAE_OutputInfoChanged (out)
2010/11/02T14:39:43.597 [07848]:[TID:10252] VyAE_GetOutputInfo (out)
2010/11/02T14:39:43.729 [07848]:[TID:10252] VyAE_StartAdding (out)
2010/11/02T14:39:43.780 [07848]:[TID:10252] VyAE_AddSoundChunk (out)
2010/11/02T14:39:43.829 [07848]:[TID:10252] VyAE_AddSoundChunk (out)
2010/11/02T14:39:43.846 [07848]:[TID:10252] VyAE_AddSoundChunk (out)
2010/11/02T14:39:43.860 [07848]:[TID:10252] VyAE_AddSoundChunk (out)
2010/11/02T14:39:43.883 [07848]:[TID:10252] VyAE_AddSoundChunk (out)
2010/11/02T14:39:43.900 [07848]:[TID:10252] VyAE_AddSoundChunk (out)
2010/11/02T14:39:43.914 [07848]:[TID:10252] VyAE_AddSoundChunk (out)
2010/11/02T14:39:43.931 [07848]:[TID:10252] VyAE_AddSoundChunk (out)
2010/11/02T14:39:43.949 [07848]:[TID:10252] VyAE_AddSoundChunk (out)
2010/11/02T14:39:43.963 [07848]:[TID:10252] VyAE_AddSoundChunk (out)
2010/11/02T14:39:43.972 [07848]:[TID:10252] VyAE_AddSoundChunk (out)
2010/11/02T14:39:43.988 [07848]:[TID:10252] VyAE_GetDepths (out)
2010/11/02T14:39:43.989 [07848]:[TID:10252] VyAE_AddFrame (out)
2010/11/02T14:39:43.991 [07848]:[TID:10252] VyAE_GetOutputInfo (out)
2010/11/02T14:39:44.000 [07848]:[TID:10252] VyAE_GetOutputInfo (out)
2010/11/02T14:39:44.085 [07848]:[TID:10252] VyAE_GetDepths (out)
2010/11/02T14:39:44.087 [07848]:[TID:10252] VyAE_AddFrame (out)
2010/11/02T14:39:44.088 [07848]:[TID:10252] VyAE_GetOutputInfo (out)
2010/11/02T14:39:44.093 [07848]:[TID:10252] VyAE_GetOutputInfo (out)
2010/11/02T14:39:44.121 [07848]:[TID:10252] VyAE_GetDepths (out)
2010/11/02T14:39:44.122 [07848]:[TID:10252] VyAE_AddFrame (out)
2010/11/02T14:39:44.124 [07848]:[TID:10252] VyAE_GetOutputInfo (out)
2010/11/02T14:39:44.129 [07848]:[TID:10252] VyAE_GetOutputInfo (out)
2010/11/02T14:39:44.145 [07848]:[TID:10252] VyAE_GetDepths (out)
2010/11/02T14:39:44.146 [07848]:[TID:10252] VyAE_AddFrame (out)
2010/11/02T14:39:44.148 [07848]:[TID:10252] VyAE_GetOutputInfo (out)
2010/11/02T14:39:44.152 [07848]:[TID:10252] VyAE_GetOutputInfo (out)
2010/11/02T14:39:44.167 [07848]:[TID:10252] VyAE_GetDepths (out)
2010/11/02T14:39:44.168 [07848]:[TID:10252] VyAE_AddFrame (out)
...
and so forth.