blob: d8e303e9c479f40ed68da0ae0377f45c78a5c368 (
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
43
44
45
46
47
48
49
50
51
|
#include "sound/samples.h"
#define SAMPLE_LENGTH 32
class polyplay_state : public driver_device
{
public:
polyplay_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag) ,
m_videoram(*this, "videoram"),
m_characterram(*this, "characterram"){ }
required_shared_ptr<UINT8> m_videoram;
int m_freq1;
int m_freq2;
int m_channel_playing1;
int m_channel_playing2;
INT16 m_backgroundwave[SAMPLE_LENGTH];
int m_prescale1;
int m_prescale2;
int m_channel1_active;
int m_channel1_const;
int m_channel2_active;
int m_channel2_const;
timer_device* m_timer;
int m_last;
required_shared_ptr<UINT8> m_characterram;
DECLARE_WRITE8_MEMBER(polyplay_sound_channel);
DECLARE_WRITE8_MEMBER(polyplay_start_timer2);
DECLARE_READ8_MEMBER(polyplay_random_read);
DECLARE_WRITE8_MEMBER(polyplay_characterram_w);
virtual void machine_reset();
virtual void video_start();
virtual void palette_init();
};
/*----------- defined in audio/polyplay.c -----------*/
void polyplay_set_channel1(running_machine &machine, int active);
void polyplay_set_channel2(running_machine &machine, int active);
void polyplay_play_channel1(running_machine &machine, int data);
void polyplay_play_channel2(running_machine &machine, int data);
SAMPLES_START( polyplay_sh_start );
/*----------- defined in video/polyplay.c -----------*/
SCREEN_UPDATE_IND16( polyplay );
|