From 9fee0ec4ca0c5b7a334cc29dbb58e76c7a4c736e Mon Sep 17 00:00:00 2001 From: Michiel Van Der Kolk Date: Mon, 11 Jul 2005 15:42:37 +0000 Subject: Songdb java version, source. only 1.5 compatible git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7101 a1c6a512-1295-4272-9138-f99709370657 --- songdbj/de/jarnbjo/vorbis/Floor0.java | 74 +++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 songdbj/de/jarnbjo/vorbis/Floor0.java (limited to 'songdbj/de/jarnbjo/vorbis/Floor0.java') diff --git a/songdbj/de/jarnbjo/vorbis/Floor0.java b/songdbj/de/jarnbjo/vorbis/Floor0.java new file mode 100644 index 0000000000..4e94b27b73 --- /dev/null +++ b/songdbj/de/jarnbjo/vorbis/Floor0.java @@ -0,0 +1,74 @@ +/* + * $ProjectName$ + * $ProjectRevision$ + * ----------------------------------------------------------- + * $Id$ + * ----------------------------------------------------------- + * + * $Author$ + * + * Description: + * + * Copyright 2002-2003 Tor-Einar Jarnbjo + * ----------------------------------------------------------- + * + * Change History + * ----------------------------------------------------------- + * $Log$ + * Revision 1.1 2005/07/11 15:42:36 hcl + * Songdb java version, source. only 1.5 compatible + * + * Revision 1.1.1.1 2004/04/04 22:09:12 shred + * First Import + * + * Revision 1.2 2003/03/16 01:11:12 jarnbjo + * no message + * + * + */ + +package de.jarnbjo.vorbis; + +import java.io.IOException; + +import de.jarnbjo.util.io.BitInputStream; + +class Floor0 extends Floor { + + private int order, rate, barkMapSize, amplitudeBits, amplitudeOffset; + private int bookList[]; + + protected Floor0(BitInputStream source, SetupHeader header) throws VorbisFormatException, IOException { + + order=source.getInt(8); + rate=source.getInt(16); + barkMapSize=source.getInt(16); + amplitudeBits=source.getInt(6); + amplitudeOffset=source.getInt(8); + + int bookCount=source.getInt(4)+1; + bookList=new int[bookCount]; + + for(int i=0; iheader.getCodeBooks().length) { + throw new VorbisFormatException("A floor0_book_list entry is higher than the code book count."); + } + } + } + + protected int getType() { + return 0; + } + + protected Floor decodeFloor(VorbisStream vorbis, BitInputStream source) throws VorbisFormatException, IOException { + /** @todo implement */ + throw new UnsupportedOperationException(); + } + + protected void computeFloor(float[] vector) { + /** @todo implement */ + throw new UnsupportedOperationException(); + } + +} \ No newline at end of file -- cgit v1.2.3