ProxyAudioProducer.cs 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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. namespace org.doubango.tinyWRAP {
  9. using System;
  10. using System.Runtime.InteropServices;
  11. public class ProxyAudioProducer : ProxyPlugin {
  12. private HandleRef swigCPtr;
  13. internal ProxyAudioProducer(IntPtr cPtr, bool cMemoryOwn) : base(tinyWRAPPINVOKE.ProxyAudioProducer_SWIGUpcast(cPtr), cMemoryOwn) {
  14. swigCPtr = new HandleRef(this, cPtr);
  15. }
  16. internal static HandleRef getCPtr(ProxyAudioProducer obj) {
  17. return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
  18. }
  19. ~ProxyAudioProducer() {
  20. Dispose();
  21. }
  22. public override void Dispose() {
  23. lock(this) {
  24. if (swigCPtr.Handle != IntPtr.Zero) {
  25. if (swigCMemOwn) {
  26. swigCMemOwn = false;
  27. tinyWRAPPINVOKE.delete_ProxyAudioProducer(swigCPtr);
  28. }
  29. swigCPtr = new HandleRef(null, IntPtr.Zero);
  30. }
  31. GC.SuppressFinalize(this);
  32. base.Dispose();
  33. }
  34. }
  35. public bool setActualSndCardRecordParams(int nPtime, int nRate, int nChannels) {
  36. bool ret = tinyWRAPPINVOKE.ProxyAudioProducer_setActualSndCardRecordParams(swigCPtr, nPtime, nRate, nChannels);
  37. return ret;
  38. }
  39. public bool setPushBuffer(IntPtr pPushBufferPtr, uint nPushBufferSize, bool bUsePushCallback) {
  40. bool ret = tinyWRAPPINVOKE.ProxyAudioProducer_setPushBuffer__SWIG_0(swigCPtr, pPushBufferPtr, nPushBufferSize, bUsePushCallback);
  41. return ret;
  42. }
  43. public bool setPushBuffer(IntPtr pPushBufferPtr, uint nPushBufferSize) {
  44. bool ret = tinyWRAPPINVOKE.ProxyAudioProducer_setPushBuffer__SWIG_1(swigCPtr, pPushBufferPtr, nPushBufferSize);
  45. return ret;
  46. }
  47. public int push(IntPtr pBuffer, uint nSize) {
  48. int ret = tinyWRAPPINVOKE.ProxyAudioProducer_push__SWIG_0(swigCPtr, pBuffer, nSize);
  49. return ret;
  50. }
  51. public int push(IntPtr pBuffer) {
  52. int ret = tinyWRAPPINVOKE.ProxyAudioProducer_push__SWIG_1(swigCPtr, pBuffer);
  53. return ret;
  54. }
  55. public int push() {
  56. int ret = tinyWRAPPINVOKE.ProxyAudioProducer_push__SWIG_2(swigCPtr);
  57. return ret;
  58. }
  59. public bool setGain(uint nGain) {
  60. bool ret = tinyWRAPPINVOKE.ProxyAudioProducer_setGain(swigCPtr, nGain);
  61. return ret;
  62. }
  63. public uint getGain() {
  64. uint ret = tinyWRAPPINVOKE.ProxyAudioProducer_getGain(swigCPtr);
  65. return ret;
  66. }
  67. public void setCallback(ProxyAudioProducerCallback pCallback) {
  68. tinyWRAPPINVOKE.ProxyAudioProducer_setCallback(swigCPtr, ProxyAudioProducerCallback.getCPtr(pCallback));
  69. }
  70. public virtual ulong getMediaSessionId() {
  71. ulong ret = tinyWRAPPINVOKE.ProxyAudioProducer_getMediaSessionId(swigCPtr);
  72. return ret;
  73. }
  74. public static bool registerPlugin() {
  75. bool ret = tinyWRAPPINVOKE.ProxyAudioProducer_registerPlugin();
  76. return ret;
  77. }
  78. }
  79. }