mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-02-06 21:47:44 +00:00
Change a PanicAlert to an ERROR_LOG. Should possibly report..
http://forums.ppsspp.org/showthread.php?tid=1310&page=3 Add a comment.
This commit is contained in:
parent
de72005b77
commit
23367925f1
@ -505,7 +505,8 @@ void SasInstance::MixVoice(SasVoice &voice) {
|
||||
u32 sampleFrac = voice.sampleFrac;
|
||||
int samplesToRead = (sampleFrac + voicePitch * std::max(0, grainSize - delay)) >> PSP_SAS_PITCH_BASE_SHIFT;
|
||||
if (samplesToRead > ARRAY_SIZE(mixTemp_) - 2) {
|
||||
PanicAlert("Too many samples to read! This shouldn't happen.");
|
||||
ERROR_LOG(SCESAS, "Too many samples to read (%d)! This shouldn't happen.", samplesToRead);
|
||||
samplesToRead = ARRAY_SIZE(mixTemp_) - 2;
|
||||
}
|
||||
voice.ReadSamples(&mixTemp_[2], samplesToRead);
|
||||
int tempPos = 2 + samplesToRead;
|
||||
|
@ -343,6 +343,8 @@ void GPU_D3D11::BeginFrameInternal() {
|
||||
}
|
||||
|
||||
void GPU_D3D11::SetDisplayFramebuffer(u32 framebuf, u32 stride, GEBufferFormat format) {
|
||||
// TODO: Some games like Spongebob - Yellow Avenger, never change framebuffer, they blit to it.
|
||||
// So breaking on frames doesn't work. Might want to move this to sceDisplay vsync.
|
||||
host->GPUNotifyDisplay(framebuf, stride, format);
|
||||
framebufferManagerD3D11_->SetDisplayFramebuffer(framebuf, stride, format);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user