mirror of
https://github.com/holub/mame
synced 2025-10-06 17:08:28 +03:00
converted in sound and video section (nw)
This commit is contained in:
parent
3dcf442d7b
commit
22c7189362
@ -143,7 +143,7 @@ void ym2610_device::device_start()
|
|||||||
int rate = clock()/72;
|
int rate = clock()/72;
|
||||||
void *pcmbufa,*pcmbufb;
|
void *pcmbufa,*pcmbufb;
|
||||||
int pcmsizea,pcmsizeb;
|
int pcmsizea,pcmsizeb;
|
||||||
astring name;
|
std::string name(tag());
|
||||||
|
|
||||||
m_irq_handler.resolve();
|
m_irq_handler.resolve();
|
||||||
|
|
||||||
@ -156,7 +156,7 @@ void ym2610_device::device_start()
|
|||||||
/* setup adpcm buffers */
|
/* setup adpcm buffers */
|
||||||
pcmbufa = region()->base();
|
pcmbufa = region()->base();
|
||||||
pcmsizea = region()->bytes();
|
pcmsizea = region()->bytes();
|
||||||
name.printf("%s.deltat", tag());
|
name.append(".deltat");
|
||||||
pcmbufb = (void *)(machine().root_device().memregion(name.c_str())->base());
|
pcmbufb = (void *)(machine().root_device().memregion(name.c_str())->base());
|
||||||
pcmsizeb = machine().root_device().memregion(name.c_str())->bytes();
|
pcmsizeb = machine().root_device().memregion(name.c_str())->bytes();
|
||||||
if (pcmbufb == NULL || pcmsizeb == 0)
|
if (pcmbufb == NULL || pcmsizeb == 0)
|
||||||
|
@ -3673,14 +3673,13 @@ void ym2610_reset_chip(void *chip)
|
|||||||
FM_OPN *OPN = &F2610->OPN;
|
FM_OPN *OPN = &F2610->OPN;
|
||||||
YM_DELTAT *DELTAT = &F2610->deltaT;
|
YM_DELTAT *DELTAT = &F2610->deltaT;
|
||||||
|
|
||||||
astring name;
|
|
||||||
device_t* dev = F2610->OPN.ST.device;
|
device_t* dev = F2610->OPN.ST.device;
|
||||||
|
std::string name(dev->tag());
|
||||||
|
|
||||||
/* setup PCM buffers again */
|
/* setup PCM buffers again */
|
||||||
name.printf("%s",dev->tag());
|
|
||||||
F2610->pcmbuf = (const UINT8 *)dev->machine().root_device().memregion(name.c_str())->base();
|
F2610->pcmbuf = (const UINT8 *)dev->machine().root_device().memregion(name.c_str())->base();
|
||||||
F2610->pcm_size = dev->machine().root_device().memregion(name.c_str())->bytes();
|
F2610->pcm_size = dev->machine().root_device().memregion(name.c_str())->bytes();
|
||||||
name.printf("%s.deltat",dev->tag());
|
name.append(".deltat");
|
||||||
F2610->deltaT.memory = (UINT8 *)dev->machine().root_device().memregion(name.c_str())->base();
|
F2610->deltaT.memory = (UINT8 *)dev->machine().root_device().memregion(name.c_str())->base();
|
||||||
if(F2610->deltaT.memory == NULL)
|
if(F2610->deltaT.memory == NULL)
|
||||||
{
|
{
|
||||||
|
@ -1573,8 +1573,6 @@ void sega315_5124_device::device_start()
|
|||||||
m_pause_cb.resolve();
|
m_pause_cb.resolve();
|
||||||
|
|
||||||
/* Allocate video RAM */
|
/* Allocate video RAM */
|
||||||
astring tempstring;
|
|
||||||
|
|
||||||
m_frame_timing = (m_is_pal) ? pal_192 : ntsc_192;
|
m_frame_timing = (m_is_pal) ? pal_192 : ntsc_192;
|
||||||
|
|
||||||
/* Make temp bitmap for rendering */
|
/* Make temp bitmap for rendering */
|
||||||
|
@ -351,7 +351,7 @@ void ibm8514a_device::device_start()
|
|||||||
|
|
||||||
void ibm8514a_device::device_config_complete()
|
void ibm8514a_device::device_config_complete()
|
||||||
{
|
{
|
||||||
if(m_vga_tag.len() != 0)
|
if(m_vga_tag.length() != 0)
|
||||||
{
|
{
|
||||||
m_vga = machine().device<vga_device>(m_vga_tag.c_str());
|
m_vga = machine().device<vga_device>(m_vga_tag.c_str());
|
||||||
}
|
}
|
||||||
|
@ -237,7 +237,7 @@ public:
|
|||||||
ibm8514a_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source);
|
ibm8514a_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source);
|
||||||
ibm8514a_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
|
ibm8514a_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
|
||||||
|
|
||||||
void set_vga(const char* tag) { m_vga_tag.cpy(tag); }
|
void set_vga(const char* tag) { m_vga_tag.assign(tag); }
|
||||||
void set_vga_owner() { m_vga = dynamic_cast<vga_device*>(owner()); }
|
void set_vga_owner() { m_vga = dynamic_cast<vga_device*>(owner()); }
|
||||||
|
|
||||||
void enabled();
|
void enabled();
|
||||||
@ -343,7 +343,7 @@ protected:
|
|||||||
virtual void device_start();
|
virtual void device_start();
|
||||||
virtual void device_config_complete();
|
virtual void device_config_complete();
|
||||||
vga_device* m_vga; // for pass-through
|
vga_device* m_vga; // for pass-through
|
||||||
astring m_vga_tag; // pass-through device tag
|
std::string m_vga_tag; // pass-through device tag
|
||||||
private:
|
private:
|
||||||
void ibm8514_draw_vector(UINT8 len, UINT8 dir, bool draw);
|
void ibm8514_draw_vector(UINT8 len, UINT8 dir, bool draw);
|
||||||
void ibm8514_wait_draw_ssv();
|
void ibm8514_wait_draw_ssv();
|
||||||
|
@ -635,8 +635,6 @@ void tms9928a_device::set_palette()
|
|||||||
|
|
||||||
void tms9928a_device::device_start()
|
void tms9928a_device::device_start()
|
||||||
{
|
{
|
||||||
astring tempstring;
|
|
||||||
|
|
||||||
m_top_border = m_50hz ? TMS9928A_VERT_DISPLAY_START_PAL : TMS9928A_VERT_DISPLAY_START_NTSC;
|
m_top_border = m_50hz ? TMS9928A_VERT_DISPLAY_START_PAL : TMS9928A_VERT_DISPLAY_START_NTSC;
|
||||||
m_vertical_size = m_50hz ? TMS9928A_TOTAL_VERT_PAL : TMS9928A_TOTAL_VERT_NTSC;
|
m_vertical_size = m_50hz ? TMS9928A_TOTAL_VERT_PAL : TMS9928A_TOTAL_VERT_NTSC;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user