public class USB3KBridge
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
boolean |
decode(int channelIdx,
byte[] inputBuffer,
int inputIndex,
byte[] outputBuffer,
int outputIndex)
Decodes the given input buffer from the specified index and writes the
result in the output buffer starting from the specified index.
|
int |
getChannelCnt() |
java.lang.String |
getInitError() |
static USB3KBridge |
getInstance() |
static java.lang.String |
getLinkError() |
boolean |
initialize() |
static boolean |
isLibAvailable() |
boolean |
safeDecode(int channelIdx,
byte[] inputBuffer,
int inputIndex,
byte[] outputBuffer,
int outputIndex)
Decodes the given input buffer from the specified index and writes the
result in the output buffer starting from the specified index.
|
boolean |
shutdown() |
public static boolean isLibAvailable()
public static java.lang.String getLinkError()
public static USB3KBridge getInstance()
public boolean initialize()
public java.lang.String getInitError()
public int getChannelCnt()
public boolean shutdown()
public boolean decode(int channelIdx, byte[] inputBuffer, int inputIndex, byte[] outputBuffer, int outputIndex)
channelIdx
- The index of the decoder channel to use when decoding. Channels are numbered
from 0 to n-1 where n is the total number of decoder channels across all connected
USB-300x devices.inputBuffer
- One or multiple AMBE rate 34 voice code words. Each voice code word is 49
bits packed into 7 bytes.inputIndex
- Start index in the input buffer.outputBuffer
- A 160 PCM samples (16bit unsigned shorts (320 bytes)) for each voice code
word.outputIndex
- Start index in the output bufferpublic boolean safeDecode(int channelIdx, byte[] inputBuffer, int inputIndex, byte[] outputBuffer, int outputIndex)
channelIdx
- The index of the decoder channel to use when decoding. Channels are numbered
from 0 to n-1 where n is the total number of decoder channels across all connected
USB-300x devices.inputBuffer
- One or multiple AMBE rate 34 voice code words. Each voice code word is 49
bits packed into 7 bytes.inputIndex
- Start index in the input buffer.outputBuffer
- A 160 PCM samples (16bit unsigned shorts (320 bytes)) for each voice code
word.outputIndex
- Start index in the output bufferCopyright ©, 2005-2019 Prolancer Pty Ltd, Sydney Australia.