Created C# Wrapper

This commit is contained in:
Dogshep 2012-06-26 15:36:26 -07:00
parent 2e0234d469
commit d9e58fbdf9
39 changed files with 13485 additions and 13485 deletions

View File

@ -1,68 +1,68 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
namespace cAudio {
using System;
using System.Runtime.InteropServices;
public class AudioCaptureBuffer : IDisposable {
private HandleRef swigCPtr;
protected bool swigCMemOwn;
internal AudioCaptureBuffer(IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = new HandleRef(this, cPtr);
}
internal static HandleRef getCPtr(AudioCaptureBuffer obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
~AudioCaptureBuffer() {
Dispose();
}
public virtual void Dispose() {
lock(this) {
if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) {
swigCMemOwn = false;
cAudioCSharpWrapperPINVOKE.delete_AudioCaptureBuffer(swigCPtr);
}
swigCPtr = new HandleRef(null, IntPtr.Zero);
}
GC.SuppressFinalize(this);
}
}
public AudioCaptureBuffer(uint inlength) : this(cAudioCSharpWrapperPINVOKE.new_AudioCaptureBuffer__SWIG_0(inlength), true) {
}
public AudioCaptureBuffer(AudioCaptureBuffer p) : this(cAudioCSharpWrapperPINVOKE.new_AudioCaptureBuffer__SWIG_1(AudioCaptureBuffer.getCPtr(p)), true) {
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
}
public string getReadBuffer() {
string ret = cAudioCSharpWrapperPINVOKE.AudioCaptureBuffer_getReadBuffer(swigCPtr);
return ret;
}
public string getWriteBuffer() {
string ret = cAudioCSharpWrapperPINVOKE.AudioCaptureBuffer_getWriteBuffer(swigCPtr);
return ret;
}
public uint getLength() {
uint ret = cAudioCSharpWrapperPINVOKE.AudioCaptureBuffer_getLength(swigCPtr);
return ret;
}
}
}
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.7
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
namespace cAudio {
using System;
using System.Runtime.InteropServices;
public class AudioCaptureBuffer : IDisposable {
private HandleRef swigCPtr;
protected bool swigCMemOwn;
internal AudioCaptureBuffer(IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = new HandleRef(this, cPtr);
}
internal static HandleRef getCPtr(AudioCaptureBuffer obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
~AudioCaptureBuffer() {
Dispose();
}
public virtual void Dispose() {
lock(this) {
if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) {
swigCMemOwn = false;
cAudioCSharpWrapperPINVOKE.delete_AudioCaptureBuffer(swigCPtr);
}
swigCPtr = new HandleRef(null, IntPtr.Zero);
}
GC.SuppressFinalize(this);
}
}
public AudioCaptureBuffer(uint inlength) : this(cAudioCSharpWrapperPINVOKE.new_AudioCaptureBuffer__SWIG_0(inlength), true) {
}
public AudioCaptureBuffer(AudioCaptureBuffer p) : this(cAudioCSharpWrapperPINVOKE.new_AudioCaptureBuffer__SWIG_1(AudioCaptureBuffer.getCPtr(p)), true) {
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
}
public string getReadBuffer() {
string ret = cAudioCSharpWrapperPINVOKE.AudioCaptureBuffer_getReadBuffer(swigCPtr);
return ret;
}
public string getWriteBuffer() {
string ret = cAudioCSharpWrapperPINVOKE.AudioCaptureBuffer_getWriteBuffer(swigCPtr);
return ret;
}
public uint getLength() {
uint ret = cAudioCSharpWrapperPINVOKE.AudioCaptureBuffer_getLength(swigCPtr);
return ret;
}
}
}

View File

@ -1,18 +1,18 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
namespace cAudio {
public enum AudioFormats {
EAF_8BIT_MONO,
EAF_8BIT_STEREO,
EAF_16BIT_MONO,
EAF_16BIT_STEREO
}
}
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.7
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
namespace cAudio {
public enum AudioFormats {
EAF_8BIT_MONO,
EAF_8BIT_STEREO,
EAF_16BIT_MONO,
EAF_16BIT_STEREO
}
}

View File

@ -1,349 +1,349 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
namespace cAudio {
using System;
using System.Runtime.InteropServices;
public class DoubleVector : IDisposable, System.Collections.IEnumerable
#if !SWIG_DOTNET_1
, System.Collections.Generic.IList<double>
#endif
{
private HandleRef swigCPtr;
protected bool swigCMemOwn;
internal DoubleVector(IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = new HandleRef(this, cPtr);
}
internal static HandleRef getCPtr(DoubleVector obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
~DoubleVector() {
Dispose();
}
public virtual void Dispose() {
lock(this) {
if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) {
swigCMemOwn = false;
cAudioCSharpWrapperPINVOKE.delete_DoubleVector(swigCPtr);
}
swigCPtr = new HandleRef(null, IntPtr.Zero);
}
GC.SuppressFinalize(this);
}
}
public DoubleVector(System.Collections.ICollection c) : this() {
if (c == null)
throw new ArgumentNullException("c");
foreach (double element in c) {
this.Add(element);
}
}
public bool IsFixedSize {
get {
return false;
}
}
public bool IsReadOnly {
get {
return false;
}
}
public double this[int index] {
get {
return getitem(index);
}
set {
setitem(index, value);
}
}
public int Capacity {
get {
return (int)capacity();
}
set {
if (value < size())
throw new ArgumentOutOfRangeException("Capacity");
reserve((uint)value);
}
}
public int Count {
get {
return (int)size();
}
}
public bool IsSynchronized {
get {
return false;
}
}
#if SWIG_DOTNET_1
public void CopyTo(System.Array array)
#else
public void CopyTo(double[] array)
#endif
{
CopyTo(0, array, 0, this.Count);
}
#if SWIG_DOTNET_1
public void CopyTo(System.Array array, int arrayIndex)
#else
public void CopyTo(double[] array, int arrayIndex)
#endif
{
CopyTo(0, array, arrayIndex, this.Count);
}
#if SWIG_DOTNET_1
public void CopyTo(int index, System.Array array, int arrayIndex, int count)
#else
public void CopyTo(int index, double[] array, int arrayIndex, int count)
#endif
{
if (array == null)
throw new ArgumentNullException("array");
if (index < 0)
throw new ArgumentOutOfRangeException("index", "Value is less than zero");
if (arrayIndex < 0)
throw new ArgumentOutOfRangeException("arrayIndex", "Value is less than zero");
if (count < 0)
throw new ArgumentOutOfRangeException("count", "Value is less than zero");
if (array.Rank > 1)
throw new ArgumentException("Multi dimensional array.", "array");
if (index+count > this.Count || arrayIndex+count > array.Length)
throw new ArgumentException("Number of elements to copy is too large.");
for (int i=0; i<count; i++)
array.SetValue(getitemcopy(index+i), arrayIndex+i);
}
#if !SWIG_DOTNET_1
System.Collections.Generic.IEnumerator<double> System.Collections.Generic.IEnumerable<double>.GetEnumerator() {
return new DoubleVectorEnumerator(this);
}
#endif
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() {
return new DoubleVectorEnumerator(this);
}
public DoubleVectorEnumerator GetEnumerator() {
return new DoubleVectorEnumerator(this);
}
// Type-safe enumerator
/// Note that the IEnumerator documentation requires an InvalidOperationException to be thrown
/// whenever the collection is modified. This has been done for changes in the size of the
/// collection but not when one of the elements of the collection is modified as it is a bit
/// tricky to detect unmanaged code that modifies the collection under our feet.
public sealed class DoubleVectorEnumerator : System.Collections.IEnumerator
#if !SWIG_DOTNET_1
, System.Collections.Generic.IEnumerator<double>
#endif
{
private DoubleVector collectionRef;
private int currentIndex;
private object currentObject;
private int currentSize;
public DoubleVectorEnumerator(DoubleVector collection) {
collectionRef = collection;
currentIndex = -1;
currentObject = null;
currentSize = collectionRef.Count;
}
// Type-safe iterator Current
public double Current {
get {
if (currentIndex == -1)
throw new InvalidOperationException("Enumeration not started.");
if (currentIndex > currentSize - 1)
throw new InvalidOperationException("Enumeration finished.");
if (currentObject == null)
throw new InvalidOperationException("Collection modified.");
return (double)currentObject;
}
}
// Type-unsafe IEnumerator.Current
object System.Collections.IEnumerator.Current {
get {
return Current;
}
}
public bool MoveNext() {
int size = collectionRef.Count;
bool moveOkay = (currentIndex+1 < size) && (size == currentSize);
if (moveOkay) {
currentIndex++;
currentObject = collectionRef[currentIndex];
} else {
currentObject = null;
}
return moveOkay;
}
public void Reset() {
currentIndex = -1;
currentObject = null;
if (collectionRef.Count != currentSize) {
throw new InvalidOperationException("Collection modified.");
}
}
#if !SWIG_DOTNET_1
public void Dispose() {
currentIndex = -1;
currentObject = null;
}
#endif
}
public void Clear() {
cAudioCSharpWrapperPINVOKE.DoubleVector_Clear(swigCPtr);
}
public void Add(double x) {
cAudioCSharpWrapperPINVOKE.DoubleVector_Add(swigCPtr, x);
}
private uint size() {
uint ret = cAudioCSharpWrapperPINVOKE.DoubleVector_size(swigCPtr);
return ret;
}
private uint capacity() {
uint ret = cAudioCSharpWrapperPINVOKE.DoubleVector_capacity(swigCPtr);
return ret;
}
private void reserve(uint n) {
cAudioCSharpWrapperPINVOKE.DoubleVector_reserve(swigCPtr, n);
}
public DoubleVector() : this(cAudioCSharpWrapperPINVOKE.new_DoubleVector__SWIG_0(), true) {
}
public DoubleVector(DoubleVector other) : this(cAudioCSharpWrapperPINVOKE.new_DoubleVector__SWIG_1(DoubleVector.getCPtr(other)), true) {
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
}
public DoubleVector(int capacity) : this(cAudioCSharpWrapperPINVOKE.new_DoubleVector__SWIG_2(capacity), true) {
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
}
private double getitemcopy(int index) {
double ret = cAudioCSharpWrapperPINVOKE.DoubleVector_getitemcopy(swigCPtr, index);
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
private double getitem(int index) {
double ret = cAudioCSharpWrapperPINVOKE.DoubleVector_getitem(swigCPtr, index);
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
private void setitem(int index, double val) {
cAudioCSharpWrapperPINVOKE.DoubleVector_setitem(swigCPtr, index, val);
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
}
public void AddRange(DoubleVector values) {
cAudioCSharpWrapperPINVOKE.DoubleVector_AddRange(swigCPtr, DoubleVector.getCPtr(values));
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
}
public DoubleVector GetRange(int index, int count) {
IntPtr cPtr = cAudioCSharpWrapperPINVOKE.DoubleVector_GetRange(swigCPtr, index, count);
DoubleVector ret = (cPtr == IntPtr.Zero) ? null : new DoubleVector(cPtr, true);
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public void Insert(int index, double x) {
cAudioCSharpWrapperPINVOKE.DoubleVector_Insert(swigCPtr, index, x);
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
}
public void InsertRange(int index, DoubleVector values) {
cAudioCSharpWrapperPINVOKE.DoubleVector_InsertRange(swigCPtr, index, DoubleVector.getCPtr(values));
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
}
public void RemoveAt(int index) {
cAudioCSharpWrapperPINVOKE.DoubleVector_RemoveAt(swigCPtr, index);
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
}
public void RemoveRange(int index, int count) {
cAudioCSharpWrapperPINVOKE.DoubleVector_RemoveRange(swigCPtr, index, count);
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
}
public static DoubleVector Repeat(double value, int count) {
IntPtr cPtr = cAudioCSharpWrapperPINVOKE.DoubleVector_Repeat(value, count);
DoubleVector ret = (cPtr == IntPtr.Zero) ? null : new DoubleVector(cPtr, true);
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public void Reverse() {
cAudioCSharpWrapperPINVOKE.DoubleVector_Reverse__SWIG_0(swigCPtr);
}
public void Reverse(int index, int count) {
cAudioCSharpWrapperPINVOKE.DoubleVector_Reverse__SWIG_1(swigCPtr, index, count);
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
}
public void SetRange(int index, DoubleVector values) {
cAudioCSharpWrapperPINVOKE.DoubleVector_SetRange(swigCPtr, index, DoubleVector.getCPtr(values));
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
}
public bool Contains(double value) {
bool ret = cAudioCSharpWrapperPINVOKE.DoubleVector_Contains(swigCPtr, value);
return ret;
}
public int IndexOf(double value) {
int ret = cAudioCSharpWrapperPINVOKE.DoubleVector_IndexOf(swigCPtr, value);
return ret;
}
public int LastIndexOf(double value) {
int ret = cAudioCSharpWrapperPINVOKE.DoubleVector_LastIndexOf(swigCPtr, value);
return ret;
}
public bool Remove(double value) {
bool ret = cAudioCSharpWrapperPINVOKE.DoubleVector_Remove(swigCPtr, value);
return ret;
}
}
}
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.7
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
namespace cAudio {
using System;
using System.Runtime.InteropServices;
public class DoubleVector : IDisposable, System.Collections.IEnumerable
#if !SWIG_DOTNET_1
, System.Collections.Generic.IList<double>
#endif
{
private HandleRef swigCPtr;
protected bool swigCMemOwn;
internal DoubleVector(IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = new HandleRef(this, cPtr);
}
internal static HandleRef getCPtr(DoubleVector obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
~DoubleVector() {
Dispose();
}
public virtual void Dispose() {
lock(this) {
if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) {
swigCMemOwn = false;
cAudioCSharpWrapperPINVOKE.delete_DoubleVector(swigCPtr);
}
swigCPtr = new HandleRef(null, IntPtr.Zero);
}
GC.SuppressFinalize(this);
}
}
public DoubleVector(System.Collections.ICollection c) : this() {
if (c == null)
throw new ArgumentNullException("c");
foreach (double element in c) {
this.Add(element);
}
}
public bool IsFixedSize {
get {
return false;
}
}
public bool IsReadOnly {
get {
return false;
}
}
public double this[int index] {
get {
return getitem(index);
}
set {
setitem(index, value);
}
}
public int Capacity {
get {
return (int)capacity();
}
set {
if (value < size())
throw new ArgumentOutOfRangeException("Capacity");
reserve((uint)value);
}
}
public int Count {
get {
return (int)size();
}
}
public bool IsSynchronized {
get {
return false;
}
}
#if SWIG_DOTNET_1
public void CopyTo(System.Array array)
#else
public void CopyTo(double[] array)
#endif
{
CopyTo(0, array, 0, this.Count);
}
#if SWIG_DOTNET_1
public void CopyTo(System.Array array, int arrayIndex)
#else
public void CopyTo(double[] array, int arrayIndex)
#endif
{
CopyTo(0, array, arrayIndex, this.Count);
}
#if SWIG_DOTNET_1
public void CopyTo(int index, System.Array array, int arrayIndex, int count)
#else
public void CopyTo(int index, double[] array, int arrayIndex, int count)
#endif
{
if (array == null)
throw new ArgumentNullException("array");
if (index < 0)
throw new ArgumentOutOfRangeException("index", "Value is less than zero");
if (arrayIndex < 0)
throw new ArgumentOutOfRangeException("arrayIndex", "Value is less than zero");
if (count < 0)
throw new ArgumentOutOfRangeException("count", "Value is less than zero");
if (array.Rank > 1)
throw new ArgumentException("Multi dimensional array.", "array");
if (index+count > this.Count || arrayIndex+count > array.Length)
throw new ArgumentException("Number of elements to copy is too large.");
for (int i=0; i<count; i++)
array.SetValue(getitemcopy(index+i), arrayIndex+i);
}
#if !SWIG_DOTNET_1
System.Collections.Generic.IEnumerator<double> System.Collections.Generic.IEnumerable<double>.GetEnumerator() {
return new DoubleVectorEnumerator(this);
}
#endif
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() {
return new DoubleVectorEnumerator(this);
}
public DoubleVectorEnumerator GetEnumerator() {
return new DoubleVectorEnumerator(this);
}
// Type-safe enumerator
/// Note that the IEnumerator documentation requires an InvalidOperationException to be thrown
/// whenever the collection is modified. This has been done for changes in the size of the
/// collection but not when one of the elements of the collection is modified as it is a bit
/// tricky to detect unmanaged code that modifies the collection under our feet.
public sealed class DoubleVectorEnumerator : System.Collections.IEnumerator
#if !SWIG_DOTNET_1
, System.Collections.Generic.IEnumerator<double>
#endif
{
private DoubleVector collectionRef;
private int currentIndex;
private object currentObject;
private int currentSize;
public DoubleVectorEnumerator(DoubleVector collection) {
collectionRef = collection;
currentIndex = -1;
currentObject = null;
currentSize = collectionRef.Count;
}
// Type-safe iterator Current
public double Current {
get {
if (currentIndex == -1)
throw new InvalidOperationException("Enumeration not started.");
if (currentIndex > currentSize - 1)
throw new InvalidOperationException("Enumeration finished.");
if (currentObject == null)
throw new InvalidOperationException("Collection modified.");
return (double)currentObject;
}
}
// Type-unsafe IEnumerator.Current
object System.Collections.IEnumerator.Current {
get {
return Current;
}
}
public bool MoveNext() {
int size = collectionRef.Count;
bool moveOkay = (currentIndex+1 < size) && (size == currentSize);
if (moveOkay) {
currentIndex++;
currentObject = collectionRef[currentIndex];
} else {
currentObject = null;
}
return moveOkay;
}
public void Reset() {
currentIndex = -1;
currentObject = null;
if (collectionRef.Count != currentSize) {
throw new InvalidOperationException("Collection modified.");
}
}
#if !SWIG_DOTNET_1
public void Dispose() {
currentIndex = -1;
currentObject = null;
}
#endif
}
public void Clear() {
cAudioCSharpWrapperPINVOKE.DoubleVector_Clear(swigCPtr);
}
public void Add(double x) {
cAudioCSharpWrapperPINVOKE.DoubleVector_Add(swigCPtr, x);
}
private uint size() {
uint ret = cAudioCSharpWrapperPINVOKE.DoubleVector_size(swigCPtr);
return ret;
}
private uint capacity() {
uint ret = cAudioCSharpWrapperPINVOKE.DoubleVector_capacity(swigCPtr);
return ret;
}
private void reserve(uint n) {
cAudioCSharpWrapperPINVOKE.DoubleVector_reserve(swigCPtr, n);
}
public DoubleVector() : this(cAudioCSharpWrapperPINVOKE.new_DoubleVector__SWIG_0(), true) {
}
public DoubleVector(DoubleVector other) : this(cAudioCSharpWrapperPINVOKE.new_DoubleVector__SWIG_1(DoubleVector.getCPtr(other)), true) {
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
}
public DoubleVector(int capacity) : this(cAudioCSharpWrapperPINVOKE.new_DoubleVector__SWIG_2(capacity), true) {
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
}
private double getitemcopy(int index) {
double ret = cAudioCSharpWrapperPINVOKE.DoubleVector_getitemcopy(swigCPtr, index);
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
private double getitem(int index) {
double ret = cAudioCSharpWrapperPINVOKE.DoubleVector_getitem(swigCPtr, index);
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
private void setitem(int index, double val) {
cAudioCSharpWrapperPINVOKE.DoubleVector_setitem(swigCPtr, index, val);
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
}
public void AddRange(DoubleVector values) {
cAudioCSharpWrapperPINVOKE.DoubleVector_AddRange(swigCPtr, DoubleVector.getCPtr(values));
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
}
public DoubleVector GetRange(int index, int count) {
IntPtr cPtr = cAudioCSharpWrapperPINVOKE.DoubleVector_GetRange(swigCPtr, index, count);
DoubleVector ret = (cPtr == IntPtr.Zero) ? null : new DoubleVector(cPtr, true);
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public void Insert(int index, double x) {
cAudioCSharpWrapperPINVOKE.DoubleVector_Insert(swigCPtr, index, x);
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
}
public void InsertRange(int index, DoubleVector values) {
cAudioCSharpWrapperPINVOKE.DoubleVector_InsertRange(swigCPtr, index, DoubleVector.getCPtr(values));
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
}
public void RemoveAt(int index) {
cAudioCSharpWrapperPINVOKE.DoubleVector_RemoveAt(swigCPtr, index);
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
}
public void RemoveRange(int index, int count) {
cAudioCSharpWrapperPINVOKE.DoubleVector_RemoveRange(swigCPtr, index, count);
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
}
public static DoubleVector Repeat(double value, int count) {
IntPtr cPtr = cAudioCSharpWrapperPINVOKE.DoubleVector_Repeat(value, count);
DoubleVector ret = (cPtr == IntPtr.Zero) ? null : new DoubleVector(cPtr, true);
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public void Reverse() {
cAudioCSharpWrapperPINVOKE.DoubleVector_Reverse__SWIG_0(swigCPtr);
}
public void Reverse(int index, int count) {
cAudioCSharpWrapperPINVOKE.DoubleVector_Reverse__SWIG_1(swigCPtr, index, count);
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
}
public void SetRange(int index, DoubleVector values) {
cAudioCSharpWrapperPINVOKE.DoubleVector_SetRange(swigCPtr, index, DoubleVector.getCPtr(values));
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
}
public bool Contains(double value) {
bool ret = cAudioCSharpWrapperPINVOKE.DoubleVector_Contains(swigCPtr, value);
return ret;
}
public int IndexOf(double value) {
int ret = cAudioCSharpWrapperPINVOKE.DoubleVector_IndexOf(swigCPtr, value);
return ret;
}
public int LastIndexOf(double value) {
int ret = cAudioCSharpWrapperPINVOKE.DoubleVector_LastIndexOf(swigCPtr, value);
return ret;
}
public bool Remove(double value) {
bool ret = cAudioCSharpWrapperPINVOKE.DoubleVector_Remove(swigCPtr, value);
return ret;
}
}
}

View File

@ -1,175 +1,175 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
namespace cAudio {
using System;
using System.Runtime.InteropServices;
public class IAudioCapture : IDisposable {
private HandleRef swigCPtr;
protected bool swigCMemOwn;
internal IAudioCapture(IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = new HandleRef(this, cPtr);
}
internal static HandleRef getCPtr(IAudioCapture obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
~IAudioCapture() {
Dispose();
}
public virtual void Dispose() {
lock(this) {
if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) {
swigCMemOwn = false;
cAudioCSharpWrapperPINVOKE.delete_IAudioCapture(swigCPtr);
}
swigCPtr = new HandleRef(null, IntPtr.Zero);
}
GC.SuppressFinalize(this);
}
}
public virtual bool initialize(string deviceName, uint frequency, AudioFormats format, uint internalBufferSize) {
bool ret = cAudioCSharpWrapperPINVOKE.IAudioCapture_initialize__SWIG_0(swigCPtr, deviceName, frequency, (int)format, internalBufferSize);
return ret;
}
public virtual bool initialize(string deviceName, uint frequency, AudioFormats format) {
bool ret = cAudioCSharpWrapperPINVOKE.IAudioCapture_initialize__SWIG_1(swigCPtr, deviceName, frequency, (int)format);
return ret;
}
public virtual bool initialize(string deviceName, uint frequency) {
bool ret = cAudioCSharpWrapperPINVOKE.IAudioCapture_initialize__SWIG_2(swigCPtr, deviceName, frequency);
return ret;
}
public virtual bool initialize(string deviceName) {
bool ret = cAudioCSharpWrapperPINVOKE.IAudioCapture_initialize__SWIG_3(swigCPtr, deviceName);
return ret;
}
public virtual bool initialize() {
bool ret = cAudioCSharpWrapperPINVOKE.IAudioCapture_initialize__SWIG_4(swigCPtr);
return ret;
}
public virtual bool isReady() {
bool ret = cAudioCSharpWrapperPINVOKE.IAudioCapture_isReady(swigCPtr);
return ret;
}
public virtual void updateCaptureBuffer(bool force) {
cAudioCSharpWrapperPINVOKE.IAudioCapture_updateCaptureBuffer__SWIG_0(swigCPtr, force);
}
public virtual void updateCaptureBuffer() {
cAudioCSharpWrapperPINVOKE.IAudioCapture_updateCaptureBuffer__SWIG_1(swigCPtr);
}
public virtual void shutdown() {
cAudioCSharpWrapperPINVOKE.IAudioCapture_shutdown(swigCPtr);
}
public virtual bool isUpdateThreadRunning() {
bool ret = cAudioCSharpWrapperPINVOKE.IAudioCapture_isUpdateThreadRunning(swigCPtr);
return ret;
}
public virtual string getDeviceName() {
string ret = cAudioCSharpWrapperPINVOKE.IAudioCapture_getDeviceName(swigCPtr);
return ret;
}
public virtual uint getFrequency() {
uint ret = cAudioCSharpWrapperPINVOKE.IAudioCapture_getFrequency(swigCPtr);
return ret;
}
public virtual AudioFormats getFormat() {
AudioFormats ret = (AudioFormats)cAudioCSharpWrapperPINVOKE.IAudioCapture_getFormat(swigCPtr);
return ret;
}
public virtual uint getInternalBufferSize() {
uint ret = cAudioCSharpWrapperPINVOKE.IAudioCapture_getInternalBufferSize(swigCPtr);
return ret;
}
public virtual uint getSampleSize() {
uint ret = cAudioCSharpWrapperPINVOKE.IAudioCapture_getSampleSize(swigCPtr);
return ret;
}
public virtual bool setDevice(string deviceName) {
bool ret = cAudioCSharpWrapperPINVOKE.IAudioCapture_setDevice(swigCPtr, deviceName);
return ret;
}
public virtual bool setFrequency(uint frequency) {
bool ret = cAudioCSharpWrapperPINVOKE.IAudioCapture_setFrequency(swigCPtr, frequency);
return ret;
}
public virtual bool setFormat(AudioFormats format) {
bool ret = cAudioCSharpWrapperPINVOKE.IAudioCapture_setFormat(swigCPtr, (int)format);
return ret;
}
public virtual bool setInternalBufferSize(uint internalBufferSize) {
bool ret = cAudioCSharpWrapperPINVOKE.IAudioCapture_setInternalBufferSize(swigCPtr, internalBufferSize);
return ret;
}
public virtual bool beginCapture() {
bool ret = cAudioCSharpWrapperPINVOKE.IAudioCapture_beginCapture(swigCPtr);
return ret;
}
public virtual void stopCapture() {
cAudioCSharpWrapperPINVOKE.IAudioCapture_stopCapture(swigCPtr);
}
public virtual uint getCapturedAudio(SWIGTYPE_p_void outputBuffer, uint outputBufferSize) {
uint ret = cAudioCSharpWrapperPINVOKE.IAudioCapture_getCapturedAudio(swigCPtr, SWIGTYPE_p_void.getCPtr(outputBuffer), outputBufferSize);
return ret;
}
public virtual AudioCaptureBuffer getCapturedAudioBuffer() {
IntPtr cPtr = cAudioCSharpWrapperPINVOKE.IAudioCapture_getCapturedAudioBuffer(swigCPtr);
AudioCaptureBuffer ret = (cPtr == IntPtr.Zero) ? null : new AudioCaptureBuffer(cPtr, false);
return ret;
}
public virtual uint getCurrentCapturedAudioSize() {
uint ret = cAudioCSharpWrapperPINVOKE.IAudioCapture_getCurrentCapturedAudioSize(swigCPtr);
return ret;
}
public virtual void registerEventHandler(ICaptureEventHandler handler) {
cAudioCSharpWrapperPINVOKE.IAudioCapture_registerEventHandler(swigCPtr, ICaptureEventHandler.getCPtr(handler));
}
public virtual void unRegisterEventHandler(ICaptureEventHandler handler) {
cAudioCSharpWrapperPINVOKE.IAudioCapture_unRegisterEventHandler(swigCPtr, ICaptureEventHandler.getCPtr(handler));
}
public virtual void unRegisterAllEventHandlers() {
cAudioCSharpWrapperPINVOKE.IAudioCapture_unRegisterAllEventHandlers(swigCPtr);
}
}
}
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.7
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
namespace cAudio {
using System;
using System.Runtime.InteropServices;
public class IAudioCapture : IDisposable {
private HandleRef swigCPtr;
protected bool swigCMemOwn;
internal IAudioCapture(IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = new HandleRef(this, cPtr);
}
internal static HandleRef getCPtr(IAudioCapture obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
~IAudioCapture() {
Dispose();
}
public virtual void Dispose() {
lock(this) {
if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) {
swigCMemOwn = false;
cAudioCSharpWrapperPINVOKE.delete_IAudioCapture(swigCPtr);
}
swigCPtr = new HandleRef(null, IntPtr.Zero);
}
GC.SuppressFinalize(this);
}
}
public virtual bool initialize(string deviceName, uint frequency, AudioFormats format, uint internalBufferSize) {
bool ret = cAudioCSharpWrapperPINVOKE.IAudioCapture_initialize__SWIG_0(swigCPtr, deviceName, frequency, (int)format, internalBufferSize);
return ret;
}
public virtual bool initialize(string deviceName, uint frequency, AudioFormats format) {
bool ret = cAudioCSharpWrapperPINVOKE.IAudioCapture_initialize__SWIG_1(swigCPtr, deviceName, frequency, (int)format);
return ret;
}
public virtual bool initialize(string deviceName, uint frequency) {
bool ret = cAudioCSharpWrapperPINVOKE.IAudioCapture_initialize__SWIG_2(swigCPtr, deviceName, frequency);
return ret;
}
public virtual bool initialize(string deviceName) {
bool ret = cAudioCSharpWrapperPINVOKE.IAudioCapture_initialize__SWIG_3(swigCPtr, deviceName);
return ret;
}
public virtual bool initialize() {
bool ret = cAudioCSharpWrapperPINVOKE.IAudioCapture_initialize__SWIG_4(swigCPtr);
return ret;
}
public virtual bool isReady() {
bool ret = cAudioCSharpWrapperPINVOKE.IAudioCapture_isReady(swigCPtr);
return ret;
}
public virtual void updateCaptureBuffer(bool force) {
cAudioCSharpWrapperPINVOKE.IAudioCapture_updateCaptureBuffer__SWIG_0(swigCPtr, force);
}
public virtual void updateCaptureBuffer() {
cAudioCSharpWrapperPINVOKE.IAudioCapture_updateCaptureBuffer__SWIG_1(swigCPtr);
}
public virtual void shutdown() {
cAudioCSharpWrapperPINVOKE.IAudioCapture_shutdown(swigCPtr);
}
public virtual bool isUpdateThreadRunning() {
bool ret = cAudioCSharpWrapperPINVOKE.IAudioCapture_isUpdateThreadRunning(swigCPtr);
return ret;
}
public virtual string getDeviceName() {
string ret = cAudioCSharpWrapperPINVOKE.IAudioCapture_getDeviceName(swigCPtr);
return ret;
}
public virtual uint getFrequency() {
uint ret = cAudioCSharpWrapperPINVOKE.IAudioCapture_getFrequency(swigCPtr);
return ret;
}
public virtual AudioFormats getFormat() {
AudioFormats ret = (AudioFormats)cAudioCSharpWrapperPINVOKE.IAudioCapture_getFormat(swigCPtr);
return ret;
}
public virtual uint getInternalBufferSize() {
uint ret = cAudioCSharpWrapperPINVOKE.IAudioCapture_getInternalBufferSize(swigCPtr);
return ret;
}
public virtual uint getSampleSize() {
uint ret = cAudioCSharpWrapperPINVOKE.IAudioCapture_getSampleSize(swigCPtr);
return ret;
}
public virtual bool setDevice(string deviceName) {
bool ret = cAudioCSharpWrapperPINVOKE.IAudioCapture_setDevice(swigCPtr, deviceName);
return ret;
}
public virtual bool setFrequency(uint frequency) {
bool ret = cAudioCSharpWrapperPINVOKE.IAudioCapture_setFrequency(swigCPtr, frequency);
return ret;
}
public virtual bool setFormat(AudioFormats format) {
bool ret = cAudioCSharpWrapperPINVOKE.IAudioCapture_setFormat(swigCPtr, (int)format);
return ret;
}
public virtual bool setInternalBufferSize(uint internalBufferSize) {
bool ret = cAudioCSharpWrapperPINVOKE.IAudioCapture_setInternalBufferSize(swigCPtr, internalBufferSize);
return ret;
}
public virtual bool beginCapture() {
bool ret = cAudioCSharpWrapperPINVOKE.IAudioCapture_beginCapture(swigCPtr);
return ret;
}
public virtual void stopCapture() {
cAudioCSharpWrapperPINVOKE.IAudioCapture_stopCapture(swigCPtr);
}
public virtual uint getCapturedAudio(SWIGTYPE_p_void outputBuffer, uint outputBufferSize) {
uint ret = cAudioCSharpWrapperPINVOKE.IAudioCapture_getCapturedAudio(swigCPtr, SWIGTYPE_p_void.getCPtr(outputBuffer), outputBufferSize);
return ret;
}
public virtual AudioCaptureBuffer getCapturedAudioBuffer() {
IntPtr cPtr = cAudioCSharpWrapperPINVOKE.IAudioCapture_getCapturedAudioBuffer(swigCPtr);
AudioCaptureBuffer ret = (cPtr == IntPtr.Zero) ? null : new AudioCaptureBuffer(cPtr, false);
return ret;
}
public virtual uint getCurrentCapturedAudioSize() {
uint ret = cAudioCSharpWrapperPINVOKE.IAudioCapture_getCurrentCapturedAudioSize(swigCPtr);
return ret;
}
public virtual void registerEventHandler(ICaptureEventHandler handler) {
cAudioCSharpWrapperPINVOKE.IAudioCapture_registerEventHandler(swigCPtr, ICaptureEventHandler.getCPtr(handler));
}
public virtual void unRegisterEventHandler(ICaptureEventHandler handler) {
cAudioCSharpWrapperPINVOKE.IAudioCapture_unRegisterEventHandler(swigCPtr, ICaptureEventHandler.getCPtr(handler));
}
public virtual void unRegisterAllEventHandlers() {
cAudioCSharpWrapperPINVOKE.IAudioCapture_unRegisterAllEventHandlers(swigCPtr);
}
}
}

View File

@ -1,275 +1,275 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
namespace cAudio {
using System;
using System.Runtime.InteropServices;
public class IAudioDecoder : IRefCounted {
private HandleRef swigCPtr;
internal IAudioDecoder(IntPtr cPtr, bool cMemoryOwn) : base(cAudioCSharpWrapperPINVOKE.IAudioDecoder_SWIGUpcast(cPtr), cMemoryOwn) {
swigCPtr = new HandleRef(this, cPtr);
}
internal static HandleRef getCPtr(IAudioDecoder obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
~IAudioDecoder() {
Dispose();
}
public override void Dispose() {
lock(this) {
if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) {
swigCMemOwn = false;
cAudioCSharpWrapperPINVOKE.delete_IAudioDecoder(swigCPtr);
}
swigCPtr = new HandleRef(null, IntPtr.Zero);
}
GC.SuppressFinalize(this);
base.Dispose();
}
}
public IAudioDecoder(IDataSource stream) : this(cAudioCSharpWrapperPINVOKE.new_IAudioDecoder(IDataSource.getCPtr(stream)), true) {
SwigDirectorConnect();
}
public virtual AudioFormats getFormat() {
AudioFormats ret = (AudioFormats)cAudioCSharpWrapperPINVOKE.IAudioDecoder_getFormat(swigCPtr);
return ret;
}
public virtual int getFrequency() {
int ret = cAudioCSharpWrapperPINVOKE.IAudioDecoder_getFrequency(swigCPtr);
return ret;
}
public virtual bool isSeekingSupported() {
bool ret = cAudioCSharpWrapperPINVOKE.IAudioDecoder_isSeekingSupported(swigCPtr);
return ret;
}
public virtual bool isValid() {
bool ret = cAudioCSharpWrapperPINVOKE.IAudioDecoder_isValid(swigCPtr);
return ret;
}
public virtual int readAudioData(SWIGTYPE_p_void output, int amount) {
int ret = cAudioCSharpWrapperPINVOKE.IAudioDecoder_readAudioData(swigCPtr, SWIGTYPE_p_void.getCPtr(output), amount);
return ret;
}
public virtual bool setPosition(int position, bool relative) {
bool ret = cAudioCSharpWrapperPINVOKE.IAudioDecoder_setPosition(swigCPtr, position, relative);
return ret;
}
public virtual bool seek(float seconds, bool relative) {
bool ret = cAudioCSharpWrapperPINVOKE.IAudioDecoder_seek(swigCPtr, seconds, relative);
return ret;
}
public virtual float getTotalTime() {
float ret = cAudioCSharpWrapperPINVOKE.IAudioDecoder_getTotalTime(swigCPtr);
return ret;
}
public virtual int getTotalSize() {
int ret = cAudioCSharpWrapperPINVOKE.IAudioDecoder_getTotalSize(swigCPtr);
return ret;
}
public virtual int getCompressedSize() {
int ret = cAudioCSharpWrapperPINVOKE.IAudioDecoder_getCompressedSize(swigCPtr);
return ret;
}
public virtual float getCurrentTime() {
float ret = cAudioCSharpWrapperPINVOKE.IAudioDecoder_getCurrentTime(swigCPtr);
return ret;
}
public virtual int getCurrentPosition() {
int ret = cAudioCSharpWrapperPINVOKE.IAudioDecoder_getCurrentPosition(swigCPtr);
return ret;
}
public virtual int getCurrentCompressedPosition() {
int ret = cAudioCSharpWrapperPINVOKE.IAudioDecoder_getCurrentCompressedPosition(swigCPtr);
return ret;
}
public virtual string getType() {
string ret = cAudioCSharpWrapperPINVOKE.IAudioDecoder_getType(swigCPtr);
return ret;
}
private void SwigDirectorConnect() {
if (SwigDerivedClassHasMethod("grab", swigMethodTypes0))
swigDelegate0 = new SwigDelegateIAudioDecoder_0(SwigDirectorgrab);
if (SwigDerivedClassHasMethod("drop", swigMethodTypes1))
swigDelegate1 = new SwigDelegateIAudioDecoder_1(SwigDirectordrop);
if (SwigDerivedClassHasMethod("getFormat", swigMethodTypes2))
swigDelegate2 = new SwigDelegateIAudioDecoder_2(SwigDirectorgetFormat);
if (SwigDerivedClassHasMethod("getFrequency", swigMethodTypes3))
swigDelegate3 = new SwigDelegateIAudioDecoder_3(SwigDirectorgetFrequency);
if (SwigDerivedClassHasMethod("isSeekingSupported", swigMethodTypes4))
swigDelegate4 = new SwigDelegateIAudioDecoder_4(SwigDirectorisSeekingSupported);
if (SwigDerivedClassHasMethod("isValid", swigMethodTypes5))
swigDelegate5 = new SwigDelegateIAudioDecoder_5(SwigDirectorisValid);
if (SwigDerivedClassHasMethod("readAudioData", swigMethodTypes6))
swigDelegate6 = new SwigDelegateIAudioDecoder_6(SwigDirectorreadAudioData);
if (SwigDerivedClassHasMethod("setPosition", swigMethodTypes7))
swigDelegate7 = new SwigDelegateIAudioDecoder_7(SwigDirectorsetPosition);
if (SwigDerivedClassHasMethod("seek", swigMethodTypes8))
swigDelegate8 = new SwigDelegateIAudioDecoder_8(SwigDirectorseek);
if (SwigDerivedClassHasMethod("getTotalTime", swigMethodTypes9))
swigDelegate9 = new SwigDelegateIAudioDecoder_9(SwigDirectorgetTotalTime);
if (SwigDerivedClassHasMethod("getTotalSize", swigMethodTypes10))
swigDelegate10 = new SwigDelegateIAudioDecoder_10(SwigDirectorgetTotalSize);
if (SwigDerivedClassHasMethod("getCompressedSize", swigMethodTypes11))
swigDelegate11 = new SwigDelegateIAudioDecoder_11(SwigDirectorgetCompressedSize);
if (SwigDerivedClassHasMethod("getCurrentTime", swigMethodTypes12))
swigDelegate12 = new SwigDelegateIAudioDecoder_12(SwigDirectorgetCurrentTime);
if (SwigDerivedClassHasMethod("getCurrentPosition", swigMethodTypes13))
swigDelegate13 = new SwigDelegateIAudioDecoder_13(SwigDirectorgetCurrentPosition);
if (SwigDerivedClassHasMethod("getCurrentCompressedPosition", swigMethodTypes14))
swigDelegate14 = new SwigDelegateIAudioDecoder_14(SwigDirectorgetCurrentCompressedPosition);
if (SwigDerivedClassHasMethod("getType", swigMethodTypes15))
swigDelegate15 = new SwigDelegateIAudioDecoder_15(SwigDirectorgetType);
cAudioCSharpWrapperPINVOKE.IAudioDecoder_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4, swigDelegate5, swigDelegate6, swigDelegate7, swigDelegate8, swigDelegate9, swigDelegate10, swigDelegate11, swigDelegate12, swigDelegate13, swigDelegate14, swigDelegate15);
}
private bool SwigDerivedClassHasMethod(string methodName, Type[] methodTypes) {
System.Reflection.MethodInfo methodInfo = this.GetType().GetMethod(methodName, System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance, null, methodTypes, null);
bool hasDerivedMethod = methodInfo.DeclaringType.IsSubclassOf(typeof(IAudioDecoder));
return hasDerivedMethod;
}
private void SwigDirectorgrab() {
grab();
}
private bool SwigDirectordrop() {
return drop();
}
private int SwigDirectorgetFormat() {
return (int)getFormat();
}
private int SwigDirectorgetFrequency() {
return getFrequency();
}
private bool SwigDirectorisSeekingSupported() {
return isSeekingSupported();
}
private bool SwigDirectorisValid() {
return isValid();
}
private int SwigDirectorreadAudioData(IntPtr output, int amount) {
return readAudioData((output == IntPtr.Zero) ? null : new SWIGTYPE_p_void(output, false), amount);
}
private bool SwigDirectorsetPosition(int position, bool relative) {
return setPosition(position, relative);
}
private bool SwigDirectorseek(float seconds, bool relative) {
return seek(seconds, relative);
}
private float SwigDirectorgetTotalTime() {
return getTotalTime();
}
private int SwigDirectorgetTotalSize() {
return getTotalSize();
}
private int SwigDirectorgetCompressedSize() {
return getCompressedSize();
}
private float SwigDirectorgetCurrentTime() {
return getCurrentTime();
}
private int SwigDirectorgetCurrentPosition() {
return getCurrentPosition();
}
private int SwigDirectorgetCurrentCompressedPosition() {
return getCurrentCompressedPosition();
}
private string SwigDirectorgetType() {
return getType();
}
public delegate void SwigDelegateIAudioDecoder_0();
public delegate bool SwigDelegateIAudioDecoder_1();
public delegate int SwigDelegateIAudioDecoder_2();
public delegate int SwigDelegateIAudioDecoder_3();
public delegate bool SwigDelegateIAudioDecoder_4();
public delegate bool SwigDelegateIAudioDecoder_5();
public delegate int SwigDelegateIAudioDecoder_6(IntPtr output, int amount);
public delegate bool SwigDelegateIAudioDecoder_7(int position, bool relative);
public delegate bool SwigDelegateIAudioDecoder_8(float seconds, bool relative);
public delegate float SwigDelegateIAudioDecoder_9();
public delegate int SwigDelegateIAudioDecoder_10();
public delegate int SwigDelegateIAudioDecoder_11();
public delegate float SwigDelegateIAudioDecoder_12();
public delegate int SwigDelegateIAudioDecoder_13();
public delegate int SwigDelegateIAudioDecoder_14();
public delegate string SwigDelegateIAudioDecoder_15();
private SwigDelegateIAudioDecoder_0 swigDelegate0;
private SwigDelegateIAudioDecoder_1 swigDelegate1;
private SwigDelegateIAudioDecoder_2 swigDelegate2;