doubango/trunk/bindings/java/android/ProxyAudioConsumer.java

85 lines
2.8 KiB
Java

/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.39
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package org.doubango.tinyWRAP;
public class ProxyAudioConsumer {
private long swigCPtr;
protected boolean swigCMemOwn;
protected ProxyAudioConsumer(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(ProxyAudioConsumer obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
protected void finalize() {
delete();
}
public synchronized void delete() {
if(swigCPtr != 0 && swigCMemOwn) {
swigCMemOwn = false;
tinyWRAPJNI.delete_ProxyAudioConsumer(swigCPtr);
}
swigCPtr = 0;
}
protected void swigDirectorDisconnect() {
swigCMemOwn = false;
delete();
}
public void swigReleaseOwnership() {
swigCMemOwn = false;
tinyWRAPJNI.ProxyAudioConsumer_change_ownership(this, swigCPtr, false);
}
public void swigTakeOwnership() {
swigCMemOwn = true;
tinyWRAPJNI.ProxyAudioConsumer_change_ownership(this, swigCPtr, true);
}
public ProxyAudioConsumer() {
this(tinyWRAPJNI.new_ProxyAudioConsumer(), true);
tinyWRAPJNI.ProxyAudioConsumer_director_connect(this, swigCPtr, swigCMemOwn, false);
}
public int prepare(int ptime, int rate, int channels) {
return (getClass() == ProxyAudioConsumer.class) ? tinyWRAPJNI.ProxyAudioConsumer_prepare(swigCPtr, this, ptime, rate, channels) : tinyWRAPJNI.ProxyAudioConsumer_prepareSwigExplicitProxyAudioConsumer(swigCPtr, this, ptime, rate, channels);
}
public int start() {
return (getClass() == ProxyAudioConsumer.class) ? tinyWRAPJNI.ProxyAudioConsumer_start(swigCPtr, this) : tinyWRAPJNI.ProxyAudioConsumer_startSwigExplicitProxyAudioConsumer(swigCPtr, this);
}
public int pause() {
return (getClass() == ProxyAudioConsumer.class) ? tinyWRAPJNI.ProxyAudioConsumer_pause(swigCPtr, this) : tinyWRAPJNI.ProxyAudioConsumer_pauseSwigExplicitProxyAudioConsumer(swigCPtr, this);
}
public int stop() {
return (getClass() == ProxyAudioConsumer.class) ? tinyWRAPJNI.ProxyAudioConsumer_stop(swigCPtr, this) : tinyWRAPJNI.ProxyAudioConsumer_stopSwigExplicitProxyAudioConsumer(swigCPtr, this);
}
public void setActivate(boolean enabled) {
tinyWRAPJNI.ProxyAudioConsumer_setActivate(swigCPtr, this, enabled);
}
public long pull(java.nio.ByteBuffer output, long size) {
return tinyWRAPJNI.ProxyAudioConsumer_pull(swigCPtr, this, output, size);
}
public static boolean registerPlugin() {
return tinyWRAPJNI.ProxyAudioConsumer_registerPlugin();
}
}