mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-06-07 19:31:19 -04:00
fix stuck note e.g. in Hyrule field
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user