Glitching out a <canvas> by converting it to JPEG and trashing some random bytes.
See also: Video glitching
Glitching out a <canvas> by converting it to JPEG and trashing some random bytes.
See also: Video glitching
https://mikebeach.org/2011/07/26/how-to-monitor-your-microphone-through-headphones-in-ubuntu/
This walks you through routing the microphone's audio to your headphones. I've tested it on a Raspberry PI (Raspbian Jessie).
| // Minimal audio streaming using OpenSL. | |
| // | |
| // Loosely based on the Android NDK sample code. | |
| // Hardcoded to 44.1kHz stereo 16-bit audio, because as far as I'm concerned, | |
| // that's the only format that makes any sense. | |
| #include <assert.h> | |
| #include <string.h> | |
| // for native audio |