1 | lib 1009770 // tritonus share |
2 | lib 1009766 // tritonus AudioOutputStream |
3 | |
4 | import org.tritonus.share.sampled.file.*; |
5 | import org.tritonus.sampled.file.*; |
6 | |
7 | static OutputStream audioOutputStreamAsOutputStream(final AudioOutputStream audioOut) { |
8 | ret new OutputStream { |
9 | public void write(int b) throws IOException { |
10 | audioOut.write(new byte[] { (byte) b }, 0, 1); |
11 | } |
12 | |
13 | public void write(byte[] b) throws IOException { |
14 | audioOut.write(b, 0, l(b)); |
15 | } |
16 | |
17 | public void write(byte[] b, int o, int l) throws IOException { |
18 | audioOut.write(b, o, l); |
19 | } |
20 | }; |
21 | } |
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: | #1009772 |
Snippet name: | audioOutputStreamAsOutputStream |
Eternal ID of this version: | #1009772/1 |
Text MD5: | 3b1af4e928292effcacad8081f14df62 |
Author: | stefan |
Category: | javax / audio |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-08-16 17:12:22 |
Source code size: | 607 bytes / 21 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 482 / 526 |
Referenced in: | [show references] |