Since my last post, and no responses, I decided to try a function I recently noticed... PlayVideoToImage(). Maybe this would help?
Well... no. When I use this function I can hear the video but cannot see it.
Am I not using it properly? I have found no examples of use.
agk::LoadVideo(aniFile.c_str());
if (MainLoop.scrolltext.BOL20 == 0)
{
MainLoop.scrolltext.BOL20 = 1;
MainLoop.scrolltext.INT20 = agk::CreateSprite(0);
agk::SetSpriteSize(MainLoop.scrolltext.INT20, (600-340) + border, (338-170) + border);
agk::SetSpritePosition(MainLoop.scrolltext.INT20, (600 - 340) - border / 2, (338 - 170) - border / 2);
agk::SetSpriteVisible(MainLoop.scrolltext.INT20, 1);
agk::SetSpriteDepth(MainLoop.scrolltext.INT20, 0);
}
agk::SetVideoDimensions(340, 170, 600, 338);
agk::SetVideoVolume(100);
agk::PlayVideoToImage(1);
agk::SetSpriteImage(MainLoop.scrolltext.INT20, 1);
startTime = agk::Timer();
while (playTime < agk::GetVideoDuration() - aniFileDur)
{
playTime = agk::Timer() - startTime;
}
agk::StopVideo();
agk::DeleteVideo();
MainLoop.scrolltext.BOL20 = 0;
agk::DeleteSprite(MainLoop.scrolltext.INT20);
home.wavecable.com/~mindsclay