fix pbillian/hotsmash samples
This commit is contained in:
parent
d877507952
commit
0240133a05
@ -131,12 +131,14 @@ static WRITE8_HANDLER( pbillian_sample_trigger_w )
|
|||||||
{
|
{
|
||||||
superqix_state *state = space->machine->driver_data<superqix_state>();
|
superqix_state *state = space->machine->driver_data<superqix_state>();
|
||||||
device_t *samples = space->machine->device("samples");
|
device_t *samples = space->machine->device("samples");
|
||||||
|
UINT8 *src = space->machine->region("samples")->base();
|
||||||
|
int len = space->machine->region("samples")->bytes();
|
||||||
int start,end;
|
int start,end;
|
||||||
|
|
||||||
start = data << 7;
|
start = data << 7;
|
||||||
/* look for end of sample marker */
|
/* look for end of sample marker */
|
||||||
end = start;
|
end = start;
|
||||||
while (end < 0x8000 && state->samplebuf[end] != (0xff^0x80))
|
while (end < len && src[end] != 0xff)
|
||||||
end++;
|
end++;
|
||||||
|
|
||||||
sample_start_raw(samples, 0, state->samplebuf + start, end - start, 5000, 0); // 5khz ?
|
sample_start_raw(samples, 0, state->samplebuf + start, end - start, 5000, 0); // 5khz ?
|
||||||
|
Loading…
Reference in New Issue
Block a user