summaryrefslogtreecommitdiffstatshomepage
path: root/src/frontend/mame/ui/sndmenu.h
blob: 8c6a2aef1eba8a93f718b9c0fe29904fd33ae268 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// license:BSD-3-Clause
// copyright-holders:Maurizio Petrarota
/***************************************************************************

    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(mame_ui_manager &mui, 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__ */