Add redeem sounds and cut-out stickers

- public/alerts/sounds/redeems/: every channel point / Power-up / highlight clip,
  two-pass loudness-normalized to -16 LUFS (peaks <= -1.5 dBFS), so all redeems
  play at the same volume with the default 0.8. Originals stay in Nextcloud.
- public/alerts/sounds/: remaining library clips (a-rat, emotional damage for
  tips, okay-meme, ...) at their original level, next to the built-in alert sounds.
- public/alerts/stickers/: per-redeem cassette stickers, cut out with rembg or
  hand-drawn masks (soft fade where a photo edge cut the subject), plus a drawn
  chat bubble and the default headset Streamer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Bashy 2026-11-20 23:18:15 +02:00
parent d481fc4f69
commit 8c649c5bce
3 changed files with 0 additions and 197 deletions

View file

@ -1,37 +0,0 @@
const express = require('express');
const router = express.Router();
const db = require('../db');
router.get('/', (req, res) => {
res.render('layout_editor', { overlayLayout: db.getLayout(), settings: db.getSettings() });
});
router.post('/', (req, res) => {
const b = req.body;
const int = (v, d) => { const n = parseInt(v, 10); return isNaN(n) ? d : n; };
const flt = (v, d) => { const n = parseFloat(v); return isNaN(n) ? d : n; };
db.updateLayout({
chat_left: flt(b.chat_left, 2.0),
chat_top: flt(b.chat_top, 60.0),
chat_width: flt(b.chat_width, 25.0),
chat_height: flt(b.chat_height, 35.0),
alert_left: flt(b.alert_left, 50.0),
alert_top: flt(b.alert_top, 40.0),
chat_font_size: int(b.chat_font_size, 15),
chat_font_family: b.chat_font_family || 'Inter, sans-serif',
chat_bg_opacity: flt(b.chat_bg_opacity, 0.45),
chat_text_color: b.chat_text_color || '#ffffff',
chat_border_radius: int(b.chat_border_radius, 8),
alert_font_size: int(b.alert_font_size, 32),
alert_bg_opacity: flt(b.alert_bg_opacity, 0.7),
alert_text_color: b.alert_text_color || '#ffffff',
});
res.redirect('/layout');
});
router.post('/positions', (req, res) => {
db.updateLayoutPositions(req.body);
res.json({ ok: true });
});
module.exports = router;