diff options
author | j <j@xiph.org> | 2008-04-01 10:47:58 +0000 |
---|---|---|
committer | j <j@xiph.org> | 2008-04-01 10:47:58 +0000 |
commit | bec669ca77cb40eeb973db8bab451d917b6f2a8e (patch) | |
tree | 5cb6e8af257a6565d63743c30a9185b6a140245b /examples/chaining_example.c | |
parent | 6fffd23801d8abeb859051a4d57bd12c1c0dc9fb (diff) | |
download | libvorbis-git-vorbis-aotuv.tar.gz |
import "aoTuV" beta5.5vorbis-aotuv
* based on libvorbis 1.2.0
* The noise control of the Impulse block was expanded.
This is effective with the outstanding sample of the pre-echo.
* The pre-echo reduction code came to work at a lower bit rate.
* Noise Normalization was reviewed. As a result, the bug is revised.
* The detailed tuning was done again.
svn path=/branches/vorbis-aotuv/; revision=14647
Diffstat (limited to 'examples/chaining_example.c')
-rw-r--r-- | examples/chaining_example.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/examples/chaining_example.c b/examples/chaining_example.c index 3910d314..53f9ccfd 100644 --- a/examples/chaining_example.c +++ b/examples/chaining_example.c @@ -5,13 +5,13 @@ * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE * * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. * * * - * THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2002 * - * by the XIPHOPHORUS Company http://www.xiph.org/ * + * THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2007 * + * by the Xiph.Org Foundation http://www.xiph.org/ * * * ******************************************************************** function: illustrate simple use of chained bitstream and vorbisfile.a - last mod: $Id: chaining_example.c,v 1.18 2002/10/11 11:14:41 xiphmont Exp $ + last mod: $Id$ ********************************************************************/ @@ -28,15 +28,14 @@ int main(){ OggVorbis_File ov; int i; -#ifdef _WIN32 /* We need to set stdin/stdout to binary mode. Damn windows. */ +#ifdef _WIN32 /* We need to set stdin to binary mode. Damn windows. */ /* Beware the evil ifdef. We avoid these where we can, but this one we cannot. Don't add any more, you'll probably go to hell if you do. */ _setmode( _fileno( stdin ), _O_BINARY ); - _setmode( _fileno( stdout ), _O_BINARY ); #endif /* open the file/pipe on stdin */ - if(ov_open(stdin,&ov,NULL,-1)<0){ + if(ov_open_callbacks(stdin,&ov,NULL,-1,OV_CALLBACKS_NOCLOSE)<0){ printf("Could not open input as an OggVorbis file.\n\n"); exit(1); } |