Skip to content

Serial (Link Cable) support #232

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix crash in SDL2 when sound is disabled
  • Loading branch information
Baekalfen committed May 21, 2025
commit fb364e5d54b776462b026601ce3924c1a2b42990
9 changes: 5 additions & 4 deletions pyboy/plugins/window_sdl2.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,10 +282,11 @@ def post_tick(self):

def paused(self, pause):
self.sound_paused = pause
if self.sound_paused:
sdl2.SDL_PauseAudioDevice(self.sound_device, 1)
else:
sdl2.SDL_PauseAudioDevice(self.sound_device, 0)
if self.sound_support:
if self.sound_paused:
sdl2.SDL_PauseAudioDevice(self.sound_device, 1)
else:
sdl2.SDL_PauseAudioDevice(self.sound_device, 0)

def enabled(self):
if self.pyboy_argv.get("window") in ("SDL2", None):
Expand Down
Loading