mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-01-05 17:41:05 +00:00
5627a7ebd7
- Added full panning support to the Java OPL3 emulator. SVN r3969 (trunk)
29 lines
No EOL
659 B
C++
29 lines
No EOL
659 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 void WriteReg(int reg, int v) = 0;
|
|
virtual void Update(float *buffer, int length) = 0;
|
|
virtual void SetPanning(int c, float left, float right) = 0;
|
|
virtual FString GetVoiceString() { return FString(); }
|
|
};
|
|
|
|
OPLEmul *YM3812Create(bool stereo);
|
|
OPLEmul *DBOPLCreate(bool stereo);
|
|
OPLEmul *JavaOPLCreate(bool stereo);
|
|
|
|
#define OPL_SAMPLE_RATE 49716.0
|
|
#define CENTER_PANNING_POWER 0.70710678118 /* [RH] volume at center for EQP */
|
|
|
|
|
|
#endif |