A clock used to raise audio data in appropriate intervals. More...
Public Member Functions | |
| AudioClock (int clockRate, int channelCount, int blockAlign, fm.liveswitch.IAction2< Integer, Integer > raiseCallback) | |
| Creates a new AudioClock. More... | |
| AudioClock (int clockRate, int channelCount, fm.liveswitch.IAction2< Integer, Integer > raiseCallback) | |
| Creates a new AudioClock. More... | |
| int | getBlockAlign () |
| Gets the BlockAlign. More... | |
| int | getChannelCount () |
| Gets the audio's channel count. More... | |
| int | getClockRate () |
| Gets the audio's clock rate. More... | |
| boolean | getRunning () |
| Gets whether the clock is running. More... | |
| int | getStrictDuration () |
| Gets the strict duration, in milliseconds. More... | |
| void | setStrictDuration (int value) |
| Sets the strict duration, in milliseconds. More... | |
| void | start () |
| Starts the audio clock. More... | |
| void | stop () |
| Stops the audio clock. More... | |
A clock used to raise audio data in appropriate intervals.
| fm.liveswitch.AudioClock.AudioClock | ( | int | clockRate, |
| int | channelCount, | ||
| int | blockAlign, | ||
| fm.liveswitch.IAction2< Integer, Integer > | raiseCallback | ||
| ) |
Creates a new AudioClock.
| clockRate | The clock rate to use. |
| channelCount | How many channels the audio will have. |
| blockAlign | The block align of the source data. |
| raiseCallback | The callback that will be invoked when data is needed. |
| fm.liveswitch.AudioClock.AudioClock | ( | int | clockRate, |
| int | channelCount, | ||
| fm.liveswitch.IAction2< Integer, Integer > | raiseCallback | ||
| ) |
Creates a new AudioClock.
| clockRate | The clock rate to use. |
| channelCount | How many channels the audio will have. |
| raiseCallback | The callback that will be invoked when data is needed. |
| int fm.liveswitch.AudioClock.getBlockAlign | ( | ) |
Gets the BlockAlign.
| int fm.liveswitch.AudioClock.getChannelCount | ( | ) |
Gets the audio's channel count.
| int fm.liveswitch.AudioClock.getClockRate | ( | ) |
Gets the audio's clock rate.
| boolean fm.liveswitch.AudioClock.getRunning | ( | ) |
Gets whether the clock is running.
| int fm.liveswitch.AudioClock.getStrictDuration | ( | ) |
Gets the strict duration, in milliseconds.
If 0, then variable duration is used. If greater than zero, then the clock will only raise frames of that duration.
| void fm.liveswitch.AudioClock.setStrictDuration | ( | int | value | ) |
Sets the strict duration, in milliseconds.
If 0, then variable duration is used. If greater than zero, then the clock will only raise frames of that duration.
| void fm.liveswitch.AudioClock.start | ( | ) |
Starts the audio clock.
| void fm.liveswitch.AudioClock.stop | ( | ) |
Stops the audio clock.