fm.liveswitch.ogg.AudioRecorder Class Reference

An Ogg audio recorder. More...

Public Member Functions

 AudioRecorder (String path, fm.liveswitch.AudioFormat inputFormat)
 Initializes a new instance of the fm.liveswitch.ogg.AudioRecorder class. More...
 
String getArtist ()
 Gets the file artist. More...
 
String getTitle ()
 Gets the file title. More...
 
String getVendor ()
 Gets the file vendor. More...
 
void setArtist (String value)
 Sets the file artist. More...
 
void setTitle (String value)
 Sets the file title. More...
 
void setVendor (String value)
 Sets the file vendor. 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

An Ogg audio recorder.

Constructor & Destructor Documentation

◆ AudioRecorder()

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

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

Parameters
pathThe path.
inputFormatThe input format.

Member Function Documentation

◆ doUpdateHeader()

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

Updates the file header.

◆ doWrite()

boolean fm.liveswitch.ogg.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.ogg.AudioRecorder.doWriteHeader ( )
protected

Writes the file header.

◆ getArtist()

String fm.liveswitch.ogg.AudioRecorder.getArtist ( )

Gets the file artist.

◆ getTitle()

String fm.liveswitch.ogg.AudioRecorder.getTitle ( )

Gets the file title.

◆ getVendor()

String fm.liveswitch.ogg.AudioRecorder.getVendor ( )

Gets the file vendor.

◆ setArtist()

void fm.liveswitch.ogg.AudioRecorder.setArtist ( String  value)

Sets the file artist.

◆ setTitle()

void fm.liveswitch.ogg.AudioRecorder.setTitle ( String  value)

Sets the file title.

◆ setVendor()

void fm.liveswitch.ogg.AudioRecorder.setVendor ( String  value)

Sets the file vendor.