From a37298e7bed28752e8dcbe8e37e355fe47bf5e99 Mon Sep 17 00:00:00 2001 From: Wohlstand Date: Sat, 29 Mar 2025 23:11:07 +0300 Subject: Added support for LLE OPL2 and OPL3 emulators Kept disabled by default because they are extremely heavy for ordinary processors. --- src/chips/ym3812_lle/nopl2.h | 45 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 src/chips/ym3812_lle/nopl2.h (limited to 'src/chips/ym3812_lle/nopl2.h') diff --git a/src/chips/ym3812_lle/nopl2.h b/src/chips/ym3812_lle/nopl2.h new file mode 100644 index 0000000..784f088 --- /dev/null +++ b/src/chips/ym3812_lle/nopl2.h @@ -0,0 +1,45 @@ +/* + * Copyright (C) 2023 nukeykt + * + * This file is part of YM3812-LLE. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * YM3812 emulator + * Thanks: + * Travis Goodspeed: + * YM3812 decap and die shot + * + */ + +#pragma once +#ifndef NOPL2_H +#define NOPL2_H + +#ifdef __cplusplus +extern "C" { +#endif + +void *nopl2_init(int clock, int samplerate); +void nopl2_set_rate(void *chip, int clock, int samplerate); +void nopl2_shutdown(void *chip); +void nopl2_reset(void *chip); + +void nopl2_getsample(void *chip, short *sndptr, int numsamples); +void nopl2_getsample_one_native(void *chip, short *sndptr); + +void nopl2_write(void *chip, int port, int val); + +#ifdef __cplusplus +} +#endif + +#endif /* NOPL2_H */ -- cgit v1.2.3