converted in sound and video section (nw)

This commit is contained in:
Miodrag Milanovic 2015-04-19 09:37:18 +02:00
parent 3dcf442d7b
commit 22c7189362
6 changed files with 7 additions and 12 deletions

View File

@ -143,7 +143,7 @@ void ym2610_device::device_start()
int rate = clock()/72;
void *pcmbufa,*pcmbufb;
int pcmsizea,pcmsizeb;
astring name;
std::string name(tag());
m_irq_handler.resolve();
@ -156,7 +156,7 @@ void ym2610_device::device_start()
/* setup adpcm buffers */
pcmbufa = region()->base();
pcmsizea = region()->bytes();
name.printf("%s.deltat", tag());
name.append(".deltat");
pcmbufb = (void *)(machine().root_device().memregion(name.c_str())->base());
pcmsizeb = machine().root_device().memregion(name.c_str())->bytes();
if (pcmbufb == NULL || pcmsizeb == 0)

View File

@ -3673,14 +3673,13 @@ void ym2610_reset_chip(void *chip)
FM_OPN *OPN = &F2610->OPN;
YM_DELTAT *DELTAT = &F2610->deltaT;
astring name;
device_t* dev = F2610->OPN.ST.device;
std::string name(dev->tag());
/* setup PCM buffers again */
name.printf("%s",dev->tag());
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();
name.printf("%s.deltat",dev->tag());
name.append(".deltat");
F2610->deltaT.memory = (UINT8 *)dev->machine().root_device().memregion(name.c_str())->base();
if(F2610->deltaT.memory == NULL)
{

View File

@ -1573,8 +1573,6 @@ void sega315_5124_device::device_start()
m_pause_cb.resolve();
/* Allocate video RAM */
astring tempstring;
m_frame_timing = (m_is_pal) ? pal_192 : ntsc_192;
/* Make temp bitmap for rendering */

View File

@ -351,7 +351,7 @@ void ibm8514a_device::device_start()
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());
}

View File

@ -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, 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 enabled();
@ -343,7 +343,7 @@ protected:
virtual void device_start();
virtual void device_config_complete();
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:
void ibm8514_draw_vector(UINT8 len, UINT8 dir, bool draw);
void ibm8514_wait_draw_ssv();

View File

@ -635,8 +635,6 @@ void tms9928a_device::set_palette()
void tms9928a_device::device_start()
{
astring tempstring;
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;