mirror of
https://github.com/holub/mame
synced 2025-05-23 06:08:48 +03:00
fix loop overflow
This commit is contained in:
parent
bf178883fb
commit
3b23aa9e97
@ -370,10 +370,7 @@ static STREAM_UPDATE( ymf278b_pcm_update )
|
||||
{
|
||||
slot->stepptr = slot->stepptr - slot->endaddr + slot->loopaddr;
|
||||
if (slot->stepptr >= slot->endaddr)
|
||||
{
|
||||
logerror("YMF278B: Sample loop overflow\n");
|
||||
// note: if the step is bigger than the loop, sample will become garbage but continue anyway!
|
||||
}
|
||||
slot->stepptr = slot->loopaddr;
|
||||
}
|
||||
|
||||
switch (slot->bits)
|
||||
|
Loading…
Reference in New Issue
Block a user