Commit 5711f0831d57c7909eebb5688ebf29fbc0ff8dc6
Bug fixes
Christopher Snowhill authored on 1/2/2016, 6:27:47 AMChristopher Snowhill committed on 6/13/2018, 12:10:58 AM
Parent: 67c5392a407870560423583fdf0d03728824ff12
Files changed
src/syntrax/syntrax.c | changed |
src/syntrax/syntrax.c | ||
---|---|---|
@@ -4,9 +4,9 @@ | ||
4 | 4 | |
5 | 5 | |
6 | 6 | |
7 | 7 | |
8 | -void reset(Player *p) | |
8 | +static void reset(Player *p) | |
9 | 9 | { |
10 | 10 | int i, j; |
11 | 11 | |
12 | 12 | if (p->delayBufferL && p->delayBufferR){ |
@@ -1720,11 +1720,8 @@ | ||
1720 | 1720 | uint dword_6632774C = 0; |
1721 | 1721 | |
1722 | 1722 | if ( p->channelNumber > 0 ) |
1723 | 1723 | { |
1724 | - if ( playbackBufferSize & 1) playbackBufferSize--; | |
1725 | - if ( playbackBufferSize <= 0 ) return; | |
1726 | - | |
1727 | 1724 | while ( playbackBufferSize > 0 ) |
1728 | 1725 | { |
1729 | 1726 | if ( p->otherSamplesPerBeat >= playbackBufferSize ) |
1730 | 1727 | { |
@@ -2045,10 +2042,8 @@ | ||
2045 | 2042 | } |
2046 | 2043 | } |
2047 | 2044 | return; |
2048 | 2045 | } |
2049 | - if ( playbackBufferSize <= 0 ) return; | |
2050 | - //blank write to playback buffer | |
2051 | 2046 | memset(outBuff, 0, playbackBufferSize * 2 *2); |
2052 | 2047 | } |
2053 | 2048 | |
2054 | 2049 | /*void newSong(void) |
Built with git-ssb-web