Fix issues, new tone sound for the OPL3

This commit is contained in:
Vincent Barrilliot 2023-11-11 23:54:58 +01:00
parent d1530dbbb6
commit 9875caf9da
4 changed files with 33 additions and 19 deletions

File diff suppressed because one or more lines are too long

View file

@ -942,7 +942,7 @@ const t_cli_test_feature cli_test_features[] = {
{"MIDITX", "MIDITX: send a note to a MIDI keyboard", midi_tx_test},
#endif
#if HAS_OPL3
{"OPL3", "OPL3: test the OPL3 sound chip", opl3_test},
{"OPL3", "OPL3 <delay>: test the OPL3 sound chip, with some optional delay between bytes", opl3_test},
#endif
#if HAS_OPN
{"OPN", "OPN [EXT|INT]: test the OPN sound chip", opn_test},

View file

@ -25,7 +25,7 @@
#define HAS_OPM 1
#define HAS_SNES_GAMEPAD 1
#define HAS_OPL3 1
#elif MODEL == MODEL_FOENIX_A2560U
#elif MODEL == MODEL_FOENIX_A2560U || MODEL == MODEL_FOENIX_A2560U_PLUS
#define HAS_OPL3 1
#elif MODEL == MODEL_FOENIX_C256U_PLUS || MODEL == MODEL_FOENIX_C256U
#define HAS_OPL3 1
@ -68,8 +68,8 @@
#define HAS_OPM 0
#endif
#ifndef HAS_OPL3 // YMF262 OPL3 soundchip presence
#define HAS_OPL3 0
#ifndef HAS_OPL3 // YMF262 OPL3 soundchip presence: all Foenix computer have it... we could remove that switch altogether.
#define HAS_OPL3 1
#endif
#ifndef HAS_SNES_GAMEPAD // Super Nintendo gamepad connectors (even if through adapter)

View file

@ -9,6 +9,8 @@
#if MODEL == MODEL_FOENIX_A2560K || MODEL == MODEL_FOENIX_GENX || MODEL == MODEL_FOENIX_A2560X
#include "A2560K/sound_a2560k.h"
#include "A2560K/YM2151.h"
#include "A2560K/YM2612_Ext.h"
#elif MODEL == MODEL_FOENIX_A2560U || MODEL == MODEL_FOENIX_A2560U_PLUS
#include "A2560U/sound_a2560u.h"