An audio frame. More...
Public Member Functions | |
| AudioFrame (int duration) | |
| Initializes a new instance of the fm.liveswitch.AudioFrame class. More... | |
| AudioFrame (int duration, fm.liveswitch.AudioBuffer buffer) | |
| Initializes a new instance of the fm.liveswitch.AudioFrame class. More... | |
| AudioFrame (int duration, fm.liveswitch.AudioBuffer[] buffers) | |
| Initializes a new instance of the fm.liveswitch.AudioFrame class. More... | |
| fm.liveswitch.AudioFrame | clone () |
| Clones this instance. More... | |
| fm.liveswitch.AudioFrame | createInstance () |
| Creates a new instance. More... | |
| int | getDuration () |
| Gets the duration. More... | |
| void | setDuration (int value) |
| Sets the duration. More... | |
| String | toString () |
| Returns a string that represents this instance. More... | |
Public Member Functions inherited from fm.liveswitch.Dynamic | |
| java.util.HashMap< String, Object > | getDynamicProperties () |
| Gets all dynamic properties on this instance. More... | |
| Object | getDynamicValue (String key) |
| Gets a property value from the local cache. More... | |
| void | setDynamicValue (String key, Object value) |
| Sets a property value in the local cache. More... | |
| boolean | unsetDynamicValue (String key) |
| Removes a property value from the local cache. More... | |
Static Public Member Functions | |
| static int | calculateTimestampDelta (int duration, int clockRate) |
| Calculates a timestamp delta given a duration and clock rate. More... | |
| static fm.liveswitch.AudioFrame | generatePcmFrame (int duration, fm.liveswitch.AudioConfig config) |
| Generates a silent audio frame for the given duration and configuration. More... | |
Protected Member Functions | |
| fm.liveswitch.AudioBufferCollection | createMediaBufferCollection () |
| Creates a media buffer collection. More... | |
Protected Member Functions inherited from fm.liveswitch.Dynamic | |
| Dynamic () | |
Protected Member Functions inherited from fm.liveswitch.Serializable | |
| boolean | getIsDirty () |
| Gets a value indicating whether this instance is dirty. More... | |
| Serializable () | |
| Initializes a new instance of the fm.liveswitch.Serializable class. More... | |
| void | setIsDirty (boolean value) |
| Sets a value indicating whether this instance is dirty. More... | |
An audio frame.
| fm.liveswitch.AudioFrame.AudioFrame | ( | int | duration | ) |
Initializes a new instance of the fm.liveswitch.AudioFrame class.
| duration | The duration. |
| fm.liveswitch.AudioFrame.AudioFrame | ( | int | duration, |
| fm.liveswitch.AudioBuffer | buffer | ||
| ) |
Initializes a new instance of the fm.liveswitch.AudioFrame class.
| duration | The duration. |
| buffer | The buffer. |
| fm.liveswitch.AudioFrame.AudioFrame | ( | int | duration, |
| fm.liveswitch.AudioBuffer[] | buffers | ||
| ) |
Initializes a new instance of the fm.liveswitch.AudioFrame class.
| duration | The duration. |
| buffers | The buffers. |
|
static |
Calculates a timestamp delta given a duration and clock rate.
| duration | The duration in milliseconds. |
| clockRate | The clock rate. |
| fm.liveswitch.AudioFrame fm.liveswitch.AudioFrame.clone | ( | ) |
Clones this instance.
| fm.liveswitch.AudioFrame fm.liveswitch.AudioFrame.createInstance | ( | ) |
Creates a new instance.
|
protected |
Creates a media buffer collection.
|
static |
Generates a silent audio frame for the given duration and configuration.
| duration | The duration. |
| config | The configuration. |
| int fm.liveswitch.AudioFrame.getDuration | ( | ) |
Gets the duration.
| void fm.liveswitch.AudioFrame.setDuration | ( | int | value | ) |
Sets the duration.
| String fm.liveswitch.AudioFrame.toString | ( | ) |
Returns a string that represents this instance.