1 | static bool playMp3WithSoftVolume(File mp3, float volume) ctex {
|
2 | if (!isJavaSoundOnly() && isLinux() && onPATH("play")) {
|
3 | //print("Playing MP3 (`play`)...");
|
4 | backtick(print("> ", "play -v " + formatDouble(volume, 2) + " " + bashQuote(mp3)));
|
5 | true; |
6 | } |
7 | false; |
8 | } |
9 | |
10 | static bool playMp3WithSoftVolume(S snippetID) {
|
11 | ret playMp3WithSoftVolume(loadLibrary(snippetID)); |
12 | } |
Began life as a copy of #1001267
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1014804 |
| Snippet name: | playMp3WithSoftVolume - returns true when successful |
| Eternal ID of this version: | #1014804/3 |
| Text MD5: | 170dff703be0009db1118ab9fc537d6a |
| Author: | stefan |
| Category: | javax / sound |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-12-18 14:31:44 |
| Source code size: | 392 bytes / 12 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 664 / 679 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |