Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Ewering <blender@instinctive.de>2003-07-14 01:43:15 +0400
committerAlexander Ewering <blender@instinctive.de>2003-07-14 01:43:15 +0400
commit63323fd0e2b9cb946a323c86f4c58fdb8acdde36 (patch)
treeaf76f33879f7127f5e9d4c8c7ee892c9f46bee56 /source/blender/src/seqaudio.c
parent6914b1a19756226c443831cdb0b2496921a82e24 (diff)
- Fixed two swapped array indices in seqaudio.c which prevented panning
from working correctly - Added MKEY for muting audio strips (as they can't be part of a meta strip anyway)
Diffstat (limited to 'source/blender/src/seqaudio.c')
-rw-r--r--source/blender/src/seqaudio.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/source/blender/src/seqaudio.c b/source/blender/src/seqaudio.c
index fa43d3a6c39..fd52c779aea 100644
--- a/source/blender/src/seqaudio.c
+++ b/source/blender/src/seqaudio.c
@@ -203,12 +203,8 @@ void audio_levels(Uint8 *buf, int len, float db, float facf, float pan)
for (i=0; i<len; i+=4) {
sample = (signed short*)(buf+i);
- sample[1] = (short) ((float)sample[0] * facl);
- sample[0] = (short) ((float)sample[1] * facr);
-/* if (G.order==B_ENDIAN) {
- sample[0] = ((((sample[0]) & 0xff00) >> 8) | ((sample[0]) & 0x00ff) << 8);
- sample[1] = ((((sample[1]) & 0xff00) >> 8) | ((sample[1]) & 0x00ff) << 8);
- }*/
+ sample[0] = (short) ((float)sample[0] * facl);
+ sample[1] = (short) ((float)sample[1] * facr);
}
}