What is hidden in Aphex Twin’s WAV files?

WAV files (or WAVE as they would be called if the Quick and Dirty Operating System hadn’t had a three-character limit on file extensions), probably the most common kind of files for uncompressed PCM audio, follow a loosely defined format with ancient roots, where sections have four-character labels. Each file consists of a single “RIFF”… Continue reading What is hidden in Aphex Twin’s WAV files?

The size of silence (and other quirks in streaming FLAC to browsers)

Streaming music from the Klipspringer hub requires three components to interact asynchronously – the Java process that encodes and transmits the data, the web browser with the client-side code that receives and plays it, and the HTTP server that ties them together – so no wonder it’s been stuck in deadlock many times during development.… Continue reading The size of silence (and other quirks in streaming FLAC to browsers)

Never implement doHickey

I sometimes feel like an impostor when I talk about code design because I have absolutely no formal education in it, and I’ve been imprinted with the attitude that it’s the algorithms, their correctness and efficiency, that you’re supposed to worry about. Working on larger projects, in companies and on my own, I’ve come to… Continue reading Never implement doHickey

Capturing audio for streaming and recording

Since version 3.2, the Klipspringer hub includes the possibility to capture audio from an input device. My idea is to use it for getting music from my vinyl records into digital files, or just to listen to the records digitally with headphones when I’m sitting on the balcony or somewhere else away from my stereo. To… Continue reading Capturing audio for streaming and recording

Optimization by doing the same thing and expecting different results

The point with a compiler is obviously that it lets us write code in language that’s easier to read than assembly code, and modern optimizing compilers can make it more readable still by saving us from obfuscating hand-optimization. For instance, in the 1980s, it may have been good for the performance of your C code to… Continue reading Optimization by doing the same thing and expecting different results

Screenshots of Klipspringer, now streaming

This post describes my setup of the Klipsringer hub, with screenshots. Since version 3.1 the purpose not only to play music on the speakers in my living room, but also to stream the same music collection to my mobile phone, to let me listen to it with headphones whenever I’m within reach of the wifi in my apartment.

Pattern for an asynchronous resource

While I have been working on streaming capability for the Klipspringer hub (and refactored existing code in the process), a need for asynchronously providing a resource has repeatedly come up and confused me. It’s confusing because it doesn’t immediately fall in line with Javascript’s promise construct. This post describes the problem in a general way,… Continue reading Pattern for an asynchronous resource