Spotlight › WaveRack
WaveRack
Disk-backed WAV editing and DMA recording, with a piece-list document model and recoverable takes.
- XT recording CPU at 11 kHz
- 23%
- Recorded 30-second WAV test
- 0.00 s underrun
- Open-WAV working set
- 31-55KB
01 / WAV and working set
WAV and working set
WaveRack keeps audio on disk, stores waveform extrema for display and represents edits as references to source ranges. It can edit a file larger than its resident memory. The accepted sample layouts are a subset of RIFF/WAVE, not every codec that can use a WAV container.
Recording uses Sound Blaster DMA into a ring buffer. BIOS disk operations can stall foreground service long enough to overrun it; the buffering design is evaluated against that latency.
02 / Editor captures
Editor captures
03 / Recording and recovery
Recording and recovery
The card records into an approximately 32KB ring. A background task drains it into a 64KB holding area; foreground writes use larger disk blocks. The recorded copy cost is 98 cycles per byte at the tested XT settings.
The floppy path restricts capture to 8kHz because measured 32KB writes approached the ring duration at higher rates. The hard-disk path offers the tested higher rates; storage latency still matters.
A take is written as WAV with cluster-aligned sample data. Stop repairs its final lengths. A small recovery record identifies an interrupted take so committed samples can be reopened; data not yet written cannot be recovered. Input gain is digital processing, not a hardware mixer setting.
04 / Non-destructive edits
Non-destructive edits
The document contains up to 64 source pieces. Trim/delete/copy/paste update the list; eight undo steps use a bounded history. Cross-document paste requires compatible sample formats.
Save writes a temporary output before replacing the original. Playback mixes supported sources to the card's selected output; when real-time conversion or disk service cannot keep up, the player can preload a range or report gaps. This is not unrestricted multitrack streaming.
05 / Recorded XT tests
Recorded XT tests
The table is from MartyPC with a 4.77 MHz PC model and Sound Blaster 2.0. The XT-IDE disk model has no mechanical seek/spin delay; do not apply its hard-disk results to an ST-225. The floppy model includes timing.
Tests include sustained playback, competing file reads, recording with another window active, and interrupted-take recovery. Capture of silence validates transfer continuity, not microphone quality or the analogue input stage.
| What | Measured |
|---|---|
| Play 30 s of a 2 MB WAV, 22,050 Hz 8-bit mono, off a hard disk | 0.00 s silent (the first version: about 17 s) |
| The same, while a second WaveRack reads another file off that disk | 0.14 s silent in 40.5 s |
| Play 30 s of a 1.1 MB WAV, 11,025 Hz, off a 1.44MB floppy | 0.00 s silent |
| Record 60 s onto a hard disk, at 11,025 and at 15,000 Hz | nothing lost; the card at most 4 KB ahead of the copy |
| Record 204 s while a second WaveRack opened and read a 2 MB file | nothing lost |
| Record 30 s onto a 1.44MB floppy at 8,000 Hz | nothing lost; the ring at most 27,648 of 32,256 bytes full |
| Read a 2 MB WAV to draw its waveform, off a hard disk | 77.8 s |
| Redraw the whole window | 1.1 to 1.5 s |
| Drawing while nothing happens / while recording | none / about one drawing call per 1/18 s |
06 / Format and resource limits
Format and resource limits
The captured build reads uncompressed 8/16-bit mono or stereo PCM and converts supported playback to its selected mono output. Document pieces, undo history and buffering are bounded. Source files must remain available until the edited result is saved.
07 / Run WaveRack
Run WaveRack
Open WAVERACK.O88 and select a WAV or recording directory. Use a writable test volume for capture and the intended physical storage for latency validation. Keep the source audio until Save completes.