summaryrefslogtreecommitdiff
path: root/lib/synthesis.c
diff options
context:
space:
mode:
authorMonty <xiphmont@xiph.org>1999-10-05 15:35:02 +0000
committerMonty <xiphmont@xiph.org>1999-10-05 15:35:02 +0000
commit321b01cbbc49f8f4fb685b16c3f743cfd62944f6 (patch)
treef1eb439bf10280b4820c11d41f4fb6e472c08af9 /lib/synthesis.c
parenta59eb30e780edb218288b3082b8b863ecb73d148 (diff)
downloadlibvorbis-git-321b01cbbc49f8f4fb685b16c3f743cfd62944f6.tar.gz
Added example code for encode/decode, continuing work on filling in
missing pieces of analysis/synthesis. Monty svn path=/trunk/vorbis/; revision=139
Diffstat (limited to 'lib/synthesis.c')
-rw-r--r--lib/synthesis.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/synthesis.c b/lib/synthesis.c
index 89136e25..aa5d927d 100644
--- a/lib/synthesis.c
+++ b/lib/synthesis.c
@@ -33,6 +33,21 @@ int vorbis_synthesis(vorbis_block *vb,ogg_packet *op){
/* get the LSP params back to LPC params. This will be for each
spectral floor curve */
+
+ /* {
+ int scale=1020;
+ double last=0;
+ for(i=0;i<30;i++){
+ last+=lsp1[i];
+ lsp2[i]=last*M_PI/scale;
+ }
+ }
+
+
+
+ vorbis_lsp_to_lpc(lsp2,lpc1,30);*/
+
+
/*for(i=0;i<vi->floorch;i++)
vorbis_lsp_to_lpc(vb->lsp[i],vb->lpc[i],vi->floororder);*/