diff options
author | Wohlstand <admin@wohlnet.ru> | 2025-03-29 23:11:07 +0300 |
---|---|---|
committer | Wohlstand <admin@wohlnet.ru> | 2025-03-29 23:11:56 +0300 |
commit | a37298e7bed28752e8dcbe8e37e355fe47bf5e99 (patch) | |
tree | d97e76f8c1acfd43626f8d1a0496090c32ca4fd6 /src/chips/ymf262_lle/nopl3.h | |
parent | e92a4d7285197ab2868aa36f975d73ceee915bea (diff) | |
download | libADLMIDI-a37298e7bed28752e8dcbe8e37e355fe47bf5e99.tar.gz libADLMIDI-a37298e7bed28752e8dcbe8e37e355fe47bf5e99.tar.bz2 libADLMIDI-a37298e7bed28752e8dcbe8e37e355fe47bf5e99.zip |
Added support for LLE OPL2 and OPL3 emulators
Kept disabled by default because they are extremely heavy for ordinary processors.
Diffstat (limited to 'src/chips/ymf262_lle/nopl3.h')
-rw-r--r-- | src/chips/ymf262_lle/nopl3.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/src/chips/ymf262_lle/nopl3.h b/src/chips/ymf262_lle/nopl3.h new file mode 100644 index 0000000..5ad3e75 --- /dev/null +++ b/src/chips/ymf262_lle/nopl3.h @@ -0,0 +1,45 @@ +/* + * Copyright (C) 2023 nukeykt + * + * This file is part of YMF262-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. + * + * YMF262 emulator + * Thanks: + * John McMaster (siliconpr0n.org): + * YMF262 decap and die shot + * + */ + +#pragma once +#ifndef NOPL3_H +#define NOPL3_H + +#ifdef __cplusplus +extern "C" { +#endif + +void *nopl3_init(int clock, int samplerate); +void nopl3_set_rate(void *chip, int clock, int samplerate); +void nopl3_shutdown(void *chip); +void nopl3_reset(void *chip); + +void nopl3_getsample(void *chip, short *sndptr, int numsamples); +void nopl3_getsample_one_native(void *chip, short *sndptr); + +void nopl3_write(void *chip, int port, int val); + +#ifdef __cplusplus +} +#endif + +#endif /* NOPL3_H */ |