diff options
author | Chris Robinson <[email protected]> | 2009-12-20 21:50:00 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2009-12-20 21:50:00 -0800 |
commit | 008563450cccc253e2d2d6e3009e93f7f4303da9 (patch) | |
tree | 06872429a3e98396b2713cfee4b5e62761645111 /Alc | |
parent | 69c238a2e6c06e5e4889822c3c97dd85a5e2ede4 (diff) |
Improve some indentations
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/ALu.c | 39 |
1 files changed, 18 insertions, 21 deletions
@@ -1041,11 +1041,11 @@ another_source: /* Compute the gain steps for each output channel */ for(i = 0;i < OUTPUTCHANNELS;i++) - dryGainStep[i] = (ALSource->Params.DryGains[i]- - DrySend[i]) / rampLength; + dryGainStep[i] = (ALSource->Params.DryGains[i]-DrySend[i]) / + rampLength; for(i = 0;i < MAX_SENDS;i++) - wetGainStep[i] = (ALSource->Params.WetGains[i]- - WetSend[i]) / rampLength; + wetGainStep[i] = (ALSource->Params.WetGains[i]-WetSend[i]) / + rampLength; /* Figure out how many samples we can mix. */ DataSize64 = DataSize; @@ -1206,25 +1206,22 @@ another_source: BuffersPlayed++; DataPosInt -= DataSize; } - else + else if(ALSource->bLooping) { - if(!ALSource->bLooping) - { - State = AL_STOPPED; - BufferListItem = ALSource->queue; - BuffersPlayed = ALSource->BuffersInQueue; - DataPosInt = 0; - DataPosFrac = 0; - } + BufferListItem = ALSource->queue; + BuffersPlayed = 0; + if(ALSource->BuffersInQueue == 1) + DataPosInt %= DataSize; else - { - BufferListItem = ALSource->queue; - BuffersPlayed = 0; - if(ALSource->BuffersInQueue == 1) - DataPosInt %= DataSize; - else - DataPosInt -= DataSize; - } + DataPosInt -= DataSize; + } + else + { + State = AL_STOPPED; + BufferListItem = ALSource->queue; + BuffersPlayed = ALSource->BuffersInQueue; + DataPosInt = 0; + DataPosFrac = 0; } } } |