Example #1
0
void tune_cb(GtkWidget *widget, gpointer data) {
  if(getMox()==1) {
    setMox(0);
  }
  if(canTransmit() || tx_out_of_band) {
    setTune(getTune()==0?1:0);
    vfo_update(NULL);
  }
}
void AimpTuneController::check()
{
	HWND aimp = findAimp();
	if (getAimpStatus(aimp) == PLAYING) {
		sendTune(getTune());
	}
	else {
		clearTune();
	}
	PollingTuneController::check();
}
/**
 * Polls for new song info.
 */
void WinAmpTuneController::check()
{

	Tune tune;
#ifdef UNICODE
	HWND h = FindWindow(L"Winamp v1.x", NULL);
#else
	HWND h = FindWindow("Winamp v1.x", NULL);
#endif
	if (h && SendMessage(h, WM_WA_IPC, 0, IPC_ISPLAYING) == 1) {
		tune = getTune(h);
	}
	prevTune_ = tune;
	setInterval(NormInterval);
	PollingTuneController::check();
}