diff options
author | Tim Terriberry <tterribe@xiph.org> | 2010-08-31 18:51:40 +0000 |
---|---|---|
committer | Tim Terriberry <tterribe@xiph.org> | 2010-08-31 18:51:40 +0000 |
commit | 7125eb6381e57436db1c5a2d7c4e52091c37e95c (patch) | |
tree | 69cac8f2ae0282587205c4044794b19be8ca1e30 /synthesis.c | |
parent | 4ec59aa611e2d4093428c66d01dbbf2535c6cca5 (diff) | |
download | tremor-7125eb6381e57436db1c5a2d7c4e52091c37e95c.tar.gz |
Remove the extra argument from vorbis_synthesis().
Add vorbis_synthesis_trackonly() instead, so that this part of the API works
like mainline libvorbis now.
git-svn-id: https://svn.xiph.org/trunk/Tremor@17374 0101bb08-14d6-0310-b084-bc0e0c8e3800
Diffstat (limited to 'synthesis.c')
-rw-r--r-- | synthesis.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/synthesis.c b/synthesis.c index 962c730..1c08752 100644 --- a/synthesis.c +++ b/synthesis.c @@ -24,7 +24,7 @@ #include "misc.h" #include "block.h" -int vorbis_synthesis(vorbis_block *vb,ogg_packet *op,int decodep){ +static int _vorbis_synthesis1(vorbis_block *vb,ogg_packet *op,int decodep){ vorbis_dsp_state *vd=vb->vd; private_state *b=(private_state *)vd->backend_state; vorbis_info *vi=vd->vi; @@ -82,6 +82,14 @@ int vorbis_synthesis(vorbis_block *vb,ogg_packet *op,int decodep){ } } +int vorbis_synthesis(vorbis_block *vb,ogg_packet *op){ + return _vorbis_synthesis1(vb,op,1); +} + +int vorbis_synthesis_trackonly(vorbis_block *vb,ogg_packet *op){ + return _vorbis_synthesis1(vb,op,0); +} + long vorbis_packet_blocksize(vorbis_info *vi,ogg_packet *op){ codec_setup_info *ci=(codec_setup_info *)vi->codec_setup; oggpack_buffer opb; |