ProxyAudioConsumer.cs 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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 ProxyAudioConsumer : ProxyPlugin {
  12. private HandleRef swigCPtr;
  13. internal ProxyAudioConsumer(IntPtr cPtr, bool cMemoryOwn) : base(tinyWRAPPINVOKE.ProxyAudioConsumer_SWIGUpcast(cPtr), cMemoryOwn) {
  14. swigCPtr = new HandleRef(this, cPtr);
  15. }
  16. internal static HandleRef getCPtr(ProxyAudioConsumer obj) {
  17. return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
  18. }
  19. ~ProxyAudioConsumer() {
  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_ProxyAudioConsumer(swigCPtr);
  28. }
  29. swigCPtr = new HandleRef(null, IntPtr.Zero);
  30. }
  31. GC.SuppressFinalize(this);
  32. base.Dispose();
  33. }
  34. }
  35. public bool setActualSndCardPlaybackParams(int nPtime, int nRate, int nChannels) {
  36. bool ret = tinyWRAPPINVOKE.ProxyAudioConsumer_setActualSndCardPlaybackParams(swigCPtr, nPtime, nRate, nChannels);
  37. return ret;
  38. }
  39. public bool queryForResampler(ushort nInFreq, ushort nOutFreq, ushort nFrameDuration, ushort nChannels, ushort nResamplerQuality) {
  40. bool ret = tinyWRAPPINVOKE.ProxyAudioConsumer_queryForResampler(swigCPtr, nInFreq, nOutFreq, nFrameDuration, nChannels, nResamplerQuality);
  41. return ret;
  42. }
  43. public bool setPullBuffer(IntPtr pPullBufferPtr, uint nPullBufferSize) {
  44. bool ret = tinyWRAPPINVOKE.ProxyAudioConsumer_setPullBuffer(swigCPtr, pPullBufferPtr, nPullBufferSize);
  45. return ret;
  46. }
  47. public uint pull(IntPtr pOutput, uint nSize) {
  48. uint ret = tinyWRAPPINVOKE.ProxyAudioConsumer_pull__SWIG_0(swigCPtr, pOutput, nSize);
  49. return ret;
  50. }
  51. public uint pull(IntPtr pOutput) {
  52. uint ret = tinyWRAPPINVOKE.ProxyAudioConsumer_pull__SWIG_1(swigCPtr, pOutput);
  53. return ret;
  54. }
  55. public uint pull() {
  56. uint ret = tinyWRAPPINVOKE.ProxyAudioConsumer_pull__SWIG_2(swigCPtr);
  57. return ret;
  58. }
  59. public bool setGain(uint nGain) {
  60. bool ret = tinyWRAPPINVOKE.ProxyAudioConsumer_setGain(swigCPtr, nGain);
  61. return ret;
  62. }
  63. public uint getGain() {
  64. uint ret = tinyWRAPPINVOKE.ProxyAudioConsumer_getGain(swigCPtr);
  65. return ret;
  66. }
  67. public bool reset() {
  68. bool ret = tinyWRAPPINVOKE.ProxyAudioConsumer_reset(swigCPtr);
  69. return ret;
  70. }
  71. public void setCallback(ProxyAudioConsumerCallback pCallback) {
  72. tinyWRAPPINVOKE.ProxyAudioConsumer_setCallback(swigCPtr, ProxyAudioConsumerCallback.getCPtr(pCallback));
  73. }
  74. public virtual ulong getMediaSessionId() {
  75. ulong ret = tinyWRAPPINVOKE.ProxyAudioConsumer_getMediaSessionId(swigCPtr);
  76. return ret;
  77. }
  78. public static bool registerPlugin() {
  79. bool ret = tinyWRAPPINVOKE.ProxyAudioConsumer_registerPlugin();
  80. return ret;
  81. }
  82. }
  83. }