MorsePlayerXAS
Web browser sound player for older browsers, using XAudioJS by Grant Galitz (https://github.com/taisel/XAudioJS).
Example:
import MorseCWWave from 'morse-pro-cw-wave';
import MorsePlayerXAS from 'morse-pro-player-xas';
// make sure XAudioJS is loaded
var morseCWWave = new MorseCWWave();
morseCWWave.translate("abc");
var morsePlayerXAS = new MorsePlayerXAS(XAudioServer);
morsePlayerXAS.load(morseCWWave);
morsePlayerXAS.playFromStart();
Constructor Summary
Public Constructor | ||
public |
constructor(xaudioServerClass: Object) |
Member Summary
Public Members | ||
public |
|
|
public |
audioServer: * |
|
public get |
audioType: * |
|
public |
endPadding: * |
|
public get |
|
|
public get |
isPlaying: * |
|
public |
morseCWWave: * |
|
public |
|
|
public |
sample: * |
|
public |
samplePos: * |
|
public |
|
|
public |
startPadding: * |
|
public set |
Set the volume for the player |
|
public get |
|
Private Members | ||
private |
|
|
private |
|
|
private |
_volume: * |
Method Summary
Public Methods | ||
public |
hasError(): * |
|
public |
Load timing sequence, replacing any existing sequence. |
|
public |
|
|
public |
stop() |