util.h (342B)
1 enum { 2 /* 3 * This is 10 seconds in standard PCM samplerate, deprecated value 4 */ 5 MaxLength = (44100 * 10) 6 }; 7 8 typedef union Frame Frame; 9 typedef struct Aud Aud; 10 11 union Frame { 12 u32int i; 13 s16int c[2]; 14 struct { 15 s16int c1; 16 s16int c2; 17 }; 18 }; 19 20 struct Aud{ 21 u32int p[MaxLength]; 22 long n; 23 }; 24 25 int rune2note(Rune); 26 double note2freq(int n);