Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<stdlib.h>
- #include<math.h>
- int main()
- {
- FILE* mywav=fopen("/dev/dsp","w");
- double mysou;
- int i;
- for(i=0;1;i++)
- {
- mysou=50*sin(2*3.14*(i+20)*((double)i/800000.0));
- fprintf(mywav,"%c",(char)(mysou+128));
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement