whitespace fixes

This commit is contained in:
Brad Midgley 2007-03-24 14:01:31 +00:00
parent 0c96c87902
commit a745805cb3
2 changed files with 5 additions and 5 deletions

View File

@ -594,7 +594,7 @@ static inline void sbc_synthesize_four(struct sbc_decoder_state *state,
for(i = 0; i < 8; i++) {
/* Shifting */
state->offset[ch][i]--;
if(state->offset[ch][i] < 0) {
if (state->offset[ch][i] < 0) {
state->offset[ch][i] = 79;
for(j = 0; j < 9; j++) {
state->V[ch][j+80] = state->V[ch][j];
@ -634,7 +634,7 @@ static inline void sbc_synthesize_eight(struct sbc_decoder_state *state,
for(i = 0; i < 16; i++) {
/* Shifting */
state->offset[ch][i]--;
if(state->offset[ch][i] < 0) {
if (state->offset[ch][i] < 0) {
state->offset[ch][i] = 159;
for(j = 0; j < 9; j++) {
state->V[ch][j+160] = state->V[ch][j];

View File

@ -122,11 +122,11 @@ static void decode(char *filename, char *audiodevice, int tofile)
// buffer is too full to stuff decoded audio in
// so it must be written to the device
written = write(ad, buf, count);
if(written > 0) count -= written;
if (written > 0) count -= written;
}
// sanity check
if(count + sbc.len > BUF_SIZE) {
if (count + sbc.len > BUF_SIZE) {
fprintf(stderr, "buffer size of %d is too small for decoded data (%d)\n", BUF_SIZE, sbc.len + count);
exit(1);
}
@ -143,7 +143,7 @@ static void decode(char *filename, char *audiodevice, int tofile)
if (count > 0) {
written = write(ad, buf, count);
if(written > 0) count -= written;
if (written > 0) count -= written;
}
close: