src/mame/machine/n64.c
| r14684 | r14685 | |
| 1299 | 1299 | ai_status |= 0x40000000; |
| 1300 | 1300 | |
| 1301 | 1301 | // adjust the timer |
| 1302 | | period = attotime::from_hz(DACRATE_NTSC) * ((ai_dacrate + 1) * (current->length / 8)); |
| 1302 | period = attotime::from_hz(DACRATE_NTSC) * ((ai_dacrate + 1) * (current->length / 4)); |
| 1303 | 1303 | ai_timer->adjust(period); |
| 1304 | 1304 | } |
| 1305 | 1305 | |
| r14684 | r14685 | |
| 1339 | 1339 | { |
| 1340 | 1340 | double secs_left = (ai_timer->expire() - machine().time()).as_double(); |
| 1341 | 1341 | unsigned int samples_left = (UINT32)(secs_left * (double)DACRATE_NTSC / (double)(ai_dacrate + 1)); |
| 1342 | | ret = samples_left * 8; |
| 1342 | ret = samples_left * 4; |
| 1343 | 1343 | } |
| 1344 | 1344 | else |
| 1345 | 1345 | { |