Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUC...
If you think the Android project DoomPlay listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
Java Source Code
/*
BASSFLAC 2.4 Java class//fromwww.java2s.com
Copyright (c) 2004-2011 Un4seen Developments Ltd.
See the BASSFLAC.CHM file for more detailed documentation
*/package com.un4seen.bass;
import java.nio.ByteBuffer;
publicclass BASSFLAC
{
// BASS_CHANNELINFO type
publicstaticfinalint BASS_CTYPE_STREAM_FLAC = 0x10900;
publicstaticfinalint BASS_CTYPE_STREAM_FLAC_OGG = 0x10901;
// Additional tag types
publicstaticfinalint BASS_TAG_FLAC_CUE = 12; // cuesheet : TAG_FLAC_CUE structure
publicstaticfinalint BASS_TAG_FLAC_PICTURE = 0x12000; // + index #, picture : TAG_FLAC_PICTURE structure
publicstaticclass TAG_FLAC_PICTURE {
publicint apic; // ID3v2 "APIC" picture type
public String mime; // mime type
public String desc; // description
publicint width;
publicint height;
publicint depth;
publicint colors;
publicint length; // data length
public ByteBuffer data;
}
publicstaticclass TAG_FLAC_CUE_TRACK_INDEX {
publiclong offset; // index offset relative to track offset (samples)
publicint number; // index number
}
publicstaticclass TAG_FLAC_CUE_TRACK {
publiclong offset; // track offset (samples)
publicint number; // track number
public String isrc; // ISRC
publicint flags;
publicint nindexes; // number of indexes
public TAG_FLAC_CUE_TRACK_INDEX[] indexes; // the indexes
}
publicstaticclass TAG_FLAC_CUE {
public String catalog; // media catalog number
publicint leadin; // lead-in (samples)
publicboolean iscd; // a CD?
publicint ntracks; // number of tracks
public TAG_FLAC_CUE_TRACK[] tracks; // the tracks
}
// TAG_FLAC_CUE_TRACK flags
publicstaticfinalint TAG_FLAC_CUE_TRACK_DATA = 1; // data track
publicstaticfinalint TAG_FLAC_CUE_TRACK_PRE = 2; // pre-emphasis
publicstaticnativeint BASS_FLAC_StreamCreateFile(String file, long offset, long length, int flags);
publicstaticnativeint BASS_FLAC_StreamCreateFile(ByteBuffer file, long offset, long length, int flags);
publicstaticnativeint BASS_FLAC_StreamCreateURL(String url, int offset, int flags, BASS.DOWNLOADPROC proc, Object user);
publicstaticnativeint BASS_FLAC_StreamCreateFileUser(int system, int flags, BASS.BASS_FILEPROCS procs, Object user);
static {
System.loadLibrary("bassflac");
}
}