import javax.sound.sampled.*; svoid writeInputStreamsToWAV(L<InputStream> inputStreams, int frames, File wavFile) ctex { if (empty(inputStreams)) ret with deleteFile(wavFile); AudioFormat format = ((AudioInputStream) first(inputStreams)).getFormat(); temp AudioInputStream stream = new(sequenceInputStream(inputStreams), format, frames); AudioSystem.write(stream, AudioFileFormat.Type.WAVE, mkdirsForFile(wavFile)); }
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: | 349 / 366 |
Version history: | 6 change(s) |
Referenced in: | [show references] |