Closed argentum384 closed 3 years ago
new FlMML() の引数は workerURL のみだったが、今後の拡張性を鑑みオブジェクトでの指定も可能とする。 また、併せて bufferSize, bufferMultiple, infoInterval の指定を可能とする。
new FlMML()
workerURL
bufferSize
bufferMultiple
infoInterval
setInfoInterval()
参考: v2.x の仕様wiki https://github.com/argentum384/flmml-on-html5/wiki/v2.x
bufferSize については可変にするにあたりもう少し考慮が要りそうなので一旦 bufferSize のみ取りやめる
概要
new FlMML()
の引数はworkerURL
のみだったが、今後の拡張性を鑑みオブジェクトでの指定も可能とする。また、併せて
bufferSize
,bufferMultiple
,infoInterval
の指定を可能とする。変更点
workerURL
: 従来通りの Worker スクリプトの URLbufferSize
: バッファサイズの指定 ※省略時 8192bufferMultiple
: { バックバッファ総サイズ / バッファサイズ } の倍率指定 ※省略時 32infoInterval
:setInfoInterval()
で指定する間隔の初期値指定 ※省略時 125workerURL
のみ指定した扱いとする参考: v2.x の仕様wiki https://github.com/argentum384/flmml-on-html5/wiki/v2.x