Codec.cs 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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 Codec : IDisposable {
  12. private HandleRef swigCPtr;
  13. protected bool swigCMemOwn;
  14. internal Codec(IntPtr cPtr, bool cMemoryOwn) {
  15. swigCMemOwn = cMemoryOwn;
  16. swigCPtr = new HandleRef(this, cPtr);
  17. }
  18. internal static HandleRef getCPtr(Codec obj) {
  19. return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
  20. }
  21. ~Codec() {
  22. Dispose();
  23. }
  24. public virtual void Dispose() {
  25. lock(this) {
  26. if (swigCPtr.Handle != IntPtr.Zero) {
  27. if (swigCMemOwn) {
  28. swigCMemOwn = false;
  29. tinyWRAPPINVOKE.delete_Codec(swigCPtr);
  30. }
  31. swigCPtr = new HandleRef(null, IntPtr.Zero);
  32. }
  33. GC.SuppressFinalize(this);
  34. }
  35. }
  36. public twrap_media_type_t getMediaType() {
  37. twrap_media_type_t ret = (twrap_media_type_t)tinyWRAPPINVOKE.Codec_getMediaType(swigCPtr);
  38. return ret;
  39. }
  40. public string getName() {
  41. string ret = tinyWRAPPINVOKE.Codec_getName(swigCPtr);
  42. return ret;
  43. }
  44. public string getDescription() {
  45. string ret = tinyWRAPPINVOKE.Codec_getDescription(swigCPtr);
  46. return ret;
  47. }
  48. public string getNegFormat() {
  49. string ret = tinyWRAPPINVOKE.Codec_getNegFormat(swigCPtr);
  50. return ret;
  51. }
  52. public int getAudioSamplingRate() {
  53. int ret = tinyWRAPPINVOKE.Codec_getAudioSamplingRate(swigCPtr);
  54. return ret;
  55. }
  56. public int getAudioChannels() {
  57. int ret = tinyWRAPPINVOKE.Codec_getAudioChannels(swigCPtr);
  58. return ret;
  59. }
  60. public int getAudioPTime() {
  61. int ret = tinyWRAPPINVOKE.Codec_getAudioPTime(swigCPtr);
  62. return ret;
  63. }
  64. }
  65. }