au8b_44.1kHz.c (702B)
- #define _POSIX_C_SOURCE 200809L
- #include <stdio.h>
- #include <inttypes.h> // uint32_t
- #include "au.h"
- int
- main(void)
- {
- struct au_header header = {
- .offset = 24, // no-annotation, in octets
- .length = 0xFFFFFFFF, // unknown data size
- .encoding = 02, // unsigned 8-bit linear PCM
- .samplerate = 44100, // Hz
- .channels = 1
- };
- // fd 1 is stdout
- write_au_header(1, &header);
- for(int t = 0;;t++)putchar(
- //((t*("36364689"[t>>13&7]&15))/12&128)+(((((t>>12)^(t>>12)-2)%11*t)/4|t>>13)&127)
- //((t*(t>>13&10))/12&128)+
- //((((t^t-2)%10*t)/5|t>>14)&127) // happy android stroll ; loops after 2097334 samples
- //((((t^t-1)%10*t)/2+(t>>5%16)|t>>9)&127) // evac_alarm ; 44100*5.8 samples is neat
- );}