summaryrefslogtreecommitdiffstats
path: root/sbc
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2007-08-11 10:56:46 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2007-08-11 10:56:46 +0000
commit46e860574f3d6d70d961e38270522764191cea20 (patch)
tree05049da75c3031249eb79157478f3515ec126a52 /sbc
parent62f6b0087df91a19383d3f467c278e71e49e4c1a (diff)
Don't hardcode allocation method to SNR
Diffstat (limited to 'sbc')
-rw-r--r--sbc/sbc.c2
-rw-r--r--sbc/sbc.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/sbc/sbc.c b/sbc/sbc.c
index ce6252df..d485a5fd 100644
--- a/sbc/sbc.c
+++ b/sbc/sbc.c
@@ -1374,7 +1374,7 @@ int sbc_encode(sbc_t *sbc, void *data, int count)
} else
priv->frame.channel_mode = MONO;
- priv->frame.allocation_method = SNR;
+ priv->frame.allocation_method = sbc->allocation;
priv->frame.subbands = sbc->subbands;
priv->frame.blocks = sbc->blocks;
priv->frame.bitpool = sbc->bitpool;
diff --git a/sbc/sbc.h b/sbc/sbc.h
index 99ccb3e4..70881c12 100644
--- a/sbc/sbc.h
+++ b/sbc/sbc.h
@@ -36,6 +36,7 @@ struct sbc_struct {
int rate;
int channels;
int joint;
+ int allocation;
int blocks;
int subbands;
int bitpool;