fix stuck note e.g. in Hyrule field

This commit is contained in:
Lurs
2026-03-27 12:23:41 +01:00
parent 2240c04cec
commit 258d42b49e
2 changed files with 12 additions and 1 deletions
+7 -1
View File
@@ -585,7 +585,13 @@ void* operator new(size_t size JKR_HEAP_TOKEN_PARAM, int alignment) {
#endif
void* operator new(size_t size JKR_HEAP_TOKEN_PARAM, JKRHeap* heap, int alignment) {
return JKRHeap::alloc(size, alignment, heap);
void* mem = JKRHeap::alloc(size, alignment, heap);
#if TARGET_PC
if (mem == nullptr) {
return fallback_alloc(size, abs(alignment), true);
}
#endif
return mem;
}
#if !TARGET_PC
+5
View File
@@ -125,6 +125,11 @@ void dusk::audio::DspRender(OutputSubframe& subframe) {
continue;
}
if (channel.mForcedStop) {
channel.mIsFinished = true;
continue;
}
if (channel.mBytesPerBlock == 0) {
// I think these are oscillator channels? Not backed by audio.
channel.mIsFinished = true;