Skip to content
Snippets Groups Projects
Commit d6deb7c5 authored by deuce's avatar deuce
Browse files

Adjust fade in/out.

parent dd0f2394
No related branches found
No related tags found
No related merge requests found
......@@ -65,7 +65,7 @@ void makesine(double freq, unsigned char *wave, int samples)
}
}
/* Fade out */
for(k=4;k>0;k--) {
for(k=8;k>0;k--) {
for(;i>midpoint;i--) {
if(!endhigh && wave[i]<128)
break;
......@@ -104,7 +104,7 @@ void makesine(double freq, unsigned char *wave, int samples)
}
}
/* Fade in */
for(k=4;k>0;k--) {
for(k=8;k>0;k--) {
for(;i<midpoint;i++) {
if(!starthigh && wave[i]<128)
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment