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

Fix fade in/out bits.

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