summaryrefslogtreecommitdiff
path: root/songdbj/com/jcraft/jorbis/ChainingExample.java
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2007-01-08 23:53:00 +0000
committerBjörn Stenberg <bjorn@haxx.se>2007-01-08 23:53:00 +0000
commit7039a05147b8bbfc829babea1c65bd436450b505 (patch)
tree4ba555eb84ed97b72b0575034d5b0530a393713e /songdbj/com/jcraft/jorbis/ChainingExample.java
parent6d4c19707ef95942e323cbdc89fbbfdbe45e7cc5 (diff)
downloadrockbox-7039a05147b8bbfc829babea1c65bd436450b505.zip
rockbox-7039a05147b8bbfc829babea1c65bd436450b505.tar.gz
rockbox-7039a05147b8bbfc829babea1c65bd436450b505.tar.bz2
rockbox-7039a05147b8bbfc829babea1c65bd436450b505.tar.xz
Splitting out songdbj
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11953 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'songdbj/com/jcraft/jorbis/ChainingExample.java')
-rw-r--r--songdbj/com/jcraft/jorbis/ChainingExample.java61
1 files changed, 0 insertions, 61 deletions
diff --git a/songdbj/com/jcraft/jorbis/ChainingExample.java b/songdbj/com/jcraft/jorbis/ChainingExample.java
deleted file mode 100644
index 82592f2..0000000
--- a/songdbj/com/jcraft/jorbis/ChainingExample.java
+++ /dev/null
@@ -1,61 +0,0 @@
-/* JOrbis
- * Copyright (C) 2000 ymnk, JCraft,Inc.
- *
- * Written by: 2000 ymnk<ymnk@jcraft.com>
- *
- * Many thanks to
- * Monty <monty@xiph.org> and
- * The XIPHOPHORUS Company http://www.xiph.org/ .
- * JOrbis has been based on their awesome works, Vorbis codec.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public License
- * as published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
-
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Library General Public License for more details.
- *
- * You should have received a copy of the GNU Library General Public
- * License along with this program; if not, write to the Free Software
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- */
-
-package com.jcraft.jorbis;
-
-class ChainingExample{
- public static void main(String[] arg){
- VorbisFile ov=null;
-
- try{
- ov=new VorbisFile(System.in, null, -1);
- }
- catch(Exception e){
- System.err.println(e);
- return;
- }
-
- if(ov.seekable()){
- System.out.println("Input bitstream contained "+ov.streams()+" logical bitstream section(s).");
- System.out.println("Total bitstream playing time: "+ov.time_total(-1)+" seconds\n");
- }
- else{
- System.out.println("Standard input was not seekable.");
- System.out.println("First logical bitstream information:\n");
- }
-
- for(int i=0;i<ov.streams();i++){
- Info vi=ov.getInfo(i);
- System.out.println("\tlogical bitstream section "+(i+1)+" information:");
- System.out.println("\t\t"+vi.rate+"Hz "+vi.channels+" channels bitrate "+
- (ov.bitrate(i)/1000)+"kbps serial number="+ov.serialnumber(i));
- System.out.print("\t\tcompressed length: "+ov.raw_total(i)+" bytes ");
- System.out.println(" play time: "+ov.time_total(i)+"s");
- Comment vc=ov.getComment(i);
- System.out.println(vc);
- }
- //clear(&ov);
- }
-}