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

Graphics.sound provides a normal system beep instead of the requested frequency #7463

Closed
vicuna opened this issue Jan 19, 2017 · 1 comment
Closed

Comments

@vicuna
Copy link

vicuna commented Jan 19, 2017

Original bug ID: 7463
Reporter: jilljenn
Status: resolved (set by @xavierleroy on 2017-01-28T17:43:36Z)
Resolution: won't fix
Priority: normal
Severity: minor
Platform: Mac
OS: OS X El Capitan
OS Version: 10.11.6
Version: 4.04.0
Category: standard library

Bug description

Whenever I do "ocaml graphics.cma", then:

open Graphics;;

open_graph "";;

sound 440 1000;;

I only hear the system beep, instead of the requested frequency (440 Hz).

It was quite cumbersome to get the Graphics library working (because of XQuartz replacing X11). I followed these instructions:
http://www.cis.upenn.edu/~cis120/current/ocaml_setup.shtml

Apparently I got the same problem 9 years ago, under Caml Light:
http://caml.inria.fr/pub/ml-archives/caml-list/2008/01/ec702a21efe0060d15766bacce6c073b.fr.html

Steps to reproduce

Type "ocaml graphics.cma" in a console, then:

open Graphics;;

open_graph "";;

sound 440 1000;;

@vicuna
Copy link
Author

vicuna commented Jan 28, 2017

Comment author: @xavierleroy

I'm afraid this is a limitation of Mac OS's implementation of the X11 protocol, whereas changing the frequency of the beep is not supported. Apparently this limitation has been with us for a long time. I doubt we want to invest time and effort to work around this particular limitation. If anyone cares enough to provide an alternate Mac OS implementation, please reopen this report.

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

No branches or pull requests

1 participant