alphaTab.synth.IExternalMediaSynthOutput
Description
A output handling the playback via an external media.
interface IExternalMediaSynthOutput extends IBackingTrackSynthOutput
Properties
backingTrackDuration | The total duration of the backing track in milliseconds. (Inherited from |
handler | The handler to which the media control will be delegated. |
masterVolume | The volume at which the output should play (0-1) (Inherited from |
playbackRate | The playback rate at which the output should playback. (Inherited from |
ready | Fired when the output has been successfully opened and is ready to play samples. (Inherited from |
sampleRate | Gets the sample rate required by the output. (Inherited from |
sampleRequest | Fired when the output needs more samples to be played. (Inherited from |
samplesPlayed | Fired when a certain number of samples have been played. (Inherited from |
timeUpdate | An event fired when the playback time changes. The time is in absolute milliseconds. (Inherited from |
Methods
activate() | Activates the output component. (Inherited from |
addSamples(Float32Array) | Called when samples have been synthesized and should be added to the playback buffer. (Inherited from |
destroy() | Requests the output to destroy itself. (Inherited from |
enumerateOutputDevices() | Loads and lists the available output devices. Will request permissions if needed. (Inherited from |
getOutputDevice() | The currently configured output device if changed via |
loadBackingTrack(BackingTrack) | Instructs the output to load the given backing track. (Inherited from |
open(number) | Called when the output should be opened. (Inherited from |
pause() | Called when the output should stop the playback. (Inherited from |
play() | Called when the output should start the playback. (Inherited from |
resetSamples() | Called when the samples in the output buffer should be reset. This is neeed for instance when seeking to another position. (Inherited from |
seekTo(number) | Instructs the output to seek to the given time position. (Inherited from |
setOutputDevice(ISynthOutputDevice | null) | Changes the output device which should be used for playing the audio. (Inherited from |
updatePosition(number) | Updates the playback position from the external media source. |