sclass AudioInputStreamsCollector {
new L<InputStream> streams;
int frames;
void add(InputStream stream, int frames) {
streams.add(stream);
this.frames += frames;
}
void addSilence(double seconds) {
int n = iround(seconds/2);
add(ZerosInputStream(n*2), n);
}
void writeToWAV(File wavFile) {
writeInputStreamsToWAV(streams, frames, 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: | #1019218 |
| Snippet name: | AudioInputStreamsCollector |
| Eternal ID of this version: | #1019218/3 |
| Text MD5: | fda6658bbecebdd4c0276f891232fd4c |
| 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:23:13 |
| Source code size: | 406 bytes / 18 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 852 / 1376 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |