OSDN Git Service

[Qt][CONFIG][UI] Add config entries for pseudo-sounds (i.e. FDD,Relay).
authorK.Ohta <whatisthis.sowhat@gmail.com>
Sun, 9 Oct 2016 13:50:26 +0000 (22:50 +0900)
committerK.Ohta <whatisthis.sowhat@gmail.com>
Sun, 9 Oct 2016 13:50:26 +0000 (22:50 +0900)
56 files changed:
source/src/config.cpp
source/src/config.h
source/src/qt/common/menu_flags.cpp
source/src/qt/common/menu_flags.h
source/src/qt/gui/CMakeLists.txt
source/src/qt/gui/mainwidget_base.h
source/src/qt/gui/menu_main.cpp
source/src/vm/bmjr/bmjr.h
source/src/vm/datarec.cpp
source/src/vm/fm16pi/fm16pi.h
source/src/vm/fm7/fm7.h
source/src/vm/fmr30/fmr30.h
source/src/vm/fmr50/fmr50.h
source/src/vm/fp1100/fp1100.h
source/src/vm/fp200/fp200.h
source/src/vm/gamegear/gamegear.h
source/src/vm/hc20/hc20.h
source/src/vm/hc40/hc40.h
source/src/vm/hc80/hc80.h
source/src/vm/j3100/j3100.h
source/src/vm/jr100/jr100.h
source/src/vm/jx/jx.h
source/src/vm/m5/m5.h
source/src/vm/mb8877.cpp
source/src/vm/msx/msx.h
source/src/vm/multi8/multi8.h
source/src/vm/mycomz80a/mycomz80a.h
source/src/vm/mz2500/mz2500.h
source/src/vm/mz2500/mz80b.h
source/src/vm/mz2800/mz2800.h
source/src/vm/mz3500/mz3500.h
source/src/vm/mz5500/mz5500.h
source/src/vm/mz700/mz700.h
source/src/vm/mz80k/mz80k.h
source/src/vm/n5200/n5200.h
source/src/vm/pasopia/pasopia.h
source/src/vm/pasopia7/pasopia7.h
source/src/vm/pc100/pc100.h
source/src/vm/pc2001/pc2001.h
source/src/vm/pc6001/pc6001.h
source/src/vm/pc8201/pc8201.h
source/src/vm/pc8801/pc8801.h
source/src/vm/pc9801/pc9801.h
source/src/vm/pc98ha/pc98ha.h
source/src/vm/phc20/phc20.h
source/src/vm/phc25/phc25.h
source/src/vm/pyuta/pyuta.h
source/src/vm/qc10/qc10.h
source/src/vm/rx78/rx78.h
source/src/vm/sc3000/sc3000.h
source/src/vm/smc777/smc777.h
source/src/vm/t3444a.cpp
source/src/vm/upd765a.cpp
source/src/vm/x1/x1.h
source/src/vm/yalky/yalky.h
source/tool/installer_unix.sh

index 6dd9efd..44358d5 100644 (file)
@@ -165,6 +165,10 @@ void initialize_config()
 
        config.log_to_syslog = false;
        config.log_to_console = true;
+
+       config.sound_fdd = 1;
+       config.sound_relay = 0;
+       config.sound_buttons = 0;
 #endif 
 }
 
@@ -432,6 +436,10 @@ void load_config(const _TCHAR *config_path)
 
 #endif 
 #if defined(_USE_QT)
+       config.sound_fdd = MyGetPrivateProfileInt(_T("Emulator"), _T("SoundFDD"), config.sound_fdd, config_path);
+       config.sound_relay = MyGetPrivateProfileInt(_T("Emulator"), _T("SoundRelay"), config.sound_relay, config_path);
+       config.sound_buttons = MyGetPrivateProfileInt(_T("Emulator"), _T("SoundButtons"), config.sound_buttons, config_path);
+       
        config.log_to_syslog = MyGetPrivateProfileBool(_T("Emulator"), _T("WriteToSyslog"), config.log_to_syslog, config_path);
        config.log_to_console = MyGetPrivateProfileBool(_T("Emulator"), _T("WriteToConsole"), config.log_to_console, config_path);
        for(int ii = 0; ii < (CSP_LOG_TYPE_VM_DEVICE_END - CSP_LOG_TYPE_VM_DEVICE_0 + 1); ii++) {
@@ -679,6 +687,10 @@ void save_config(const _TCHAR *config_path)
        MyWritePrivateProfileInt(_T("Video"), _T("VideoFramerate"), config.video_frame_rate, config_path);
 #endif 
 #if defined(_USE_QT)
+       MyWritePrivateProfileInt(_T("Emulator"), _T("SoundFDD"), config.sound_fdd, config_path);
+       MyWritePrivateProfileInt(_T("Emulator"), _T("SoundRelay"), config.sound_relay, config_path);
+       MyWritePrivateProfileInt(_T("Emulator"), _T("SoundButtons"), config.sound_buttons, config_path);
+       
        MyWritePrivateProfileBool(_T("Emulator"), _T("WriteToSyslog"), config.log_to_syslog, config_path);
        MyWritePrivateProfileBool(_T("Emulator"), _T("WriteToConsole"), config.log_to_console, config_path);
        
@@ -709,8 +721,6 @@ void save_config(const _TCHAR *config_path)
 #if defined(_USE_QT) && !defined(Q_OS_WIN)
        csp_logger->debug_log(CSP_LOG_INFO, CSP_LOG_TYPE_GENERAL, "Write config done.");
 #endif
-
-       
 }
 
 #define STATE_VERSION  5
index 76f54eb..7a10e8a 100644 (file)
@@ -172,6 +172,10 @@ typedef struct {
        bool dev_log_to_syslog[CSP_LOG_TYPE_VM_DEVICE_END - CSP_LOG_TYPE_VM_DEVICE_0 + 1][8];
        bool dev_log_to_console[CSP_LOG_TYPE_VM_DEVICE_END - CSP_LOG_TYPE_VM_DEVICE_0 + 1][8];
        bool dev_log_recording[CSP_LOG_TYPE_VM_DEVICE_END - CSP_LOG_TYPE_VM_DEVICE_0 + 1][8];
+
+       int sound_fdd;
+       int sound_relay;
+       int sound_buttons;
 #endif
 } config_t;
 
index c906c26..6b37936 100644 (file)
@@ -80,6 +80,11 @@ USING_FLAGS::USING_FLAGS(config_t *cfg)
        use_sound_device_type = 0;
        use_sound_volume = 0;
        without_sound = false;
+       use_sound_files = false;
+       use_sound_files_fdd = false;
+       use_sound_files_relay = false;
+       use_sound_files_buttons = false;
+       
        use_special_reset = false;
 
        use_state = false;
@@ -420,6 +425,24 @@ USING_FLAGS::USING_FLAGS(config_t *cfg)
 #if defined(WITHOUT_SOUND)
        without_sound = true;
 #endif
+#if defined(USE_SOUND_FILES)
+       use_sound_files = true;
+# if !defined(USE_SOUND_FILES_FDD) && !defined(USE_SOUND_FILES_RELAY) && !defined(USE_SOUND_FILES_BUTTONS)
+       use_sound_files_fdd = true;
+       use_sound_files_relay = true;
+       use_sound_files_buttons = true;
+# else
+#  if defined(USE_SOUND_FILES_FDD)
+       use_sound_files_fdd = true;
+#  endif
+#  if defined(USE_SOUND_FILES_RELAY)
+       use_sound_files_relay = true;
+#  endif
+#  if defined(USE_SOUND_FILES_BUTTONS)
+       use_sound_files_buttons = true;
+#  endif
+# endif
+#endif
 #if defined(USE_SPECIAL_RESET)
        use_special_reset = true;
 #endif 
index d0a8d78..9add49f 100644 (file)
@@ -102,7 +102,11 @@ private:
        int use_sound_device_type;
        int use_sound_volume;
        bool without_sound;
-
+       bool use_sound_files;
+       bool use_sound_files_fdd;
+       bool use_sound_files_relay;
+       bool use_sound_files_buttons;
+       
        bool use_special_reset;
 
        bool use_state;
@@ -232,6 +236,10 @@ public:
        int get_use_sound_device_type() { return use_sound_device_type; }
        int get_use_sound_volume() { return use_sound_volume; }
        bool is_without_sound() { return without_sound; }
+       bool is_use_sound_files() { return use_sound_files; }
+       bool is_use_sound_files_fdd() { return use_sound_files_fdd; }
+       bool is_use_sound_files_relay() { return use_sound_files_relay; }
+       bool is_use_sound_files_buttons() { return use_sound_files_buttons; }
 
        bool is_use_special_reset() { return use_special_reset; }
 
index d0a4825..4d52391 100644 (file)
@@ -154,8 +154,8 @@ target_link_libraries(CSPgui PUBLIC
          )
 
 set_target_properties(CSPgui PROPERTIES 
-                            SOVERSION 2.3.1
-                            VERSION 2.3.1
+                            SOVERSION 2.3.2
+                            VERSION 2.3.2
                             )
 INSTALL(TARGETS CSPgui DESTINATION ${LIBCSP_INSTALL_DIR})
 endif()
