#include "memory.h"
#include "mfont.h"
-#include "../../fileio.h"
-
// ----------------------------------------------------------------------------
// initialize
// ----------------------------------------------------------------------------
return event->sound_buffer_ptr();
}
+#ifdef USE_SOUND_VOLUME
+void VM::set_sound_device_volume(int ch, int decibel_l, int decibel_r)
+{
+ if(ch == 0) {
+ pcm->set_volume(0, decibel_l, decibel_r);
+ }
+}
+#endif
+
// ----------------------------------------------------------------------------
// notify key
// ----------------------------------------------------------------------------
// user interface
// ----------------------------------------------------------------------------
-void VM::open_disk(int drv, _TCHAR* file_path, int bank)
+void VM::open_disk(int drv, const _TCHAR* file_path, int bank)
{
fdc->open_disk(drv, file_path, bank);
}
return fdc->disk_inserted(drv);
}
+void VM::set_disk_protected(int drv, bool value)
+{
+ fdc->set_disk_protected(drv, value);
+}
+
+bool VM::get_disk_protected(int drv)
+{
+ return fdc->get_disk_protected(drv);
+}
+
bool VM::now_skip()
{
return event->now_skip();