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

Adjust fade in/out.

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