Skip to content

Instantly share code, notes, and snippets.

View themaxdavitt's full-sized avatar
💭

Max Davitt themaxdavitt

💭
View GitHub Profile
@themaxdavitt
themaxdavitt / gist:05f62a59e6e0426f26f8b02d73ae0e32
Last active January 21, 2025 23:40
FFmpeg command to play silent audio to fix Bluetooth headphones cutting off sounds (e.g. in Anki) (https://max.davitt.me/blog/fix-sounds-cut-off-over-bluetooth/)
ffplay -nodisp -f lavfi -i anullsrc=r=44100:cl=stereo
// Max Davitt - https://max.davitt.me
// Released under CC0 1.0 Universal
// https://creativecommons.org/publicdomain/zero/1.0/
const { createHash } = require('crypto');
const readFile = require('util').promisify(require('fs').readFile);
(async () => {
if (process.argv.length < 3) {