package Ġpl . sh ock ah . tre ble Ċ Ċ import Ġpl . sh ock ah . tre ble . B ass Library Ġas ĠL Ċ import Ġpl . sh ock ah . tre ble . B ass Native Constants Ġas ĠC Ċ Ċ open Ġclass ĠB ass Buffer Stream ( Ċĉ ĉ handle : ĠInt , Ċĉ ĉ initial Device : ĠB ass Device , Ċĉ ĉ auto Free : ĠBoolean Ċ ): ĠB ass Stream ( handle , Ġinitial Device , Ġauto Free ) Ġ{ Ċ ĉ val Ġasync Buffer Length : ĠInt Ċĉ ĉ get () Ġ= Ġlib Get File Position ( C . B ASS _ FILE POS _ ASYNC BUF ). toInt () ĊĊ ĉ val Ġbuffer Length : ĠInt Ċĉ ĉ get () Ġ= Ġlib Get File Position ( C . B ASS _ FILE POS _ BUFFER ). toInt () ĊĊ ĉ val Ġbuffer ing Before Playback Progress : ĠFloat Ċĉ ĉ get () Ġ= Ġlib Get File Position ( C . B ASS _ FILE POS _ BUFFER ING ). toInt () Ġ/ Ġ 1 0 0 f ĊĊ ĉ val Ġis Connected : ĠBoolean Ċĉ ĉ get () Ġ= Ġlib Get File Position ( C . B ASS _ FILE POS _ CONNECTED ) Ġ!= Ġ 0 L ĊĊ ĉ val Ġdata Position : ĠInt Ċĉ ĉ get () Ġ= Ġlib Get File Position ( C . B ASS _ FILE POS _ CURRENT ). toInt () ĊĊ ĉ val Ġdownload Progress : ĠInt Ċĉ ĉ get () Ġ= Ġlib Get File Position ( C . B ASS _ FILE POS _ DOWNLOAD ). toInt () ĊĊ ĉ val Ġdata Length : ĠInt Ċĉ ĉ get () Ġ= Ġlib Get File Position ( C . B ASS _ FILE POS _ END ). toInt () ĊĊ ĉ val ĠbufferSize : ĠInt Ċĉ ĉ get () Ġ= Ġlib Get File Position ( C . B ASS _ FILE POS _ SIZE ). toInt () ĊĊ ĉ val Ġaudio Data Start Position : ĠInt Ċĉ ĉ get () Ġ= Ġlib Get File Position ( C . B ASS _ FILE POS _ START ). toInt () ĊĊ ĉ private Ġfun Ġlib Get File Position ( mode : ĠInt ): ĠLong Ġ{ Ċĉ ĉ if Ġ( fre ed ) Ċĉĉ ĉ throw ĠIllegalStateException () ĊĊĉ ĉ val Ġresult Ġ= ĠL . lib . B ASS _ Stream Get File Position ( handle , Ġmode ) Ċĉ ĉ if Ġ( result Ġ== Ġ- 1 L ) Ċĉĉ ĉ L . throw ErrorException () Ċĉ ĉ return Ġresult Ċ ĉ } Ċ }