Help - Search - Members - Calendar
Full Version: Vis delay?
Hydrogenaudio Forums > Hosted Forums > foobar2000 > Development - (fb2k)
MWP
Hi all,

Is there a way to change the Vis delay?
Im finding that by the time i get the vis data and display it, its around 1/2 a second late.

Winamp2 allows for this, does FB2K have a similar delay value that can be changed?

Thanks.
Peter
class visualization : public service_base
{
public://all calls are from main thread
virtual void on_data(const vis_chunk * data)=0;
virtual void on_flush()=0;
virtual double get_expected_latency() {return 0;}//return time in seconds; allowed to change when running

//allowed to change in runtime
virtual bool is_active()=0;
virtual bool need_spectrum()=0;

static const GUID & get_class_guid();

static bool is_vis_manager_present()
{
static const GUID guid =
{ 0x5ca94fe1, 0x7593, 0x47de, { 0x8a, 0xdf, 0x8e, 0x36, 0xb4, 0x93, 0xa6, 0xd0 } };
return service_enum_is_present(guid);
}
}
MWP
Ok, but how does that help with the problem?
Im still getting the vis data from FB2K late.
Peter
Uhm, the function indicated in bold in my post above:
CODE
virtual double get_expected_latency()
does exactly what you want. Time to turn your brain on ?
More info here if you have any more issues with that function.
MWP
QUOTE(zZzZzZz @ Jan 2 2004, 10:42 PM)
Uhm, the function indicated in bold in my post above:
CODE
virtual double get_expected_latency()
does exactly what you want. Time to turn your brain on ?
More info here if you have any more issues with that function.

QUOTE
Time to turn your brain on?


Indeed...
Sorry, for some reason i got the impression that the function was used to get the delay time from FB2K...not a way for me to tell FB2K the delay.

Thanks.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.