mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-12-14 06:11:36 +00:00
21 lines
405 B
C
21 lines
405 B
C
|
#ifndef OPL_H
|
||
|
#define OPL_H
|
||
|
|
||
|
#include "zstring.h"
|
||
|
|
||
|
// Abstract base class for OPL emulators
|
||
|
|
||
|
class OPLEmul
|
||
|
{
|
||
|
public:
|
||
|
OPLEmul() {}
|
||
|
virtual ~OPLEmul() {}
|
||
|
|
||
|
virtual void Reset() = 0;
|
||
|
virtual int Write(int a, int v) = 0;
|
||
|
virtual void Update(float *buffer, int length) = 0;
|
||
|
virtual void SetPanning(int c, int pan) = 0;
|
||
|
virtual FString GetVoiceString() { return FString(); }
|
||
|
};
|
||
|
|
||
|
#endif
|