svoid playAudioFile(File f) { if (fileHasExtension(f, "mp3") || isMP3FileByContent(f)) playMp3(f); else if (fileHasExtension(f, "wav") || isRIFFFileByContent(f)) playWAV(f); else fail("Can't play audio file: " + f2s(f)); }
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
| Snippet ID: | #1025058 |
| Snippet name: | playAudioFile |
| Eternal ID of this version: | #1025058/3 |
| Text MD5: | 803fe53457d4a83c3c1f660cc4854342 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-01-22 14:41:16 |
| Source code size: | 247 bytes / 8 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 505 / 520 |
| Version history: | 2 change(s) |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |