OSDN Git Service

[Qt][CONFIG][UI] Add config entries for pseudo-sounds (i.e. FDD,Relay).
[csp-qt/common_source_project-fm7.git] / source / src / vm / j3100 / j3100.h
index 627dda5..5f924fc 100644 (file)
 #define USE_AUTO_KEY           5
 #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
+#define USE_SOUND_VOLUME       1
+#endif
 #include "../../common.h"
 #include "../../fileio.h"
 
+#ifdef USE_SOUND_VOLUME
+static const _TCHAR *sound_device_caption[] = {
+       _T("Beep"),
+#if defined(USE_SOUND_FILES)
+       _T("FDD Seek"),
+#endif
+};
+#endif
+
 class EMU;
 class DEVICE;
 class EVENT;
@@ -139,27 +154,29 @@ public:
        
        // draw screen
        void draw_screen();
-       int access_lamp();
+       uint32_t get_access_lamp_status();
        
        // sound generation
        void initialize_sound(int rate, int samples);
-       uint16* create_sound(int* extra_frames);
-       int sound_buffer_ptr();
+       uint16_t* create_sound(int* extra_frames);
+       int get_sound_buffer_ptr();
+#ifdef USE_SOUND_VOLUME
+       void set_sound_device_volume(int ch, int decibel_l, int decibel_r);
+#endif
        
        // notify key
        void key_down(int code, bool repeat);
        void key_up(int code);
        
        // user interface
-       void open_disk(int drv, _TCHAR* file_path, int bank);
-       void close_disk(int drv);
-       bool disk_inserted(int drv);
-       void set_disk_protected(int drv, bool value);
-       bool get_disk_protected(int drv);
-       bool now_skip();
+       void open_floppy_disk(int drv, const _TCHAR* file_path, int bank);
+       void close_floppy_disk(int drv);
+       bool is_floppy_disk_inserted(int drv);
+       void is_floppy_disk_protected(int drv, bool value);
+       bool is_floppy_disk_protected(int drv);
+       bool is_frame_skippable();
        
        void update_config();
-       void register_frame_event(DEVICE* dev);
        
        // ----------------------------------------
        // for each device