Fix audio bug

This commit is contained in:
Miloslav Ciz 2025-03-24 16:27:19 +01:00
parent 139bb2f905
commit 92968360a1
3 changed files with 6 additions and 5 deletions

View file

@ -61,8 +61,6 @@
=========== BUGS =================
- sometimes the games prints huge long ass number of newlines, WHY (happens
when driving on accelerator)
- immediately after starting the map countdown seems to be lower
- the pinch collision test seems to sometimes stop the car e.g. after falling
from bigger height or when running into ramp at high speed (or not?) - FIX
@ -70,6 +68,8 @@
=========== HANDLED ==============
- add ifdefs that change car color?
- sometimes the games prints huge long ass number of newlines, WHY (happens
when driving on accelerator)
- add indicator that menu can be scrolled down
- sometimes getting a SLIGHTLY slower time counts as beating it (prolly
conversion fail) (SEEMS FIXED NOW)

View file

@ -120,13 +120,12 @@ uint8_t LCR_audioGetNextSample(void)
}
case LCR_SOUND_ACCELERATOR:
result = putchar(((LCR_audio.soundPlayedFrame * 14 +
result = (LCR_audio.soundPlayedFrame * 14 +
(((LCR_audio.soundPlayedFrame >> 2) * (LCR_audio.soundPlayedFrame >> 6))
>> 4)) & 0x0f));
>> 4)) & 0x0f;
if (LCR_audio.soundPlayedFrame >= 4000)
LCR_audio.soundPlayed = LCR_SOUND_NONE;
break;
case LCR_SOUND_FAN:

2
data
View file

@ -0,0 +1,2 @@
#RLCtiny1;00LCtiny1;7e39e006 0000336:0011:0143:0051:0079:0081:0073:0051:00e3:0021:00b9:0031:0139:00a1:00a9:0051:00e3:0041:0093:0031:00d3:0051:0013:0031:0053:0017:0016:0017:0016:0012:0163:0101:0023:0021:0083:0031:0215:0031:01d3:0041:0099:0031:00b9
#BLCtiny1;