Advertisement
redsees

Untitled

Jun 16th, 2014
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.30 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.     double i;
  9.     for(i=0;1;i++)
  10.     {
  11.         mysou=50*sin(2*3.14*(i+20)*((double)i/80000.0));
  12.         fprintf(mywav,"%c",(char)(mysou+128));
  13.         if(i<0)printf("HERE COMES\n\n");
  14.     }
  15.     return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement