B4J Programming Press on the image to return to the main documentation page.

jAudioRecord

Written by Steve Laming

List of types:

AudioRecord

AudioRecord


Events:

Event

Members:


  AddLineListener (EventName As String)

  Available As Int

  Buffersize As Int [read only]

  CH_CONF_MONO As Int

  CH_CONF_STEREO As Int

  Drain

  Flush

  Initialize (SampleRateHZ As Float, SampleSizeInBits As Int, ChannelConfig As Int) As Boolean

  IsActive As Boolean

  IsInitialized As Boolean

  IsRunning As Boolean

  LastException As String [read only]

  Read (Data() As Byte, Off As Int, Len As Int) As Int

  Release

  Start

  Stop

Members description:

AddLineListener (EventName As String)
Adds a listener to this line.
Callback to sub {EventName}_Event will be called when one of the following events has been raised:
OPEN, CLOSE, START or STOP
Available As Int
Obtains the number of bytes of data currently available
to the application for processing in the data line's internal buffer.
Buffersize As Int [read only]
Get the buffer size of the TargetDataLine
CH_CONF_MONO As Int
CH_CONF_STEREO As Int
Drain
Drains queued data from the line by continuing data I/O until the data line's internal buffer has been emptied.
Flush
Flushes queued data from the line.
Initialize (SampleRateHZ As Float, SampleSizeInBits As Int, ChannelConfig As Int) As Boolean
IsActive As Boolean
Indicates whether the line is engaging in active I/O (such as playback or capture). When an inactive line becomes active, it sends a START event to its listeners.
Similarly, when an active line becomes inactive, it sends a STOP event.
IsInitialized As Boolean
IsRunning As Boolean
Indicates whether the line is running. The default is false. An open line begins running when the first data is presented in response to an invocation of the start method,
and continues until presentation ceases in response to a call to stop or because playback completes.
LastException As String [read only]
If an error occurred get the last exception
Read (Data() As Byte, Off As Int, Len As Int) As Int
Reads data from the TargetDataLine, it requests len bytes which are stored in data
off = offset into array data
Returns the actual number of bytes read
Release
Closes the line and
Start
Start capturing data
Stop
Stop capturing data
Top