ProxyAudioConsumer.java 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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 ProxyAudioConsumer extends ProxyPlugin {
  10. private long swigCPtr;
  11. protected ProxyAudioConsumer(long cPtr, boolean cMemoryOwn) {
  12. super(tinyWRAPJNI.ProxyAudioConsumer_SWIGUpcast(cPtr), cMemoryOwn);
  13. swigCPtr = cPtr;
  14. }
  15. protected static long getCPtr(ProxyAudioConsumer 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_ProxyAudioConsumer(swigCPtr);
  26. }
  27. swigCPtr = 0;
  28. }
  29. super.delete();
  30. }
  31. public boolean setActualSndCardPlaybackParams(int nPtime, int nRate, int nChannels) {
  32. return tinyWRAPJNI.ProxyAudioConsumer_setActualSndCardPlaybackParams(swigCPtr, this, nPtime, nRate, nChannels);
  33. }
  34. public boolean queryForResampler(int nInFreq, int nOutFreq, int nFrameDuration, int nChannels, int nResamplerQuality) {
  35. return tinyWRAPJNI.ProxyAudioConsumer_queryForResampler(swigCPtr, this, nInFreq, nOutFreq, nFrameDuration, nChannels, nResamplerQuality);
  36. }
  37. public boolean setPullBuffer(java.nio.ByteBuffer pPullBufferPtr, long nPullBufferSize) {
  38. return tinyWRAPJNI.ProxyAudioConsumer_setPullBuffer(swigCPtr, this, pPullBufferPtr, nPullBufferSize);
  39. }
  40. public long pull(java.nio.ByteBuffer pOutput, long nSize) {
  41. return tinyWRAPJNI.ProxyAudioConsumer_pull__SWIG_0(swigCPtr, this, pOutput, nSize);
  42. }
  43. public long pull(java.nio.ByteBuffer pOutput) {
  44. return tinyWRAPJNI.ProxyAudioConsumer_pull__SWIG_1(swigCPtr, this, pOutput);
  45. }
  46. public long pull() {
  47. return tinyWRAPJNI.ProxyAudioConsumer_pull__SWIG_2(swigCPtr, this);
  48. }
  49. public boolean setGain(long nGain) {
  50. return tinyWRAPJNI.ProxyAudioConsumer_setGain(swigCPtr, this, nGain);
  51. }
  52. public long getGain() {
  53. return tinyWRAPJNI.ProxyAudioConsumer_getGain(swigCPtr, this);
  54. }
  55. public boolean reset() {
  56. return tinyWRAPJNI.ProxyAudioConsumer_reset(swigCPtr, this);
  57. }
  58. public void setCallback(ProxyAudioConsumerCallback pCallback) {
  59. tinyWRAPJNI.ProxyAudioConsumer_setCallback(swigCPtr, this, ProxyAudioConsumerCallback.getCPtr(pCallback), pCallback);
  60. }
  61. public java.math.BigInteger getMediaSessionId() {
  62. return tinyWRAPJNI.ProxyAudioConsumer_getMediaSessionId(swigCPtr, this);
  63. }
  64. public static boolean registerPlugin() {
  65. return tinyWRAPJNI.ProxyAudioConsumer_registerPlugin();
  66. }
  67. }