namcos86 fix sample playback
This commit is contained in:
parent
ac739c0527
commit
fedc39aded
|
@ -57,12 +57,12 @@ static UINT8 DrvReset;
|
||||||
|
|
||||||
struct voice_63701x
|
struct voice_63701x
|
||||||
{
|
{
|
||||||
int select;
|
INT32 select;
|
||||||
int playing;
|
INT32 playing;
|
||||||
int base_addr;
|
INT32 base_addr;
|
||||||
int position;
|
INT32 position;
|
||||||
int volume;
|
INT32 volume;
|
||||||
int silence_counter;
|
INT32 silence_counter;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct voice_63701x m_voices[2];
|
struct voice_63701x m_voices[2];
|
||||||
|
@ -537,8 +537,6 @@ static void namco_63701x_write(INT32 offset, UINT8 data)
|
||||||
m_voices[ch].position = (DrvSndROM[rom_offs] << 8) + DrvSndROM[rom_offs+1];
|
m_voices[ch].position = (DrvSndROM[rom_offs] << 8) + DrvSndROM[rom_offs+1];
|
||||||
m_voices[ch].volume = data >> 6;
|
m_voices[ch].volume = data >> 6;
|
||||||
m_voices[ch].silence_counter = 0;
|
m_voices[ch].silence_counter = 0;
|
||||||
|
|
||||||
m_voices[ch].position = (m_voices[ch].position * nBurnSoundLen) / 100 /*6000 / 60fps clock */;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue