mirror of
https://github.com/holub/mame
synced 2025-05-05 13:54:42 +03:00
Eliminate explicit temps in AI length calculation.
This commit is contained in:
parent
b1d19880e3
commit
b50dd9d548
@ -1302,9 +1302,7 @@ READ32_MEMBER( n64_periphs::ai_reg_r )
|
|||||||
{
|
{
|
||||||
if (ai_status & 0x40000000)
|
if (ai_status & 0x40000000)
|
||||||
{
|
{
|
||||||
double secs_left = (ai_timer->remaining()).as_double();
|
ret = 4 * (uint32_t)(ai_timer->remaining().as_double() * (double)DACRATE_NTSC / (double)(ai_dacrate + 1));
|
||||||
unsigned int samples_left = (uint32_t)(secs_left * (double)DACRATE_NTSC / (double)(ai_dacrate + 1));
|
|
||||||
ret = samples_left * 4;
|
|
||||||
}
|
}
|
||||||
else if (ai_status & 0x80000001)
|
else if (ai_status & 0x80000001)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user