Comments (8)
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.
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.
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.
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.
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.
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.
(For Ubuntu: remember to un-mute "System Sounds" in the Sound settings.)
from graphics.
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)
- Rectangle madness HOT 3
- Graphics background color under Windows HOT 4
- Higher version number HOT 9
- Re: ocaml: module Graphics: type event should include a resize event
- Make Graphics module use modern X fonts instead of X core fonts
- release graphics in opam for ocaml 4.09.0 HOT 13
- 4.10 dune runtest fails undefined reference to caml_process_pending_signals HOT 1
- Unable to install on Mac OS 10.14.6 HOT 33
- Unable to install graphics on a fresh opam installation on Mac OS 10.14.6 HOT 6
- Does this library work for the Windows Linux Subsystem? HOT 4
- Cannot build graphics 5.0.1 on Linux HOT 3
- License exception may need an update HOT 2
- Compilation on native Windows fails HOT 5
- opam install graphics fail on windows. HOT 2
- Cannot load graphics library on ARM macOS HOT 2
- bug in fill_rect
- Cannot install graphics in ubuntu 20.04 on Windows laptop HOT 2
- Question: how to handle close of window? HOT 2
- Mac: Fatal error: exception Graphics.Graphic_failure("Cannot open display ") HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from graphics.