Skip to main content
Topic: Vis delay? (Read 2436 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Vis delay?

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.

Vis delay?

Reply #1
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);
   }
}

Vis delay?

Reply #2
Ok, but how does that help with the problem?
Im still getting the vis data from FB2K late.

Vis delay?

Reply #3
Uhm, the function indicated in bold in my post above:
Code: [Select]
 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.

Vis delay?

Reply #4
Quote
Uhm, the function indicated in bold in my post above:
Code: [Select]
 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.

 
SimplePortal 1.0.0 RC1 © 2008-2020