fm.liveswitch.matroska.AudioRecorder Class Reference

A Matroska audio recorder. More...

Public Member Functions

 AudioRecorder (String path, fm.liveswitch.AudioFormat inputFormat)
 Initializes a new instance of the fm.liveswitch.matroska.AudioRecorder class. More...
 
- Public Member Functions inherited from fm.liveswitch.AudioRecorder
 AudioRecorder (String path)
 Initializes a new instance of the fm.liveswitch.AudioRecorder class. More...
 

Protected Member Functions

void doUpdateHeader ()
 Updates the file header. More...
 
boolean doWrite (fm.liveswitch.AudioBuffer buffer, long presentationTimestamp)
 Write an encoded video frame. More...
 
void doWriteHeader ()
 Writes the file header. More...
 

Detailed Description

A Matroska audio recorder.

Constructor & Destructor Documentation

◆ AudioRecorder()

fm.liveswitch.matroska.AudioRecorder.AudioRecorder ( String  path,
fm.liveswitch.AudioFormat  inputFormat 
)

Initializes a new instance of the fm.liveswitch.matroska.AudioRecorder class.

Parameters
pathThe path.
inputFormatThe input format.

Member Function Documentation

◆ doUpdateHeader()

void fm.liveswitch.matroska.AudioRecorder.doUpdateHeader ( )
protected

Updates the file header.

◆ doWrite()

boolean fm.liveswitch.matroska.AudioRecorder.doWrite ( fm.liveswitch.AudioBuffer  buffer,
long  presentationTimestamp 
)
protected

Write an encoded video frame.

Parameters
bufferThe encoded buffer.
presentationTimestampThe presentation timestamp.
Returns
true
if the encoded frame was written successfully; otherwise,
false

◆ doWriteHeader()

void fm.liveswitch.matroska.AudioRecorder.doWriteHeader ( )
protected

Writes the file header.