diff options
author | Monty <xiphmont@xiph.org> | 1999-10-05 15:35:02 +0000 |
---|---|---|
committer | Monty <xiphmont@xiph.org> | 1999-10-05 15:35:02 +0000 |
commit | 321b01cbbc49f8f4fb685b16c3f743cfd62944f6 (patch) | |
tree | f1eb439bf10280b4820c11d41f4fb6e472c08af9 /lib/synthesis.c | |
parent | a59eb30e780edb218288b3082b8b863ecb73d148 (diff) | |
download | libvorbis-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.c | 15 |
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);*/ |