summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/ui/sndmenu.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/ui/sndmenu.h')
-rw-r--r--src/emu/ui/sndmenu.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/src/emu/ui/sndmenu.h b/src/emu/ui/sndmenu.h
new file mode 100644
index 00000000000..8b13b38ea88
--- /dev/null
+++ b/src/emu/ui/sndmenu.h
@@ -0,0 +1,42 @@
+// license:BSD-3-Clause
+// copyright-holders:Dankan1890
+/***************************************************************************
+
+ ui/sndmenu.h
+
+ Internal UI user interface.
+
+***************************************************************************/
+
+#pragma once
+
+#ifndef __UI_SNDMENU_H__
+#define __UI_SNDMENU_H__
+
+//-------------------------------------------------
+// class sound options menu
+//-------------------------------------------------
+class ui_menu_sound_options : public ui_menu
+{
+public:
+ ui_menu_sound_options(running_machine &machine, render_container *container);
+ virtual ~ui_menu_sound_options();
+ virtual void populate() override;
+ virtual void handle() override;
+ virtual void custom_render(void *selectedref, float top, float bottom, float x, float y, float x2, float y2) override;
+
+private:
+ enum
+ {
+ ENABLE_SOUND = 1,
+ SAMPLE_RATE,
+ ENABLE_SAMPLES
+ };
+
+ UINT16 m_cur_rates;
+ static const int m_sound_rate[];
+ int m_sample_rate;
+ bool m_samples, m_sound;
+};
+
+#endif /* __UI_SNDMENU_H__ */