1 | import javax.sound.sampled.*; |
2 | |
3 | svoid writeInputStreamsToWAV(L<InputStream> inputStreams, int frames, File wavFile) ctex { |
4 | if (empty(inputStreams)) ret with deleteFile(wavFile); |
5 | |
6 | AudioFormat format = ((AudioInputStream) first(inputStreams)).getFormat(); |
7 | temp AudioInputStream stream = new(sequenceInputStream(inputStreams), format, frames); |
8 | AudioSystem.write(stream, AudioFileFormat.Type.WAVE, mkdirsForFile(wavFile)); |
9 | } |
download show line numbers debug dex old transpilations
Travelled to 12 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1019217 |
Snippet name: | writeInputStreamsToWAV |
Eternal ID of this version: | #1019217/7 |
Text MD5: | ca9a351960f596e77a70727e5d6f9d2e |
Author: | stefan |
Category: | javax / audio |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-10-28 00:32:10 |
Source code size: | 435 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 350 / 367 |
Version history: | 6 change(s) |
Referenced in: | [show references] |