Issue
I had some problems with playing sound using JavaFX on my Mac, so I decided to dig a little. I've found class called OSXMediaPlayer, with method that has the following signature:
private native void osxPlay() throws MediaException;
and - unfortunately - an empty body. Does that mean that Java call OSX command under the hood? Can I open a terminal and try it myself?
Solution
Does that mean that Java call OSX command under the hood?
It does not call a command line program. It calls the native macOS audio APIs CoreAudio or AVFoundation.
Can I open a terminal and try it myself?
No, because the terminal only lets you access command line programs, not APIs.
Answered By - Hendrik