index 41d081b..fab8fa9 100644 (file)
@@ -302,6 +302,9 @@ class DLL_PREFIX Ui_MainWindowBase : public QMainWindow
        class Action_Control *action_SetupKeyboard;
        class Action_Control *action_LogView;
        
+       class Action_Control *action_SoundFilesFDD;
+       class Action_Control *action_SoundFilesRelay;
+       class Action_Control *action_SoundFilesButtons;
        QMenu *menuLogToConsole;
        QMenu *menuLogToSyslog;
        QMenu *menuDevLogToConsole;
@@ -596,11 +599,14 @@ public slots:
        void set_printer_device(int);
        void do_show_about(void);
        void do_browse_document(QString);
+       
+       void do_set_sound_files_fdd(bool f);
+       void do_set_sound_files_relay(bool f);
+       void do_set_sound_files_buttons(bool f);
        void do_set_conslog(bool);
        void do_set_syslog(bool);
        void do_update_device_node_name(int id, const _TCHAR *name);    
        void do_set_dev_log_to_console(int id, bool f);
-
 signals:
        int message_changed(QString);
        int quit_emu_thread();
index a9ea635..5bdf172 100644 (file)
@@ -89,6 +89,34 @@ void Ui_MainWindowBase::do_browse_document(QString fname)
        dlg->show();
 }
 
+void Ui_MainWindowBase::do_set_sound_files_fdd(bool f)
+{
+       if(f) {
+               using_flags->get_config_ptr()->sound_fdd = 1;
+       } else {
+               using_flags->get_config_ptr()->sound_fdd = 0;
+       }
+}
+
+void Ui_MainWindowBase::do_set_sound_files_relay(bool f)
+{
+       if(f) {
+               using_flags->get_config_ptr()->sound_relay = 1;
+       } else {
+               using_flags->get_config_ptr()->sound_relay = 0;
+       }
+}
+
+void Ui_MainWindowBase::do_set_sound_files_buttons(bool f)
+{
+       if(f) {
+               using_flags->get_config_ptr()->sound_buttons = 1;
+       } else {
+               using_flags->get_config_ptr()->sound_buttons = 0;
+       }
+}
+
+
 void Ui_MainWindowBase::do_set_conslog(bool f)
 {
        using_flags->get_config_ptr()->log_to_console = f;
@@ -507,6 +535,18 @@ void Ui_MainWindowBase::setupUi(void)
        if(using_flags->is_use_joystick()) {
                connect(action_SetupJoystick, SIGNAL(triggered()), this, SLOT(rise_joystick_dialog()));
        }
+
+       if(using_flags->is_use_sound_files()) {
+               if(using_flags->is_use_sound_files_fdd()) {
+                       connect(action_SoundFilesFDD, SIGNAL(toggled(bool)), this, SLOT(do_set_sound_files_fdd(bool)));
+               }
+               if(using_flags->is_use_sound_files_relay()) {
+                       connect(action_SoundFilesRelay, SIGNAL(toggled(bool)), this, SLOT(do_set_sound_files_relay(bool)));
+               }
+               if(using_flags->is_use_sound_files_buttons()) {
+                       connect(action_SoundFilesButtons, SIGNAL(toggled(bool)), this, SLOT(do_set_sound_files_buttons(bool)));
+               }
+       }               
        connect(action_SetupKeyboard, SIGNAL(triggered()), this, SLOT(rise_keyboard_dialog()));
        connect(action_LogToSyslog, SIGNAL(toggled(bool)), this, SLOT(do_set_syslog(bool)));
        connect(action_LogToConsole, SIGNAL(toggled(bool)), this, SLOT(do_set_conslog(bool)));
@@ -555,6 +595,17 @@ void Ui_MainWindowBase::retranslateEmulatorMenu(void)
        action_LogToConsole->setText(QApplication::translate("MainWindow", "Log to Console", 0));
        action_LogToSyslog->setText(QApplication::translate("MainWindow", "Log to Syslog", 0));
        //action_LogRecord->setText(QApplication::translate("MainWindow", "Recording Log", 0));
+       if(using_flags->is_use_sound_files()) {
+               if(using_flags->is_use_sound_files_fdd()) {
+                       action_SoundFilesFDD->setText(QApplication::translate("MainWindow", "Sound FDD Seek", 0));
+               }
+               if(using_flags->is_use_sound_files_relay()) {
+                       action_SoundFilesRelay->setText(QApplication::translate("MainWindow", "Sound CMT Relay", 0));
+               }
+               if(using_flags->is_use_sound_files_buttons()) {
+                       action_SoundFilesButtons->setText(QApplication::translate("MainWindow", "Sound CMT Buttons", 0));
+               }
+       }               
        
        menuDevLogToConsole->setTitle(QApplication::translate("MainWindow", "Per Device", 0));
 
@@ -581,6 +632,12 @@ void Ui_MainWindowBase::CreateEmulatorMenu(void)
        menuEmulator->addSeparator();
        menuEmulator->addAction(action_LogView);
        menuEmulator->addSeparator();
+       if(using_flags->is_use_sound_files()) {
+               if(using_flags->is_use_sound_files_fdd())     menuEmulator->addAction(action_SoundFilesFDD);
+               if(using_flags->is_use_sound_files_relay())   menuEmulator->addAction(action_SoundFilesRelay);
+               if(using_flags->is_use_sound_files_buttons()) menuEmulator->addAction(action_SoundFilesButtons);
+               menuEmulator->addSeparator();
+       }
        if(using_flags->is_use_joystick()) {
                menuEmulator->addAction(action_SetupJoystick);
        }
@@ -595,6 +652,35 @@ void Ui_MainWindowBase::ConfigEmulatorMenu(void)
        if(using_flags->is_use_joystick()) {
                action_SetupJoystick = new Action_Control(this, using_flags);
        }
+       if(using_flags->is_use_sound_files()) {
+               if(using_flags->is_use_sound_files_fdd()) {
+                       action_SoundFilesFDD = new Action_Control(this, using_flags);
+                       action_SoundFilesFDD->setCheckable(true);
+                       action_SoundFilesFDD->setEnabled(true);
+                       action_SoundFilesFDD->setChecked(false);
+                       if(using_flags->get_config_ptr()->sound_fdd != 0) {
+                               action_SoundFilesFDD->setChecked(true);
+                       }
+               }
+               if(using_flags->is_use_sound_files_relay()) {
+                       action_SoundFilesRelay = new Action_Control(this, using_flags);
+                       action_SoundFilesRelay->setCheckable(true);
+                       action_SoundFilesRelay->setEnabled(true);
+                       action_SoundFilesRelay->setChecked(false);
+                       if(using_flags->get_config_ptr()->sound_relay != 0) {
+                               action_SoundFilesRelay->setChecked(true);
+                       }
+               }
+               if(using_flags->is_use_sound_files_buttons()) {
+                       action_SoundFilesButtons = new Action_Control(this, using_flags);
+                       action_SoundFilesButtons->setCheckable(true);
+                       action_SoundFilesButtons->setEnabled(true);
+                       action_SoundFilesButtons->setChecked(false);
+                       if(using_flags->get_config_ptr()->sound_buttons != 0) {
+                               action_SoundFilesButtons->setChecked(true);
+                       }
+               }
+       }
        action_LogToSyslog = new Action_Control(this, using_flags);
        action_LogToSyslog->setCheckable(true);
        action_LogToSyslog->setEnabled(true);
index 26c18b1..8eb2c02 100644 (file)
@@ -32,6 +32,8 @@
 //#define USE_CRT_FILTER
 //#define USE_SCANLINE
 #define USE_SOUND_FILES 2
+//#define USE_SOUND_FILES_FDD
+#define USE_SOUND_FILES_RELAY
 #if defined(USE_SOUND_FILES)
 #define USE_SOUND_VOLUME       3
 #else
index fb28bc8..16444c4 100644 (file)
@@ -1542,7 +1542,7 @@ void DATAREC::mix_sndfiles(int ch, int32_t *dst, int cnt, int16_t *src, int samp
                ptr = table[i];
                if(ptr >= 0) {
                        if(ptr < samples) {
-                               if(!snd_mute[ch]) {
+                               if(!snd_mute[ch] && ((config.sound_relay != 0) || (config.sound_buttons != 0))) {
                                        pp = ptr << 1;
                                        dst_tmp = dst;
                                        k = 0;
index ced3c33..e90446c 100644 (file)
@@ -38,6 +38,8 @@
 #define USE_NOTIFY_POWER_OFF
 #define USE_ACCESS_LAMP
 #define USE_SOUND_FILES                1
+#define USE_SOUND_FILES_FDD
+//#define USE_SOUND_FILES_RELAY
 #if defined(USE_SOUND_FILES)
 #define USE_SOUND_VOLUME       2
 #else
index cd188cb..c057704 100644 (file)
@@ -40,6 +40,8 @@
 #define USE_DIG_RESOLUTION
 #if defined(_USE_QT)
 #define USE_SOUND_FILES 3
+#define USE_SOUND_FILES_FDD
+#define USE_SOUND_FILES_RELAY
 #endif
 #if defined(_FM8)
 #define DEVICE_NAME            "FUJITSU FM-8"
index 8221134..338310d 100644 (file)
@@ -43,6 +43,7 @@
 #define USE_AUTO_KEY_RELEASE   6
 #define USE_ACCESS_LAMP
 #define USE_SOUND_FILES                1
+#define USE_SOUND_FILES_FDD
 #if defined(USE_SOUND_FILES)
 #define USE_SOUND_VOLUME       2
 #else
index a35e58d..6722d03 100644 (file)
@@ -89,6 +89,7 @@
 #define USE_CRT_FILTER
 #define USE_ACCESS_LAMP
 #define USE_SOUND_FILES                1
+#define USE_SOUND_FILES_FDD
 #if defined(USE_SOUND_FILES)
 #define USE_SOUND_VOLUME       2
 #else
index ded6b9d..b60ce5e 100644 (file)
 #define USE_TAPE_BAUD
 #define USE_FD1
 #define USE_FD2
-#define USE_SOUND_FILES                3
 //#define USE_FD3
 //#define USE_FD4
+#define USE_SOUND_FILES                3
+#define USE_SOUND_FILES_FDD
+#define USE_SOUND_FILES_RELAY
 #define NOTIFY_KEY_DOWN
 #define USE_SHIFT_NUMPAD_KEY
 #define USE_ALT_F10_KEY
index a15d54e..178bb61 100644 (file)
@@ -24,6 +24,7 @@
 #define MEMORY_ADDR_MAX                0x10000
 #define MEMORY_BANK_SIZE       0x2000
 #define USE_SOUND_FILES                3
+#define USE_SOUND_FILES_RELAY
 
 // device informations for win32
 #define WINDOW_MODE_BASE       2
index 89bc029..2e164e4 100644 (file)
@@ -25,6 +25,8 @@
 
 // device informations for win32
 #define USE_SOUND_FILES                        3
+#define USE_SOUND_FILES_FDD
+#define USE_SOUND_FILES_RELAY
 #define USE_CART1
 #define USE_FD1
 #define USE_TAPE
index 5ae0855..19b4c0e 100644 (file)
@@ -40,6 +40,7 @@
 #define USE_NOTIFY_POWER_OFF
 #define USE_ACCESS_LAMP
 #define USE_SOUND_FILES                        1
+#define USE_SOUND_FILES_FDD
 #if defined(USE_SOUND_FILES)
 #define USE_SOUND_VOLUME               2
 #else
index ffcaeda..d0793a7 100644 (file)
@@ -35,6 +35,8 @@
 #define USE_AUTO_KEY_RELEASE   10
 #define USE_ACCESS_LAMP
 #define USE_SOUND_FILES                        5
+#define USE_SOUND_FILES_FDD
+#define USE_SOUND_FILES_RELAY
 #if defined(USE_SOUND_FILES)
 #define USE_SOUND_VOLUME               3
 #else
index 6d3a826..20c1231 100644 (file)
@@ -36,6 +36,7 @@
 #define USE_AUTO_KEY_RELEASE   10
 #define USE_ACCESS_LAMP
 #define USE_SOUND_FILES                2
+//#define USE_SOUND_FILES_FDD
 //#if defined(USE_SOUND_FILES)
 //#define USE_SOUND_VOLUME     2
 //#else
index 30e15c9..5f924fc 100644 (file)
@@ -58,6 +58,7 @@
 #define USE_AUTO_KEY_RELEASE   6
 #define USE_ACCESS_LAMP
 #define USE_SOUND_FILES                2
+#define USE_SOUND_FILES_FDD
 #if defined(USE_SOUND_FILES)
 #define USE_SOUND_VOLUME       2
 #else
index a1dcc56..d00c7bc 100644 (file)
@@ -31,6 +31,7 @@
 //#define USE_CRT_FILTER
 //#define USE_SCANLINE
 #define USE_SOUND_FILES                2
+#define USE_SOUND_FILES_RELAY
 #if defined(USE_SOUND_FILES)
 #define USE_SOUND_VOLUME       3
 #else
index f6ff151..a5fdb91 100644 (file)
@@ -43,6 +43,7 @@
 #define USE_SCANLINE
 #define USE_ACCESS_LAMP
 #define USE_SOUND_FILES                2
+#define USE_SOUND_FILES_FDD
 #if defined(USE_SOUND_FILES)
 #define USE_SOUND_VOLUME       2
 #else
index f41595c..55b4d09 100644 (file)
@@ -31,6 +31,7 @@
 #define USE_AUTO_KEY           5
 #define USE_AUTO_KEY_RELEASE   8
 #define USE_SOUND_FILES                2
+#define USE_SOUND_FILES_RELAY
 #if defined(USE_SOUND_FILES)
 #define USE_SOUND_VOLUME       3
 #else
index 7137a16..d906b01 100644 (file)
@@ -1676,7 +1676,7 @@ void MB8877::mix_main(int32_t *dst, int count, int16_t *src, int *table, int sam
                ptr = table[i];
                if(ptr >= 0) {
                        if(ptr < samples) {
-                               if(!snd_mute) {
+                               if(!snd_mute && (config.sound_fdd != 0)) {
                                        pp = ptr << 1;
                                        dst_tmp = dst;
                                        k = 0;
index bb12db7..fd90f9f 100644 (file)
@@ -69,6 +69,8 @@
 #else
 #define USE_SOUND_FILES                3
 #endif
+#define USE_SOUND_FILES_FDD
+#define USE_SOUND_FILES_RELAY
 #if defined(USE_SOUND_FILES)
 #if defined(_PX7)
 #define USE_SOUND_VOLUME       5
index 8d11dbd..004b9be 100644 (file)
@@ -44,6 +44,8 @@
 #define USE_SCANLINE
 #define USE_ACCESS_LAMP
 #define USE_SOUND_FILES                2
+#define USE_SOUND_FILES_FDD
+//#define USE_SOUND_FILES_RELAY
 #if defined(USE_SOUND_FILES)
 #define USE_SOUND_VOLUME       3
 #else
index e628563..cad4696 100644 (file)
@@ -36,6 +36,8 @@
 #define USE_CRT_FILTER
 #define USE_SCANLINE
 #define USE_SOUND_FILES                2
+//#define USE_SOUND_FILES_FDD
+#define USE_SOUND_FILES_RELAY
 #if defined(USE_SOUND_FILES)
 #define USE_SOUND_VOLUME       3
 #else
index b33db62..703ab16 100644 (file)
@@ -37,6 +37,8 @@
 
 // device informations for win32
 #define USE_SOUND_FILES 4
+#define USE_SOUND_FILES_FDD
+#define USE_SOUND_FILES_BUTTONS
 #define USE_SPECIAL_RESET
 #define USE_FD1
 #define USE_FD2
index bcbf405..56a26c5 100644 (file)
@@ -50,6 +50,8 @@
 
 // device informations for win32
 #define USE_SOUND_FILES 4
+#define USE_SOUND_FILES_FDD
+#define USE_SOUND_FILES_BUTTONS
 #define USE_SPECIAL_RESET
 #define USE_FD1
 #define USE_FD2
index c68e9d5..67c0de9 100644 (file)
@@ -40,6 +40,7 @@
 #define USE_CRT_FILTER
 #define USE_ACCESS_LAMP
 #define USE_SOUND_FILES                2
+#define USE_SOUND_FILES_FDD
 #if defined(USE_SOUND_FILES)
 #define USE_SOUND_VOLUME       4
 #else
index 7fc08ce..60a8512 100644 (file)
@@ -46,6 +46,7 @@
 #define USE_SCANLINE
 #define USE_ACCESS_LAMP
 #define USE_SOUND_FILES                2
+#define USE_SOUND_FILES_FDD
 #if defined(USE_SOUND_FILES)
 #define USE_SOUND_VOLUME       2
 #else
index 4432a8e..1a2b939 100644 (file)
@@ -62,6 +62,7 @@
 #define USE_SCANLINE
 #define USE_ACCESS_LAMP
 #define USE_SOUND_FILES                2
+#define USE_SOUND_FILES_FDD
 #if defined(USE_SOUND_FILES)
 #define USE_SOUND_VOLUME       2
 #else
index d7dda60..354884e 100644 (file)
 #if defined(USE_SOUND_FILES)
 #if defined(_MZ700)
 #define USE_SOUND_VOLUME       3
+#define USE_SOUND_FILES_BUTTONS
 #elif defined(_MZ800)
 #define USE_SOUND_VOLUME       5
+#define USE_SOUND_FILES_BUTTONS
+#define USE_SOUND_FILES_FDD
+//#define USE_SOUND_FILES_QD
 #elif defined(_MZ1500)
 #define USE_SOUND_VOLUME       6
+#define USE_SOUND_FILES_BUTTONS
+#define USE_SOUND_FILES_FDD
 #endif
 #else
 #if defined(_MZ700)
index babc226..5918886 100644 (file)
@@ -50,6 +50,8 @@
 
 // device informations for win32
 #define USE_SOUND_FILES 4
+#define USE_SOUND_FILES_FDD
+#define USE_SOUND_FILES_BUTTONS
 #define USE_DIPSWITCH
 #define USE_TAPE
 #define USE_TAPE_BUTTON
index d6e2269..6a4c97f 100644 (file)
@@ -36,6 +36,7 @@
 #define USE_CRT_FILTER
 #define USE_ACCESS_LAMP
 #define USE_SOUND_FILES                2
+#define USE_SOUND_FILES_FDD
 #if defined(USE_SOUND_FILES)
 #define USE_SOUND_VOLUME       2
 #else
index 4a7dcee..1f94dbe 100644 (file)
 #endif
 #if defined(USE_SOUND_FILES)
 #define USE_SOUND_VOLUME       4
+#define USE_SOUND_FILES_FDD
+#ifdef _LCD
+#define USE_SOUND_FILES_BUTTONS
+#else
+#define USE_SOUND_FILES_RELAY
+#endif
 #else
 #define USE_SOUND_VOLUME       2
 #endif
index 9decfa8..26bbf61 100644 (file)
 #else
 #define USE_SOUND_FILES                5
 #endif
+#define USE_SOUND_FILES_FDD
+#ifdef _LCD
+#define USE_SOUND_FILES_BUTTONS
+#else
+#define USE_SOUND_FILES_RELAY
+#endif
 #if defined(USE_SOUND_FILES)
 #define USE_SOUND_VOLUME       6
 #else
index a3b930f..dab38f8 100644 (file)
@@ -44,6 +44,7 @@
 #define USE_SCREEN_ROTATE
 #define USE_ACCESS_LAMP
 #define USE_SOUND_FILES 2
+#define USE_SOUND_FILES_FDD
 #if defined(USE_SOUND_FILES)
 #define USE_SOUND_VOLUME       3
 #else
index ce7d61b..53dd3d6 100644 (file)
@@ -33,6 +33,7 @@
 #define USE_AUTO_KEY_CAPS_LOCK (0xf2 | 0x100)
 #define DONT_KEEEP_KEY_PRESSED
 #define USE_SOUND_FILES                3
+#define USE_SOUND_FILES_BUTTONS
 #if defined(USE_SOUND_FILES)
 #define USE_SOUND_VOLUME       3
 #else
index 58ffde6..2fa173a 100644 (file)
 #endif
 #define USE_ACCESS_LAMP
 #define USE_SOUND_FILES 3
+#define USE_SOUND_FILES_RELAY
 #if defined(USE_SOUND_FILES)
 #if defined(_PC6001)
 #define USE_SOUND_VOLUME       3
 #else
 #define USE_SOUND_VOLUME       4
+#define USE_SOUND_FILES_FDD
 #endif
 #else
 #if defined(_PC6001)
index 3a3bbd9..4d55b69 100644 (file)
@@ -34,6 +34,7 @@
 #define USE_AUTO_KEY_RELEASE   6
 #define USE_AUTO_KEY_CAPS
 #define USE_SOUND_FILES                3
+#define USE_SOUND_FILES_BUTTONS
 #if defined(USE_SOUND_FILES)
 #define USE_SOUND_VOLUME       3
 #else
index 40e8867..6740aac 100644 (file)
@@ -98,6 +98,8 @@
 #endif
 #endif
 #define USE_SOUND_FILES 3
+#define USE_SOUND_FILES_FDD
+//#define USE_SOUND_FILES_RELAY
 
 #if defined(USE_SOUND_FILES)
 #if    defined(SUPPORT_PC88_OPNA) &&  defined(SUPPORT_PC88_SB2) &&  defined(SUPPORT_PC88_PCG8100)
index c70934c..49e0c1b 100644 (file)
 #define USE_ACCESS_LAMP
 #define USE_SOUND_DEVICE_TYPE  5
 #define USE_SOUND_FILES 3
-
+#define USE_SOUND_FILES_FDD
+#if defined(USE_TAPE)
+#define USE_SOUND_FILES_RELAY
+#endif
 #if defined(USE_SOUND_FILES)
 #if defined(_PC98DO) || defined(_PC98DOPLUS)
 #if    defined(SUPPORT_PC98_OPNA) &&  defined(SUPPORT_PC88_OPNA)
index c239fd0..20db894 100644 (file)
@@ -49,6 +49,7 @@
 #define USE_AUTO_KEY_RELEASE   6
 #define USE_ACCESS_LAMP
 #define USE_SOUND_FILES                2
+#define USE_SOUND_FILES_FDD
 #if defined(USE_SOUND_FILES)
 #define USE_SOUND_VOLUME       2
 #else
index dfaccfa..c954743 100644 (file)
@@ -29,6 +29,7 @@
 #define USE_AUTO_KEY_RELEASE   10
 #define USE_AUTO_KEY_NO_CAPS
 #define USE_SOUND_FILES                2
+#define USE_SOUND_FILES_RELAY
 #if defined(USE_SOUND_FILES)
 #define USE_SOUND_VOLUME       2
 #else
index ddee992..b563881 100644 (file)
@@ -39,6 +39,7 @@
 #define USE_AUTO_KEY_RELEASE   10
 #define USE_AUTO_KEY_CAPS
 #define USE_SOUND_FILES                2
+#define USE_SOUND_FILES_RELAY
 #if defined(USE_SOUND_FILES)
 #define USE_SOUND_VOLUME       3
 #else
index 7a8a962..5544e64 100644 (file)
@@ -30,6 +30,7 @@
 #define USE_AUTO_KEY_RELEASE   6
 #define USE_AUTO_KEY_CAPS
 #define USE_SOUND_FILES                2
+#define USE_SOUND_FILES_RELAY
 #if defined(USE_SOUND_FILES)
 #define USE_SOUND_VOLUME       3
 #else
index 0851bd3..2658c19 100644 (file)
@@ -53,6 +53,7 @@
 #endif
 #define USE_SOUND_FILES                2
 #define USE_ACCESS_LAMP
+#define USE_SOUND_FILES_FDD
 #if defined(USE_SOUND_FILES)
 #define USE_SOUND_VOLUME       2
 #else
index 896b236..197b4f3 100644 (file)
@@ -29,6 +29,7 @@
 #define USE_AUTO_KEY_RELEASE   10
 #define USE_AUTO_KEY_CAPS
 #define USE_SOUND_FILES                2
+#define USE_SOUND_FILES_RELAY
 #if defined(USE_SOUND_FILES)
 #define USE_SOUND_VOLUME       3
 #else
index e6fa6cb..309e06b 100644 (file)
@@ -33,6 +33,8 @@
 #define USE_AUTO_KEY_CAPS
 #define USE_ACCESS_LAMP
 #define USE_SOUND_FILES                3
+#define USE_SOUND_FILES_FDD
+#define USE_SOUND_FILES_RELAY
 #if defined(USE_SOUND_FILES)
 #define USE_SOUND_VOLUME       4
 #else
index 47f3dd9..2b343c0 100644 (file)
@@ -55,6 +55,8 @@
 #define USE_SCANLINE
 #define USE_ACCESS_LAMP
 #define USE_SOUND_FILES                4
+#define USE_SOUND_FILES_FDD
+#define USE_SOUND_FILES_RELAY
 #if defined(USE_SOUND_FILES)
 #if defined(_SMC777)
 #define USE_SOUND_VOLUME       5
index cf17637..0b55a47 100644 (file)
@@ -861,7 +861,7 @@ void T3444A::mix_main(int32_t *dst, int count, int16_t *src, int *table, int sam
                ptr = table[i];
                if(ptr >= 0) {
                        if(ptr < samples) {
-                               if(!snd_mute) {
+                               if(!snd_mute && (config.sound_fdd != 0)) {
                                        pp = ptr << 1;
                                        dst_tmp = dst;
                                        k = 0;
index f139c5f..8b6e542 100644 (file)
@@ -1743,7 +1743,7 @@ void UPD765A::mix_main(int32_t *dst, int count, int16_t *src, int *table, int sa
                ptr = table[i];
                if(ptr >= 0) {
                        if(ptr < samples) {
-                               if(!snd_mute) {
+                               if(!snd_mute && (config.sound_fdd != 0)) {
                                        pp = ptr << 1;
                                        dst_tmp = dst;
                                        k = 0;
index 892c2d2..2c20d7c 100644 (file)
 // ToDo
 #define DATAREC_SOUND
 #define USE_SOUND_FILES             5
+#define USE_SOUND_FILES_FDD
+#define USE_SOUND_FILES_BUTTONS
 // CZ-8BS1 x1
 #define SOUND_DEVICE_TYPE_DEFAULT      1
 #if defined(USE_SOUND_FILES)
index 793d07e..fd1f546 100644 (file)
@@ -37,6 +37,7 @@
 #define USE_AUTO_KEY_RELEASE   6
 #define USE_AUTO_KEY_CAPS
 #define USE_SOUND_FILES                5
+#define USE_SOUND_FILES_BUTTONS
 #if defined(USE_SOUND_FILES)
 #define USE_SOUND_VOLUME       2
 #else
index fc88389..00d9945 100755 (executable)
@@ -7,7 +7,7 @@ LDCONFIG=/sbin/ldconfig
 CSP_ARCH="x86_64-linux-gnu"
 MULTIARCH="Yes"
 CSP_PREFIX=/usr/local
-CSP_GUILIB="libCSPgui.so.2.3.1 libCSPosd.so.2.5.0 libCSPemu_utils.so.2.2.0 libCSPavio.2.5.0"
+CSP_GUILIB="libCSPgui.so.2.3.2 libCSPosd.so.2.5.0 libCSPemu_utils.so.2.2.0 libCSPavio.2.5.0"
 
 for i in "$@"; do
   case "$1" in