Skip to content
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

No sound on Windows and Linux #588

Open
Doxo02 opened this issue Jan 21, 2025 · 3 comments
Open

No sound on Windows and Linux #588

Doxo02 opened this issue Jan 21, 2025 · 3 comments

Comments

@Doxo02
Copy link

Doxo02 commented Jan 21, 2025

I've been trying around for a little bit now and can't seem to be getting any sound output on either Windows or Linux.
I did try it on an old MacBook where it worked but i can't figure out why it won't on other Platforms.
Has anyone else experienced this?

@pseudo-rnd-thoughts
Copy link
Member

Hi @Doxo02, could you give some more details.
You are referring to using ALE with render mode human?

@Doxo02
Copy link
Author

Doxo02 commented Jan 23, 2025

Hi @pseudo-rnd-thoughts, yes I am referring to the human render mode.
Specifically I've tried this code:

import gymnasium as gym
import ale_py

env = gym.make('ALE/Breakout-v5', render_mode="human")  # remove render_mode in training
obs, info = env.reset()
episode_over = False

env.unwrapped.ale.setBool("sound", True)

while not episode_over:
    action = env.action_space.sample()
    obs, reward, terminated, truncated, info = env.step(action)

    episode_over = terminated or truncated
env.close()

@pseudo-rnd-thoughts
Copy link
Member

pseudo-rnd-thoughts commented Jan 24, 2025

I'll have a look this weekend on my windows and linux desktop to see if I can replicate the issue.

My guess is that SDL2 or Pygame have a problem on those two OSes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants