Skip to content

Commit

Permalink
ruby: Driver defaults fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
jcm93 committed Jan 11, 2025
1 parent b4b026d commit 5742e0b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ruby/audio/sdl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ struct AudioSDL : AudioDriver {
auto create() -> bool override {
super.setChannels(2);
super.setFrequency(48000);
super.setLatency(0);
super.setLatency(20);
return initialize();
}

Expand Down
10 changes: 5 additions & 5 deletions ruby/video/video.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -227,14 +227,14 @@ auto Video::hasDrivers() -> vector<string> {
auto Video::optimalDriver() -> string {
#if defined(VIDEO_WGL)
return "OpenGL 3.2";
#elif defined(VIDEO_METAL)
return "Metal";
#elif defined(VIDEO_GLX)
return "OpenGL 3.2";
#elif defined(VIDEO_DIRECT3D9)
return "Direct3D 9.0";
#elif defined(VIDEO_CGL)
return "OpenGL 3.2";
#elif defined(VIDEO_GLX)
return "OpenGL 3.2";
#elif defined(VIDEO_Metal)
return "Metal";
#else
return "None";
#endif
Expand All @@ -249,7 +249,7 @@ auto Video::safestDriver() -> string {
return "OpenGL 3.2";
#elif defined(VIDEO_GLX)
return "OpenGL 3.2";
#elif defined(VIDEO_Metal)
#elif defined(VIDEO_METAL)
return "Metal";
#else
return "None";
Expand Down

0 comments on commit 5742e0b

Please sign in to comment.