Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Vis delay? (Read 3244 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);
   }
}
Microsoft Windows: We can't script here, this is bat country.

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.
Microsoft Windows: We can't script here, this is bat country.

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.