Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

11
LINES

< > BotCompany Repo | #1033021 // decodeOpusStream

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (8000L) is out of date.

static CloseableShortIterator decodeOpusStream(S url) throws IOException {
  temp var res = tempResources();
  var in = res.add(httpInputStream(url));
  OpusMachine machine = res.add(new OpusMachine(in));

  on clean exit { res.forget(); }
  
  ret new OpusMachineIterator(machine);
  //ret with(() -> res.forget(), new OpusMachineIterator(machine));
  //OpusMachineIterator iter = new(machine);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, ekrmjmnbrukm, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1033021
Snippet name: decodeOpusStream
Eternal ID of this version: #1033021/15
Text MD5: 0e7efe4c7295775307c950946d8667b2
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:07:31
Source code size: 407 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 181 / 290
Version history: 14 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1033046 - DecodeOpusStream