OSDN Git Service

[VM][General][WIP] Apply new (Upstream 2016-02-21) APIs to VMs.
[csp-qt/common_source_project-fm7.git] / source / src / vm / pv2000 / pv2000.h
index 5d69768..b652520 100644 (file)
@@ -33,6 +33,7 @@
 #define USE_AUTO_KEY           5
 #define USE_AUTO_KEY_RELEASE   6
 #define USE_AUTO_KEY_CAPS
+#define USE_SOUND_VOLUME       1
 #define USE_DEBUGGER
 #define USE_STATE
 #define USE_JOYSTICK
 #include "../../common.h"
 #include "../../fileio.h"
 
+#ifdef USE_SOUND_VOLUME
+static const _TCHAR *sound_device_caption[] = {
+       _T("PSG"),
+};
+#endif
+
 class EMU;
 class DEVICE;
 class EVENT;
@@ -107,7 +114,10 @@ public:
        // sound generation
        void initialize_sound(int rate, int samples);
        uint16* create_sound(int* extra_frames);
-       int sound_buffer_ptr();
+       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);
@@ -116,12 +126,12 @@ public:
        // user interface
        void open_cart(int drv, const _TCHAR* file_path);
        void close_cart(int drv);
-       bool cart_inserted(int drv);
+       bool is_cart_inserted(int drv);
        void play_tape(const _TCHAR* file_path);
        void rec_tape(const _TCHAR* file_path);
        void close_tape();
-       bool tape_inserted();
-       bool now_skip();
+       bool is_tape_inserted();
+       bool is_frame_skippable();
        
        void update_config();
        void save_state(FILEIO* state_fio);