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

gitlab.com/quite/celt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Marc Valin <jean-marc.valin@usherbrooke.ca>2007-12-29 16:17:44 +0300
committerJean-Marc Valin <jean-marc.valin@usherbrooke.ca>2007-12-29 16:17:44 +0300
commite84962bcd969d20d736eb5851013b1ddd2c5c45a (patch)
tree15758a1e5318e036c8db3e38388df76496b66cd3 /libcelt/bands.c
parent571e861dc31c602e826921ce6766f3b06d16c7e4 (diff)
Doing multiple rotation passes instead of one produces better pulse spreading.
Diffstat (limited to 'libcelt/bands.c')
-rw-r--r--libcelt/bands.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcelt/bands.c b/libcelt/bands.c
index 9f41aa4..10411f5 100644
--- a/libcelt/bands.c
+++ b/libcelt/bands.c
@@ -266,8 +266,8 @@ void band_rotation(const CELTMode *m, float *X, int dir)
for (i=0;i<m->nbEBands;i++)
{
float theta;
- theta = pow(.1f,1.f*abs(m->nbPulses[i])/(B*(eBands[i+1]-eBands[i])));
- exp_rotation(X+B*eBands[i], B*(eBands[i+1]-eBands[i]), theta, dir, 2, 1);
+ theta = .007*(B*(eBands[i+1]-eBands[i]))/(.1f+abs(m->nbPulses[i]));
+ exp_rotation(X+B*eBands[i], B*(eBands[i+1]-eBands[i]), theta, dir, B, 8);
}
//printf ("\n");
}