
  int i, j;
  float t;
  float numbs[16384];
  static char buffer[200000];
  static char U[320*240], V[320*240];
  FILE *fp;
//  OggVorbis_File oggi;
  int bufsiz;
  unsigned time0, timex;
  SDL_Surface *screen;
  SDL_Overlay *ovl;
  SDL_Color colors[256];
  static int graffa[320*200];
  int effu=argc>1?atoi(argv[1]):0;
 

  rando=time(0)>>20;

  fprintf(stderr, "d-2\n");

  fprintf(stderr, "d-1\n");
  if (SDL_Init(SDL_INIT_VIDEO)<0) {
    fprintf(stderr, "sdlerror %s\n", SDL_GetError());
    return 1;
  }
  atexit(SDL_Quit);
  fprintf(stderr, "d0\n");
  fprintf(stderr, "d1\n");
  screen=SDL_SetVideoMode(640, 480, 16, SDL_SWSURFACE|SDL_FULLSCREEN);
  fprintf(stderr, "d2\n");
  SDL_ShowCursor(0);
  fprintf(stderr, "d3\n");

  ovl=SDL_CreateYUVOverlay(320, 240, SDL_IYUV_OVERLAY, screen);

  for (i=0; i<16384; i++) numbs[i]=1+(rand()*(1./RAND_MAX));

  t=0;
  fprintf(stderr, "d4\n");

  SDL_EventState(SDL_KEYDOWN, SDL_ENABLE);
  SDL_EventState(SDL_QUIT, SDL_ENABLE);
  fprintf(stderr, "d5\n");


  


  {
    int x, y;
    float a, b, c;
    float f=rando*(2*3.141592653589793238462648336675485856345634564*1048576/3600./24./365.24)-.3;
    float k=cos(f);
    float s=cos(f+2);
    float n=.03*exp(sin(f)*sin(f)*.5);
    for (y=0; y<120; y++) for (x=0; x<160; x++) {
      a=x*.02+sin(y*.03); b=y*.02+sin(x*.03);
      
/*      ovl->pixels[1][y*320+x]=128+sin(a+b)*13+cos(a-b)*16+rand()*(4./RAND_MAX);
      ovl->pixels[2][y*320+x]=128+sin(a-b)*5+cos(a+b)*4+rand()*(4./RAND_MAX);*/
      U[y*160+x]=rajo807f((noise2(x*n, y*n, 0)-.5)*160.5+96*k);
      V[y*160+x]=rajo807f((noise2(x*n, y*n, 3)-.5)*191.5+48*s);
    }
  }
  for (j=0; j<5; j++) {
//    for (i=0; i<256; i++) tsot[j].map[i]=-1+2*cube(.5-.5*cos(((i+128&255)-128)*.2))-.2;
    for (i=0; i<256; i++) tsot[j].map[i]=-1+2*(.5-.5*cos(((i+128&255)-128)*.2))+.5*sin(((i+128&255)-128)*.05);//-.2;
  }

  for (i=0; i<256; i++) tsot[3].map[i]=sin(((i+128&255)-128)*.5)*.05;
  for (i=0; i<256; i++) tsot[4].map[i]=sin(((i+128&255)-128)*.5)*.05;

  presumu();
  desing_precalc();
  fprintf(stderr, "d5\n");
  time0=SDL_GetTicks();
  Player_Start(module);
  md_reverb=12; 
  md_musicvolume=42;
  











  
