Commit d20e119
Motor sound: sampled-path fixes + per-engine feature flags
- Sampled path now picks up revDetector's revBump in rpmNorm so a throttle
blip pitches the sample up briefly, matching the synth path.
- SampledEnginePlayer pauses MediaPlayer when the idle envelope fully fades
out (volume < 0.01) and resumes on the next non-silent tick. Save the
decode loop on long parked stretches.
- Reset pwmEverNonZero / smoothed state on disconnect so a fresh BLE
session re-discovers PWM capability instead of inheriting the last
wheel's stale "trust PWM" flag.
- Beef out EngineProfile with supportsMuffler / supportsPops /
supportsBrakeWhine plus optional popSampleAsset / brakeWhineSampleAsset
fields. ICE/synth default true (in-house DSP). All 14 sampled profiles
flip to false for now — groundwork for SoundPool sidecar + per-engine
UI disables once we ship the SFX assets.
- DiagnosticsLogger.info() milestone logging when engine type changes or
sound is toggled. Off when service mode is off; cheap.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 930bb29 commit d20e119
3 files changed
Lines changed: 97 additions & 18 deletions
File tree
- app/src/main/java/com/eried/eucplanet/audio
Lines changed: 46 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
66 | 83 | | |
67 | 84 | | |
68 | 85 | | |
| |||
314 | 331 | | |
315 | 332 | | |
316 | 333 | | |
317 | | - | |
| 334 | + | |
| 335 | + | |
318 | 336 | | |
319 | 337 | | |
320 | 338 | | |
321 | 339 | | |
322 | 340 | | |
323 | 341 | | |
324 | | - | |
| 342 | + | |
| 343 | + | |
325 | 344 | | |
326 | 345 | | |
327 | 346 | | |
328 | 347 | | |
329 | 348 | | |
330 | 349 | | |
331 | | - | |
| 350 | + | |
| 351 | + | |
332 | 352 | | |
333 | 353 | | |
334 | 354 | | |
335 | 355 | | |
336 | 356 | | |
337 | 357 | | |
338 | | - | |
| 358 | + | |
| 359 | + | |
339 | 360 | | |
340 | 361 | | |
341 | 362 | | |
342 | 363 | | |
343 | 364 | | |
344 | 365 | | |
345 | | - | |
| 366 | + | |
| 367 | + | |
346 | 368 | | |
347 | 369 | | |
348 | 370 | | |
349 | 371 | | |
350 | 372 | | |
351 | 373 | | |
352 | 374 | | |
353 | | - | |
| 375 | + | |
| 376 | + | |
354 | 377 | | |
355 | 378 | | |
356 | 379 | | |
357 | 380 | | |
358 | 381 | | |
359 | 382 | | |
360 | | - | |
| 383 | + | |
| 384 | + | |
361 | 385 | | |
362 | 386 | | |
363 | 387 | | |
364 | 388 | | |
365 | 389 | | |
366 | 390 | | |
367 | | - | |
| 391 | + | |
| 392 | + | |
368 | 393 | | |
369 | 394 | | |
370 | 395 | | |
371 | 396 | | |
372 | 397 | | |
373 | 398 | | |
374 | | - | |
| 399 | + | |
| 400 | + | |
375 | 401 | | |
376 | 402 | | |
377 | 403 | | |
378 | 404 | | |
379 | 405 | | |
380 | 406 | | |
381 | | - | |
| 407 | + | |
| 408 | + | |
382 | 409 | | |
383 | 410 | | |
384 | 411 | | |
385 | 412 | | |
386 | 413 | | |
387 | 414 | | |
388 | | - | |
| 415 | + | |
| 416 | + | |
389 | 417 | | |
390 | 418 | | |
391 | 419 | | |
392 | 420 | | |
393 | 421 | | |
394 | 422 | | |
395 | | - | |
| 423 | + | |
| 424 | + | |
396 | 425 | | |
397 | 426 | | |
398 | 427 | | |
399 | 428 | | |
400 | 429 | | |
401 | 430 | | |
402 | | - | |
| 431 | + | |
| 432 | + | |
403 | 433 | | |
404 | 434 | | |
405 | 435 | | |
406 | 436 | | |
407 | 437 | | |
408 | 438 | | |
409 | | - | |
| 439 | + | |
| 440 | + | |
410 | 441 | | |
411 | 442 | | |
412 | 443 | | |
| |||
Lines changed: 35 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
| 85 | + | |
| 86 | + | |
84 | 87 | | |
85 | 88 | | |
86 | 89 | | |
| |||
91 | 94 | | |
92 | 95 | | |
93 | 96 | | |
| 97 | + | |
94 | 98 | | |
95 | 99 | | |
96 | 100 | | |
| |||
100 | 104 | | |
101 | 105 | | |
102 | 106 | | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
103 | 122 | | |
104 | 123 | | |
105 | 124 | | |
| |||
120 | 139 | | |
121 | 140 | | |
122 | 141 | | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
123 | 154 | | |
124 | 155 | | |
125 | 156 | | |
| |||
408 | 439 | | |
409 | 440 | | |
410 | 441 | | |
411 | | - | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
412 | 446 | | |
413 | 447 | | |
414 | 448 | | |
| |||
Lines changed: 16 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
91 | 102 | | |
92 | 103 | | |
93 | 104 | | |
94 | 105 | | |
95 | | - | |
| 106 | + | |
96 | 107 | | |
97 | 108 | | |
98 | 109 | | |
| |||
101 | 112 | | |
102 | 113 | | |
103 | 114 | | |
104 | | - | |
105 | 115 | | |
106 | 116 | | |
107 | 117 | | |
| |||
112 | 122 | | |
113 | 123 | | |
114 | 124 | | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
115 | 129 | | |
116 | 130 | | |
0 commit comments