s98data.h

/* [<][>]
[^][v][top][bottom][index][help] */

FUNCTIONS

This source file includes following functions.
  1. OPNAWRAP
  2. S98_opnareg
  3. S98_waitsync

#ifndef _S98DATA_H
#define _S98DATA_H

#include <stdio.h>
#include "fmgen/opna.h"
#include "mymixer.h"

class OPNAWRAP {
/* [<][>][^][v][top][bottom][index][help] */
 public:
  OPNAWRAP(FM::OPNA& theopna) : opna(theopna){}
  FM::OPNA& opna;
  int rate;
};

class S98_opnareg {
/* [<][>][^][v][top][bottom][index][help] */
 private:
  OPNAWRAP& opna;
  int diag;
 public:
  S98_opnareg(OPNAWRAP& theopna, int thediag = 0) : 
    opna(theopna), diag(thediag){}

  void DoProc(unsigned int arg1, unsigned int arg2);
};

class S98_waitsync {
/* [<][>][^][v][top][bottom][index][help] */
 private:
  OPNAWRAP& opna;
  mymixer* mixer;

  int diag;
  FM_SAMPLETYPE* buf;
  int bufsize;
  short* outbuf;

 public:
  S98_waitsync(OPNAWRAP& theopna, mymixer* themixer, int thediag = 0);
  ~S98_waitsync(){ delete[] buf; delete[] outbuf; }

  void DoProc(int msec);
};
#endif

/* [<][>][^][v][top][bottom][index][help] */