biniu.vorbis
Class EncodeExample
public
class
EncodeExample
extends Object
*
THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE. *
USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
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/ *
*
Title: EncoderVorbis
Description: Codec for encoding music files (wav -> ogg)
public static int READ
public EncodeExample()
Encoding using a VBR quality mode. The usable range is -.1
(lowest quality, smallest file) to 1. (highest quality, largest file).
Example quality mode .4: 44kHz stereo coupled, roughly 128kbps VBR
ret = vorbis_encode_init_vbr(&vi,2,44100,.4);
---------------------------------------------------------------------
Encoding using an average bitrate mode (ABR).
example: 44kHz stereo coupled, average 128kbps VBR
ret = vorbis_encode_init(&vi,2,44100,-1,128000,-1);
---------------------------------------------------------------------
Encode using a quality mode, but select that quality mode by asking for
an approximate bitrate. This is not ABR, it is true VBR, but selected
using the bitrate interface, and then turning bitrate management off:
ret = ( vorbis_encode_setup_managed(&vi,2,44100,-1,128000,-1) ||
vorbis_encode_ctl(&vi,OV_ECTL_RATEMANAGE2_SET,NULL) ||
vorbis_encode_setup_init(&vi));
public static void main(String[] arg)