Skip to content

Commit afaa184

Browse files
committed
Increased bit rate to 30bps
1 parent dd8ea13 commit afaa184

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/services/fskEncoder.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,13 +163,14 @@ export function transmitText(text: string, onStatus: TxStatusCallback): () => vo
163163
cursor += EOT_DURATION_S;
164164

165165
// Wait until the timeline finishes, then close the context.
166+
// Add a larger buffer now that symbols are faster, to guarantee the final tone plays.
166167
const totalWallTimeMs = (cursor - ctx.currentTime) * 1000;
167168
setTimeout(() => {
168169
if (!aborted) {
169170
onStatus({ type: 'complete' });
170171
}
171172
safeClose();
172-
}, totalWallTimeMs + 200);
173+
}, totalWallTimeMs + 500);
173174

174175
} catch (err) {
175176
onStatus({ type: 'error', message: String(err) });

0 commit comments

Comments
 (0)