Skip to content

Commit 470df21

Browse files
committed
update sounds
1 parent e471698 commit 470df21

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

externals/cage

Submodule cage updated 58 files

sources/engine/listSpeakers.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ void testDevice(const String &deviceId, uint32 sampleRate)
4545
uint64 t = tmr->duration();
4646
if (t > 3 * 1000 * 1000)
4747
break;
48-
speaker->process(t);
49-
threadSleep(1000);
48+
speaker->process(5'000);
49+
threadSleep(5'000);
5050
}
5151
CAGE_LOG(SeverityEnum::Info, "speaker", "play stop");
5252
}

sources/engine/rawWindow.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ int main(int argc, char *args[])
3030
log1->output.bind<logOutputStdOut>();
3131

3232
// window
33-
Holder<Window> window = newWindow({});
33+
Holder<Window> window = newWindow({ .vsync = false });
3434
const auto closeListener = window->events.listen(inputFilter([](input::WindowClose) { closing = true; }));
3535
window->title("cage test logo");
3636
detail::initializeOpengl();
@@ -85,8 +85,8 @@ int main(int argc, char *args[])
8585
res = window->resolution();
8686
glViewport(0, 0, res[0], res[1]);
8787
model->dispatch();
88-
speaker->process(applicationTime());
89-
threadSleep(10000);
88+
speaker->process(10'000);
89+
threadSleep(9'900);
9090
window->swapBuffers();
9191
window->processEvents();
9292
}

0 commit comments

Comments
 (0)