mirror of
https://github.com/holub/mame
synced 2025-04-22 00:11:58 +03:00
Merge pull request #4754 from moralrecordings/bsmtfix
bsmt2000: fix 4-bit ADPCM sample playback
This commit is contained in:
commit
933de4054a
@ -180,8 +180,8 @@ void bsmt2000_device::sound_stream_update(sound_stream &stream, stream_sample_t
|
||||
// just fill with current left/right values
|
||||
for (int samp = 0; samp < samples; samp++)
|
||||
{
|
||||
outputs[0][samp] = m_left_data * 16;
|
||||
outputs[1][samp] = m_right_data * 16;
|
||||
outputs[0][samp] = m_left_data;
|
||||
outputs[1][samp] = m_right_data;
|
||||
}
|
||||
}
|
||||
|
||||
@ -264,8 +264,8 @@ READ16_MEMBER( bsmt2000_device::tms_data_r )
|
||||
|
||||
READ16_MEMBER( bsmt2000_device::tms_rom_r )
|
||||
{
|
||||
// underlying logic assumes this is a sign-extended value
|
||||
return (int8_t)read_byte((m_rom_bank << 16) + m_rom_address);
|
||||
// DSP code expects a 16-bit value with the data in the high byte
|
||||
return (int16_t)(read_byte((m_rom_bank << 16) + m_rom_address) << 8);
|
||||
}
|
||||
|
||||
|
||||
|
@ -3664,7 +3664,7 @@ ROM_START( tattass )
|
||||
ROM_LOAD16_BYTE( "ob2_c2.b3", 0x700000, 0x80000, CRC(90fe5f4f) SHA1(2149e9eae152556c632ebd4d0b2de49e40916a77) )
|
||||
ROM_LOAD16_BYTE( "ob2_c3.b3", 0x700001, 0x80000, CRC(e3517e6e) SHA1(68ac60570423d8f0d7cff3db1901c9c050d0be91) )
|
||||
|
||||
ROM_REGION(0x1000000, "bsmt", 0 ) // are the sample roms 100% confirmed as good? some sounds cause everything to cut out followed by a loud static pop? (did the same before the bsmt decap)
|
||||
ROM_REGION(0x1000000, "bsmt", 0 )
|
||||
ROM_LOAD( "u17.snd", 0x000000, 0x80000, CRC(b945c18d) SHA1(6556bbb4a7057df3680132f24687fa944006c784) )
|
||||
ROM_LOAD( "u21.snd", 0x080000, 0x80000, CRC(10b2110c) SHA1(83e5938ed22da2874022e1dc8df76c72d95c448d) )
|
||||
ROM_LOAD( "u36.snd", 0x100000, 0x80000, CRC(3b73abe2) SHA1(195096e2302e84123b23b4ccd982fb3ab9afe42c) )
|
||||
|
Loading…
Reference in New Issue
Block a user