ProxyAudioProducer.java 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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 ProxyAudioProducer extends ProxyPlugin {
  10. private long swigCPtr;
  11. protected ProxyAudioProducer(long cPtr, boolean cMemoryOwn) {
  12. super(tinyWRAPJNI.ProxyAudioProducer_SWIGUpcast(cPtr), cMemoryOwn);
  13. swigCPtr = cPtr;
  14. }
  15. protected static long getCPtr(ProxyAudioProducer obj) {
  16. return (obj == null) ? 0 : obj.swigCPtr;
  17. }
  18. protected void finalize() {
  19. delete();
  20. }
  21. public synchronized void delete() {
  22. if (swigCPtr != 0) {
  23. if (swigCMemOwn) {
  24. swigCMemOwn = false;
  25. tinyWRAPJNI.delete_ProxyAudioProducer(swigCPtr);
  26. }
  27. swigCPtr = 0;
  28. }
  29. super.delete();
  30. }
  31. public boolean setActualSndCardRecordParams(int nPtime, int nRate, int nChannels) {
  32. return tinyWRAPJNI.ProxyAudioProducer_setActualSndCardRecordParams(swigCPtr, this, nPtime, nRate, nChannels);
  33. }
  34. public boolean setPushBuffer(java.nio.ByteBuffer pPushBufferPtr, long nPushBufferSize, boolean bUsePushCallback) {
  35. return tinyWRAPJNI.ProxyAudioProducer_setPushBuffer__SWIG_0(swigCPtr, this, pPushBufferPtr, nPushBufferSize, bUsePushCallback);
  36. }
  37. public boolean setPushBuffer(java.nio.ByteBuffer pPushBufferPtr, long nPushBufferSize) {
  38. return tinyWRAPJNI.ProxyAudioProducer_setPushBuffer__SWIG_1(swigCPtr, this, pPushBufferPtr, nPushBufferSize);
  39. }
  40. public int push(java.nio.ByteBuffer pBuffer, long nSize) {
  41. return tinyWRAPJNI.ProxyAudioProducer_push__SWIG_0(swigCPtr, this, pBuffer, nSize);
  42. }
  43. public int push(java.nio.ByteBuffer pBuffer) {
  44. return tinyWRAPJNI.ProxyAudioProducer_push__SWIG_1(swigCPtr, this, pBuffer);
  45. }
  46. public int push() {
  47. return tinyWRAPJNI.ProxyAudioProducer_push__SWIG_2(swigCPtr, this);
  48. }
  49. public boolean setGain(long nGain) {
  50. return tinyWRAPJNI.ProxyAudioProducer_setGain(swigCPtr, this, nGain);
  51. }
  52. public long getGain() {
  53. return tinyWRAPJNI.ProxyAudioProducer_getGain(swigCPtr, this);
  54. }
  55. public void setCallback(ProxyAudioProducerCallback pCallback) {
  56. tinyWRAPJNI.ProxyAudioProducer_setCallback(swigCPtr, this, ProxyAudioProducerCallback.getCPtr(pCallback), pCallback);
  57. }
  58. public java.math.BigInteger getMediaSessionId() {
  59. return tinyWRAPJNI.ProxyAudioProducer_getMediaSessionId(swigCPtr, this);
  60. }
  61. public static boolean registerPlugin() {
  62. return tinyWRAPJNI.ProxyAudioProducer_registerPlugin();
  63. }
  64. }