ProxyAudioConsumerCallback.java 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /* ----------------------------------------------------------------------------
  2. * This file was automatically generated by SWIG (http://www.swig.org).
  3. * Version 2.0.9
  4. *
  5. * Do not make changes to this file unless you know what you are doing--modify
  6. * the SWIG interface file instead.
  7. * ----------------------------------------------------------------------------- */
  8. package org.doubango.tinyWRAP;
  9. public class ProxyAudioConsumerCallback {
  10. private long swigCPtr;
  11. protected boolean swigCMemOwn;
  12. protected ProxyAudioConsumerCallback(long cPtr, boolean cMemoryOwn) {
  13. swigCMemOwn = cMemoryOwn;
  14. swigCPtr = cPtr;
  15. }
  16. protected static long getCPtr(ProxyAudioConsumerCallback obj) {
  17. return (obj == null) ? 0 : obj.swigCPtr;
  18. }
  19. protected void finalize() {
  20. delete();
  21. }
  22. public synchronized void delete() {
  23. if (swigCPtr != 0) {
  24. if (swigCMemOwn) {
  25. swigCMemOwn = false;
  26. tinyWRAPJNI.delete_ProxyAudioConsumerCallback(swigCPtr);
  27. }
  28. swigCPtr = 0;
  29. }
  30. }
  31. protected void swigDirectorDisconnect() {
  32. swigCMemOwn = false;
  33. delete();
  34. }
  35. public void swigReleaseOwnership() {
  36. swigCMemOwn = false;
  37. tinyWRAPJNI.ProxyAudioConsumerCallback_change_ownership(this, swigCPtr, false);
  38. }
  39. public void swigTakeOwnership() {
  40. swigCMemOwn = true;
  41. tinyWRAPJNI.ProxyAudioConsumerCallback_change_ownership(this, swigCPtr, true);
  42. }
  43. public ProxyAudioConsumerCallback() {
  44. this(tinyWRAPJNI.new_ProxyAudioConsumerCallback(), true);
  45. tinyWRAPJNI.ProxyAudioConsumerCallback_director_connect(this, swigCPtr, swigCMemOwn, true);
  46. }
  47. public int prepare(int ptime, int rate, int channels) {
  48. return (getClass() == ProxyAudioConsumerCallback.class) ? tinyWRAPJNI.ProxyAudioConsumerCallback_prepare(swigCPtr, this, ptime, rate, channels) : tinyWRAPJNI.ProxyAudioConsumerCallback_prepareSwigExplicitProxyAudioConsumerCallback(swigCPtr, this, ptime, rate, channels);
  49. }
  50. public int start() {
  51. return (getClass() == ProxyAudioConsumerCallback.class) ? tinyWRAPJNI.ProxyAudioConsumerCallback_start(swigCPtr, this) : tinyWRAPJNI.ProxyAudioConsumerCallback_startSwigExplicitProxyAudioConsumerCallback(swigCPtr, this);
  52. }
  53. public int pause() {
  54. return (getClass() == ProxyAudioConsumerCallback.class) ? tinyWRAPJNI.ProxyAudioConsumerCallback_pause(swigCPtr, this) : tinyWRAPJNI.ProxyAudioConsumerCallback_pauseSwigExplicitProxyAudioConsumerCallback(swigCPtr, this);
  55. }
  56. public int stop() {
  57. return (getClass() == ProxyAudioConsumerCallback.class) ? tinyWRAPJNI.ProxyAudioConsumerCallback_stop(swigCPtr, this) : tinyWRAPJNI.ProxyAudioConsumerCallback_stopSwigExplicitProxyAudioConsumerCallback(swigCPtr, this);
  58. }
  59. }