mirror of
https://github.com/cnlohr/colorchord.git
synced 2024-11-10 06:00:11 +00:00
Add files via upload
This commit is contained in:
parent
0a44c60024
commit
6dd5695403
@ -516,18 +516,15 @@ int main( int argc, char **argv )
|
||||
|
||||
CNFGColor( LINE_COLOR );
|
||||
// Let's draw the o-scope.
|
||||
int thissoundhead = soundhead;
|
||||
thissoundhead = ( thissoundhead - 1 + SOUNDCBSIZE ) % SOUNDCBSIZE;
|
||||
int lasty = sound[ thissoundhead ] * 128 + 128;
|
||||
thissoundhead = ( thissoundhead - 1 + SOUNDCBSIZE ) % SOUNDCBSIZE;
|
||||
int thisy = sound[ thissoundhead ] * 128 + 128;
|
||||
thissoundhead = ( thissoundhead - 1 + SOUNDCBSIZE ) % SOUNDCBSIZE;
|
||||
for ( int i = 0; i < screenx; i++ )
|
||||
int thissoundhead = ( soundhead - 1 + SOUNDCBSIZE ) % SOUNDCBSIZE;
|
||||
int lasty;
|
||||
int thisy = sound[ thissoundhead ] * -128 + 128;
|
||||
for ( int i = screenx - 1; i > 0; i-- )
|
||||
{
|
||||
CNFGTackSegment( i, lasty, i + 1, thisy );
|
||||
lasty = thisy;
|
||||
thisy = sound[ thissoundhead ] * 128 + 128;
|
||||
thisy = sound[ thissoundhead ] * -128 + 128;
|
||||
thissoundhead = ( thissoundhead - 1 + SOUNDCBSIZE ) % SOUNDCBSIZE;
|
||||
CNFGTackSegment( i, lasty, i - 1, thisy );
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user