FIX: Windows build crash 'app\static does not exist' (datas absolute + APP_DIR freeze-aware) + VU meter ARM/MIDI keyboard
This commit is contained in:
+11
-1
@@ -25744,8 +25744,18 @@ STRICT CONSTRAINTS:
|
||||
try {
|
||||
// Khi STOP (không play, không recording): vẽ VU RỖNG — không đọc analyser/
|
||||
// activity → hết animation dính + master không full sau khi dừng play.
|
||||
// ⚠️ NGOẠI LỆ: nếu có MIDI activity live (bật ARM track + bấm phím MIDI
|
||||
// keyboard — KHÔNG play/record) thì KHÔNG early-return — track VU phải
|
||||
// nhảy theo midiVuActivityRef + decay (user bug: ARM + phím MIDI → VU
|
||||
// đứng yên vì block này vẽ rỗng và return trước khi đọc activity).
|
||||
const isRecActive = activeAudioRecordersRef.current && Object.keys(activeAudioRecordersRef.current).length > 0;
|
||||
if (!isPlaying && !isRecActive) {
|
||||
let liveMidiVu = false;
|
||||
try {
|
||||
for (const _k in midiVuActivityRef.current) {
|
||||
if (midiVuActivityRef.current[_k] > 0.001) { liveMidiVu = true; break; }
|
||||
}
|
||||
} catch (e) { }
|
||||
if (!isPlaying && !isRecActive && !liveMidiVu) {
|
||||
setMasterVU(0);
|
||||
setMasterMeterPeak(0);
|
||||
Object.keys(trackVuRefs.current).forEach(k => {
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user