Skip to content

Commit 8726cb3

Browse files
committed
fix
1 parent d7ddff0 commit 8726cb3

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

sources/libengine/sound/speaker.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,10 @@ namespace cage
147147
data.time = lastTime; // it must correspond to the beginning of the buffer, otherwise varying number of frames would skew it
148148
lastTime += request * 1000000 / sampleRate;
149149
if (request > data.frames)
150-
CAGE_LOG_DEBUG(SeverityEnum::Warning, "sound", "sound buffer overflow");
150+
{
151+
// sound buffer overflow
152+
// nothing to do
153+
}
151154
if (data.frames == 0)
152155
return;
153156

@@ -170,7 +173,8 @@ namespace cage
170173
CAGE_ASSERT(r == n);
171174
if (r == data.frames)
172175
return;
173-
//CAGE_LOG_DEBUG(SeverityEnum::Warning, "sound", "sound buffer underflow");
176+
177+
// sound buffer underflow
174178
float *buff = data.buffer.data() + r * channels;
175179
while (r < data.frames)
176180
{

sources/libengine/window/window.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ namespace cage
621621
{
622622
WindowImpl *impl = (WindowImpl *)this;
623623
#ifndef GCHL_WINDOWS_THREAD
624-
updateMouseMode();
624+
impl->updateMouseMode();
625625
{
626626
ScopeLock l(cageGlfwMutex());
627627
glfwPollEvents();

0 commit comments

Comments
 (0)