Git Product home page Git Product logo

Comments (8)

nojb avatar nojb commented on June 14, 2024

Hello, thank you for your report. However, precise reproduction instructions are needed in order to investigate any issue: what exact system are you using, how exactly did you try to use Graphics, what was the output (if any), etc.

from graphics.

Snirivasa avatar Snirivasa commented on June 14, 2024

I ran my code on VSCode which is installed on virtual machine powered by Debian.
Whenever I tried to execute the sound command, the code would compile correctly with no errors or abnormal output.
It would just not produce the sound.
I checked everything audio parameter and configuration and everything is fine.
The problem really seems to come from sound if I'm not mistaken.
Have I given enough data?

from graphics.

Octachron avatar Octachron commented on June 14, 2024

Did you open a graphics windows before using Graphics.sound?
How is the system bell configured in your system?
Can you hear the system bell?

from graphics.

Snirivasa avatar Snirivasa commented on June 14, 2024

I opened a graphic window before using the command.
I can hear the bell if testing the sound with speaker-test tests this parameter.
How can I check the bell configuration if it's not this?

from graphics.

Octachron avatar Octachron commented on June 14, 2024

As far as I can see speaker-test does not have an option to test the system bell?
You can try

echo -e "\a"

in a terminal.
However, it is important to note that Graphics.sound is not really a useful function; and I would be in fact in favor to deprecate it.

from graphics.

xavierleroy avatar xavierleroy commented on June 14, 2024

Graphics.sound might still work under Windows, but the X11 implementation based on XBeep seems to have stopped working a while ago. With Ubuntu 22.04 and with macOS, I get a standard terminal beep, but pitch and duration are ignored.

from graphics.

xavierleroy avatar xavierleroy commented on June 14, 2024

(For Ubuntu: remember to un-mute "System Sounds" in the Sound settings.)

from graphics.

Snirivasa avatar Snirivasa commented on June 14, 2024

Ok, thank you very much for your answers !
I took into account what you said. However, I confirm definitively that it's not working for Debian...
If Graphics.sound is not working, I'll, maybe, search for another solution if it exists.
Thanks

from graphics.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.