Commit
·
45a3b16
1
Parent(s):
03a6a46
no more bootstrap logic in tester
Browse files- magentaRT_rt_tester.html +8 -5
magentaRT_rt_tester.html
CHANGED
|
@@ -417,17 +417,20 @@ async function scheduleWavBytes(arrayBuffer) {
|
|
| 417 |
btnStop.disabled = false;
|
| 418 |
setStatus("connected");
|
| 419 |
|
|
|
|
|
|
|
|
|
|
| 420 |
const msg = {
|
| 421 |
type: "start",
|
| 422 |
mode: "rt",
|
| 423 |
-
binary_audio: !!
|
| 424 |
params: {
|
| 425 |
...currentParams(),
|
| 426 |
-
|
| 427 |
-
|
| 428 |
-
|
| 429 |
-
}
|
| 430 |
};
|
|
|
|
| 431 |
ws.send(JSON.stringify(msg));
|
| 432 |
log("→ start " + JSON.stringify(msg), "ok");
|
| 433 |
nextTime = ctx.currentTime + 0.12;
|
|
|
|
| 417 |
btnStop.disabled = false;
|
| 418 |
setStatus("connected");
|
| 419 |
|
| 420 |
+
const realtime = $("chkRealtime")?.checked === true;
|
| 421 |
+
const binary = $("chkBinary")?.checked === true;
|
| 422 |
+
|
| 423 |
const msg = {
|
| 424 |
type: "start",
|
| 425 |
mode: "rt",
|
| 426 |
+
binary_audio: !!binary,
|
| 427 |
params: {
|
| 428 |
...currentParams(),
|
| 429 |
+
// no bootstrap or pre-roll anymore
|
| 430 |
+
pace: realtime ? "realtime" : "asap",
|
| 431 |
+
},
|
|
|
|
| 432 |
};
|
| 433 |
+
|
| 434 |
ws.send(JSON.stringify(msg));
|
| 435 |
log("→ start " + JSON.stringify(msg), "ok");
|
| 436 |
nextTime = ctx.currentTime + 0.12;
|