Sync source edition with VCC Plus 3.7.0 build 63
This commit is contained in:
1 parent
c652a5276d
commit
b2ecec4d87
86 files changed
+10519
-472
No files matched your search
@@ -0,0 +1,31 @@
|
||||
# Capture feedback audio
|
||||
|
||||
The two short cues play through NSSound on the Mac only. They never enter the
|
||||
emulator audio mixer, generated PCM, MCP audio capture or recorded movies.
|
||||
They are not controlled by the separate Include CoCo Audio in Video preference.
|
||||
|
||||
Brian selected these effects on Pixabay. The same recordings are available from
|
||||
their original creators on Freesound under **CC0 1.0**; the retained sources were
|
||||
downloaded from the preview URLs linked by those original pages on November 13,
|
||||
2026. These assets are public-domain dedications, separate from the GPL code and
|
||||
the original VCC Plus artwork notice.
|
||||
|
||||
| Cue | Original creator and source | Retained preview |
|
||||
| --- | --- | --- |
|
||||
| Screenshot | [iPhone Camera Capture.wav — pooky1](https://freesound.org/people/pooky1/sounds/431588/) | https://cdn.freesound.org/previews/431/431588_2339776-hq.mp3 |
|
||||
| Recording start | [Tape start .wav — sophiehall3535](https://freesound.org/people/sophiehall3535/sounds/245927/) | https://cdn.freesound.org/previews/245/245927_4361022-hq.mp3 |
|
||||
|
||||
Both source pages explicitly identify Creative Commons 0:
|
||||
https://creativecommons.org/publicdomain/zero/1.0/
|
||||
|
||||
The selected Pixabay pages remain references:
|
||||
https://pixabay.com/sound-effects/film-special-effects-iphone-camera-capture-6448/
|
||||
https://pixabay.com/sound-effects/film-special-effects-tape-start-85778/
|
||||
|
||||
`prepare.py` decodes the retained previews, extracts 1.62–2.14 seconds of the tape
|
||||
recording to remove the long lead-in and later sounds, downmixes to mono 44.1 kHz
|
||||
16-bit WAV, normalizes the peak to 0.35 and applies five-millisecond edge fades.
|
||||
The full shutter preview is retained in its cue. Source and output SHA-256 values
|
||||
are recorded in `manifest.json`. Run `python3 docs/media/capture-sounds/prepare.py`
|
||||
with ffmpeg available to reproduce the bundled WAV files. Application builds use
|
||||
the prepared WAV files and require no audio download or ffmpeg.
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"license": "CC0-1.0",
|
||||
"reviewed": "2026-11-13",
|
||||
"inputs": {
|
||||
"shutter.mp3": {
|
||||
"sha256": "e805680b4ee8a48bc537f266c866e74d60b076a76e52af3acbaacf77e8cb7392",
|
||||
"bytes": 15600
|
||||
},
|
||||
"tape-start.mp3": {
|
||||
"sha256": "ebbbb9d82d0ff2f84d48ae8228a2f635fe45b7816583393e77d079034230eac7",
|
||||
"bytes": 50712
|
||||
}
|
||||
},
|
||||
"outputs": {
|
||||
"recording-start.wav": {
|
||||
"sha256": "5b5ba2407a84e39cf04018c64acb48b690089cd32cec193920dcbf2cb4080aa7",
|
||||
"bytes": 45908
|
||||
},
|
||||
"screenshot.wav": {
|
||||
"sha256": "38bce90df26042fa70bb0a5dc33a5759867e0440de0a7acd4b8942cbcbdf239d",
|
||||
"bytes": 48886
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Reproduce short host-only cues from the retained CC0 Freesound previews.
|
||||
|
||||
Requires ffmpeg; not needed to build or run VCC Plus.
|
||||
"""
|
||||
from pathlib import Path
|
||||
import hashlib
|
||||
import json
|
||||
import struct
|
||||
import subprocess
|
||||
import wave
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[3]
|
||||
HERE = Path(__file__).resolve().parent
|
||||
DEST = ROOT / "platforms/macos/Resources/CaptureSounds"
|
||||
CLIPS = [("shutter.mp3", "screenshot.wav", None),
|
||||
("tape-start.mp3", "recording-start.wav", "atrim=start=1.62:end=2.14,asetpts=PTS-STARTPTS")]
|
||||
|
||||
|
||||
def build():
|
||||
DEST.mkdir(parents=True, exist_ok=True)
|
||||
for original, filename, trim in CLIPS:
|
||||
command = ["ffmpeg", "-nostdin", "-v", "error", "-i", str(HERE / "source" / original)]
|
||||
if trim:
|
||||
command += ["-af", trim]
|
||||
raw = subprocess.check_output(command + ["-ac", "1", "-ar", "44100", "-f", "f32le", "-"])
|
||||
values = struct.unpack("<" + "f" * (len(raw) // 4), raw)
|
||||
peak = max(abs(v) for v in values)
|
||||
scale = 0.35 / max(peak, 0.000001)
|
||||
fade = 221
|
||||
samples = [round(v * scale * 32767 * min(1, i / fade, (len(values) - 1 - i) / fade))
|
||||
for i, v in enumerate(values)]
|
||||
with wave.open(str(DEST / filename), "wb") as output:
|
||||
output.setparams((1, 2, 44100, 0, "NONE", "not compressed"))
|
||||
output.writeframes(struct.pack("<" + "h" * len(samples), *samples))
|
||||
print(filename, len(samples) / 44100, hashlib.sha256((DEST / filename).read_bytes()).hexdigest())
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
build()
|
||||
Binary file not shown.
Binary file not shown.
Reference in new issue
Block a user