Advertisement
redsees

Untitled

Jun 16th, 2014
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.26 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<stdlib.h>
  3. #include<math.h>
  4. int main()
  5. {
  6.     FILE* mywav=fopen("/dev/dsp","w");
  7.     double mysou;
  8.     int i;
  9.     for(i=0;1;i++)
  10.     {
  11.         mysou=50*sin(2*3.14*(i+20)*((double)i/800000.0));
  12.         fprintf(mywav,"%c",(char)(mysou+128));
  13.     }
  14.     return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement