View Single Post
Old 19th December 2012, 17:03   #3
SilverBird775
Senior Member
 
SilverBird775's Avatar
 
Join Date: Jan 2009
Location: Russia
Posts: 237
code:

//wait until buffer is empty
while (!stop && module->out->IsPlaying())
{
module->out->CanWrite();
Sleep(20);
}
module->out->Close();
PostMessage(module->hMainWindow, WM_WA_MPEG_EOF, 0, 0);


The out_ds crossfade will not work another way because it needs a bunch of hints to guess the crossfade situation. The major hint to crossfade there is the "outMod->IsPlaying()" call. But still it would not work properly without the code above on every crossfade capable plugin.
SilverBird775 is offline   Reply With Quote