first commit
This commit is contained in:
34
src/com/un4seen/bass/BASSWEBM.java
Normal file
34
src/com/un4seen/bass/BASSWEBM.java
Normal file
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
BASSWEBM 2.4 Java class
|
||||
Copyright (c) 2018-2019 Un4seen Developments Ltd.
|
||||
|
||||
See the BASSWEBM.CHM file for more detailed documentation
|
||||
*/
|
||||
|
||||
package com.un4seen.bass;
|
||||
|
||||
import com.sun.jna.Native;
|
||||
import com.sun.jna.Pointer;
|
||||
|
||||
public class BASSWEBM
|
||||
{
|
||||
// Additional error codes returned by BASS_ErrorGetCode
|
||||
public static final int BASS_ERROR_WEBM_TRACK = 8000;
|
||||
|
||||
// Additional tag types
|
||||
public static final int BASS_TAG_WEBM = 0x15000; // file tags : String array
|
||||
public static final int BASS_TAG_WEBM_TRACK = 0x15001; // track tags : String array
|
||||
|
||||
// Additional attributes
|
||||
public static final int BASS_ATTRIB_WEBM_TRACK = 0x16000;
|
||||
public static final int BASS_ATTRIB_WEBM_TRACKS = 0x16001;
|
||||
|
||||
public static native int BASS_WEBM_StreamCreateFile(String file, long offset, long length, int flags, int track);
|
||||
public static native int BASS_WEBM_StreamCreateURL(String url, int offset, int flags, BASS.DOWNLOADPROC proc, Pointer user, int track);
|
||||
public static native int BASS_WEBM_StreamCreateFileUser(int system, int flags, BASS.BASS_FILEPROCS procs, Pointer user, int track);
|
||||
|
||||
static {
|
||||
String path = BassLibrary.ExtractLibraryFromJar(BassLibrary.lib_basswebm);
|
||||
if (path!=null && path.length()>0) Native.register(BASSWEBM.class, path); }
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user