Uses 521K of libraries. Click here for Pure Java version (17585L/110K).
srecord DecodeOpusStream(S url) implements AutoCloseable { !include #1033023 // Resources InputStream in; OpusMachine machine; OpusMachineIterator sampleIterator; int minBytesPreloaded; run { in = ownResource(httpInputStream(url)); machine = ownResource(new OpusMachine(in)); machine.minBytesPreloaded = max(machine.minBytesPreloaded, minBytesPreloaded); sampleIterator = new OpusMachineIterator(machine); } CloseableShortIterator get() { if (sampleIterator == null) run(); ret sampleIterator; } long samplesSeen() { ret machine == null ? 0 : machine.samplesSeen(); } }
Began life as a copy of #1033021
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, ekrmjmnbrukm, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1033046 |
Snippet name: | DecodeOpusStream |
Eternal ID of this version: | #1033046/9 |
Text MD5: | 56680b11c280aaa3e08f40ef1dcb36b9 |
Transpilation MD5: | 90a56b60c0887e83b607de9be95a679c |
Author: | stefan |
Category: | javax / opus |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-10-11 18:26:10 |
Source code size: | 645 bytes / 22 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 156 / 269 |
Version history: | 8 change(s) |
Referenced in: | #1034167 - Standard Classes + Interfaces (LIVE, continuation of #1003674) |