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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,77 +1,77 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4 * Version 2.0.7
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
* ----------------------------------------------------------------------------- */ * ----------------------------------------------------------------------------- */
namespace cAudio { namespace cAudio {
using System; using System;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
public class IAudioDecoderFactory : IDisposable { public class IAudioDecoderFactory : IDisposable {
private HandleRef swigCPtr; private HandleRef swigCPtr;
protected bool swigCMemOwn; protected bool swigCMemOwn;
internal IAudioDecoderFactory(IntPtr cPtr, bool cMemoryOwn) { internal IAudioDecoderFactory(IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn; swigCMemOwn = cMemoryOwn;
swigCPtr = new HandleRef(this, cPtr); swigCPtr = new HandleRef(this, cPtr);
} }
internal static HandleRef getCPtr(IAudioDecoderFactory obj) { internal static HandleRef getCPtr(IAudioDecoderFactory obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
} }
~IAudioDecoderFactory() { ~IAudioDecoderFactory() {
Dispose(); Dispose();
} }
public virtual void Dispose() { public virtual void Dispose() {
lock(this) { lock(this) {
if (swigCPtr.Handle != IntPtr.Zero) { if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) { if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
cAudioCSharpWrapperPINVOKE.delete_IAudioDecoderFactory(swigCPtr); cAudioCSharpWrapperPINVOKE.delete_IAudioDecoderFactory(swigCPtr);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
} }
GC.SuppressFinalize(this); GC.SuppressFinalize(this);
} }
} }
public IAudioDecoderFactory() : this(cAudioCSharpWrapperPINVOKE.new_IAudioDecoderFactory(), true) { public IAudioDecoderFactory() : this(cAudioCSharpWrapperPINVOKE.new_IAudioDecoderFactory(), true) {
SwigDirectorConnect(); SwigDirectorConnect();
} }
public virtual IAudioDecoder CreateAudioDecoder(IDataSource stream) { public virtual IAudioDecoder CreateAudioDecoder(IDataSource stream) {
IntPtr cPtr = cAudioCSharpWrapperPINVOKE.IAudioDecoderFactory_CreateAudioDecoder(swigCPtr, IDataSource.getCPtr(stream)); IntPtr cPtr = cAudioCSharpWrapperPINVOKE.IAudioDecoderFactory_CreateAudioDecoder(swigCPtr, IDataSource.getCPtr(stream));
IAudioDecoder ret = (cPtr == IntPtr.Zero) ? null : new IAudioDecoder(cPtr, false); IAudioDecoder ret = (cPtr == IntPtr.Zero) ? null : new IAudioDecoder(cPtr, false);
return ret; return ret;
} }
private void SwigDirectorConnect() { private void SwigDirectorConnect() {
if (SwigDerivedClassHasMethod("CreateAudioDecoder", swigMethodTypes0)) if (SwigDerivedClassHasMethod("CreateAudioDecoder", swigMethodTypes0))
swigDelegate0 = new SwigDelegateIAudioDecoderFactory_0(SwigDirectorCreateAudioDecoder); swigDelegate0 = new SwigDelegateIAudioDecoderFactory_0(SwigDirectorCreateAudioDecoder);
cAudioCSharpWrapperPINVOKE.IAudioDecoderFactory_director_connect(swigCPtr, swigDelegate0); cAudioCSharpWrapperPINVOKE.IAudioDecoderFactory_director_connect(swigCPtr, swigDelegate0);
} }
private bool SwigDerivedClassHasMethod(string methodName, Type[] methodTypes) { 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); 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(IAudioDecoderFactory)); bool hasDerivedMethod = methodInfo.DeclaringType.IsSubclassOf(typeof(IAudioDecoderFactory));
return hasDerivedMethod; return hasDerivedMethod;
} }
private IntPtr SwigDirectorCreateAudioDecoder(IntPtr stream) { private IntPtr SwigDirectorCreateAudioDecoder(IntPtr stream) {
return IAudioDecoder.getCPtr(CreateAudioDecoder((stream == IntPtr.Zero) ? null : new IDataSource(stream, false))).Handle; return IAudioDecoder.getCPtr(CreateAudioDecoder((stream == IntPtr.Zero) ? null : new IDataSource(stream, false))).Handle;
} }
public delegate IntPtr SwigDelegateIAudioDecoderFactory_0(IntPtr stream); public delegate IntPtr SwigDelegateIAudioDecoderFactory_0(IntPtr stream);
private SwigDelegateIAudioDecoderFactory_0 swigDelegate0; private SwigDelegateIAudioDecoderFactory_0 swigDelegate0;
private static Type[] swigMethodTypes0 = new Type[] { typeof(IDataSource) }; private static Type[] swigMethodTypes0 = new Type[] { typeof(IDataSource) };
} }
} }

View File

@ -1,71 +1,71 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4 * Version 2.0.7
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
* ----------------------------------------------------------------------------- */ * ----------------------------------------------------------------------------- */
namespace cAudio { namespace cAudio {
using System; using System;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
public class IAudioDeviceContext : IDisposable { public class IAudioDeviceContext : IDisposable {
private HandleRef swigCPtr; private HandleRef swigCPtr;
protected bool swigCMemOwn; protected bool swigCMemOwn;
internal IAudioDeviceContext(IntPtr cPtr, bool cMemoryOwn) { internal IAudioDeviceContext(IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn; swigCMemOwn = cMemoryOwn;
swigCPtr = new HandleRef(this, cPtr); swigCPtr = new HandleRef(this, cPtr);
} }
internal static HandleRef getCPtr(IAudioDeviceContext obj) { internal static HandleRef getCPtr(IAudioDeviceContext obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
} }
~IAudioDeviceContext() { ~IAudioDeviceContext() {
Dispose(); Dispose();
} }
public virtual void Dispose() { public virtual void Dispose() {
lock(this) { lock(this) {
if (swigCPtr.Handle != IntPtr.Zero) { if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) { if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
cAudioCSharpWrapperPINVOKE.delete_IAudioDeviceContext(swigCPtr); cAudioCSharpWrapperPINVOKE.delete_IAudioDeviceContext(swigCPtr);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
} }
GC.SuppressFinalize(this); GC.SuppressFinalize(this);
} }
} }
public virtual bool initialize(string deviceName, int outputFrequency, int eaxEffectSlots) { public virtual bool initialize(string deviceName, int outputFrequency, int eaxEffectSlots) {
bool ret = cAudioCSharpWrapperPINVOKE.IAudioDeviceContext_initialize(swigCPtr, deviceName, outputFrequency, eaxEffectSlots); bool ret = cAudioCSharpWrapperPINVOKE.IAudioDeviceContext_initialize(swigCPtr, deviceName, outputFrequency, eaxEffectSlots);
return ret; return ret;
} }
public virtual void shutDown() { public virtual void shutDown() {
cAudioCSharpWrapperPINVOKE.IAudioDeviceContext_shutDown(swigCPtr); cAudioCSharpWrapperPINVOKE.IAudioDeviceContext_shutDown(swigCPtr);
} }
public virtual void update() { public virtual void update() {
cAudioCSharpWrapperPINVOKE.IAudioDeviceContext_update(swigCPtr); cAudioCSharpWrapperPINVOKE.IAudioDeviceContext_update(swigCPtr);
} }
public virtual IAudioManager getAudioManager() { public virtual IAudioManager getAudioManager() {
IntPtr cPtr = cAudioCSharpWrapperPINVOKE.IAudioDeviceContext_getAudioManager(swigCPtr); IntPtr cPtr = cAudioCSharpWrapperPINVOKE.IAudioDeviceContext_getAudioManager(swigCPtr);
IAudioManager ret = (cPtr == IntPtr.Zero) ? null : new IAudioManager(cPtr, false); IAudioManager ret = (cPtr == IntPtr.Zero) ? null : new IAudioManager(cPtr, false);
return ret; return ret;
} }
public virtual SWIGTYPE_p_cAudio__IAudioEffects getEffects() { public virtual SWIGTYPE_p_cAudio__IAudioEffects getEffects() {
IntPtr cPtr = cAudioCSharpWrapperPINVOKE.IAudioDeviceContext_getEffects(swigCPtr); IntPtr cPtr = cAudioCSharpWrapperPINVOKE.IAudioDeviceContext_getEffects(swigCPtr);
SWIGTYPE_p_cAudio__IAudioEffects ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_cAudio__IAudioEffects(cPtr, false); SWIGTYPE_p_cAudio__IAudioEffects ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_cAudio__IAudioEffects(cPtr, false);
return ret; return ret;
} }
} }
} }

View File

@ -1,71 +1,71 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4 * Version 2.0.7
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
* ----------------------------------------------------------------------------- */ * ----------------------------------------------------------------------------- */
namespace cAudio { namespace cAudio {
using System; using System;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
public class IAudioDeviceList : IDisposable { public class IAudioDeviceList : IDisposable {
private HandleRef swigCPtr; private HandleRef swigCPtr;
protected bool swigCMemOwn; protected bool swigCMemOwn;
internal IAudioDeviceList(IntPtr cPtr, bool cMemoryOwn) { internal IAudioDeviceList(IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn; swigCMemOwn = cMemoryOwn;
swigCPtr = new HandleRef(this, cPtr); swigCPtr = new HandleRef(this, cPtr);
} }
internal static HandleRef getCPtr(IAudioDeviceList obj) { internal static HandleRef getCPtr(IAudioDeviceList obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
} }
~IAudioDeviceList() { ~IAudioDeviceList() {
Dispose(); Dispose();
} }
public virtual void Dispose() { public virtual void Dispose() {
lock(this) { lock(this) {
if (swigCPtr.Handle != IntPtr.Zero) { if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) { if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
cAudioCSharpWrapperPINVOKE.delete_IAudioDeviceList(swigCPtr); cAudioCSharpWrapperPINVOKE.delete_IAudioDeviceList(swigCPtr);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
} }
GC.SuppressFinalize(this); GC.SuppressFinalize(this);
} }
} }
public virtual uint getDeviceCount() { public virtual uint getDeviceCount() {
uint ret = cAudioCSharpWrapperPINVOKE.IAudioDeviceList_getDeviceCount(swigCPtr); uint ret = cAudioCSharpWrapperPINVOKE.IAudioDeviceList_getDeviceCount(swigCPtr);
return ret; return ret;
} }
public virtual string getDeviceName(uint idx) { public virtual string getDeviceName(uint idx) {
string ret = cAudioCSharpWrapperPINVOKE.IAudioDeviceList_getDeviceName(swigCPtr, idx); string ret = cAudioCSharpWrapperPINVOKE.IAudioDeviceList_getDeviceName(swigCPtr, idx);
return ret; return ret;
} }
public virtual string getDeviceDescription(uint idx) { public virtual string getDeviceDescription(uint idx) {
string ret = cAudioCSharpWrapperPINVOKE.IAudioDeviceList_getDeviceDescription(swigCPtr, idx); string ret = cAudioCSharpWrapperPINVOKE.IAudioDeviceList_getDeviceDescription(swigCPtr, idx);
return ret; return ret;
} }
public virtual string getDefaultDeviceName() { public virtual string getDefaultDeviceName() {
string ret = cAudioCSharpWrapperPINVOKE.IAudioDeviceList_getDefaultDeviceName(swigCPtr); string ret = cAudioCSharpWrapperPINVOKE.IAudioDeviceList_getDefaultDeviceName(swigCPtr);
return ret; return ret;
} }
public virtual bool isSupported() { public virtual bool isSupported() {
bool ret = cAudioCSharpWrapperPINVOKE.IAudioDeviceList_isSupported(swigCPtr); bool ret = cAudioCSharpWrapperPINVOKE.IAudioDeviceList_isSupported(swigCPtr);
return ret; return ret;
} }
} }
} }

View File

@ -1,241 +1,241 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4 * Version 2.0.7
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
* ----------------------------------------------------------------------------- */ * ----------------------------------------------------------------------------- */
namespace cAudio { namespace cAudio {
using System; using System;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
public class IAudioManager : IDisposable { public class IAudioManager : IDisposable {
private HandleRef swigCPtr; private HandleRef swigCPtr;
protected bool swigCMemOwn; protected bool swigCMemOwn;
internal IAudioManager(IntPtr cPtr, bool cMemoryOwn) { internal IAudioManager(IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn; swigCMemOwn = cMemoryOwn;
swigCPtr = new HandleRef(this, cPtr); swigCPtr = new HandleRef(this, cPtr);
} }
internal static HandleRef getCPtr(IAudioManager obj) { internal static HandleRef getCPtr(IAudioManager obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
} }
~IAudioManager() { ~IAudioManager() {
Dispose(); Dispose();
} }
public virtual void Dispose() { public virtual void Dispose() {
lock(this) { lock(this) {
if (swigCPtr.Handle != IntPtr.Zero) { if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) { if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
cAudioCSharpWrapperPINVOKE.delete_IAudioManager(swigCPtr); cAudioCSharpWrapperPINVOKE.delete_IAudioManager(swigCPtr);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
} }
GC.SuppressFinalize(this); GC.SuppressFinalize(this);
} }
} }
public virtual bool initialize(string deviceName, int outputFrequency, int eaxEffectSlots) { public virtual bool initialize(string deviceName, int outputFrequency, int eaxEffectSlots) {
bool ret = cAudioCSharpWrapperPINVOKE.IAudioManager_initialize__SWIG_0(swigCPtr, deviceName, outputFrequency, eaxEffectSlots); bool ret = cAudioCSharpWrapperPINVOKE.IAudioManager_initialize__SWIG_0(swigCPtr, deviceName, outputFrequency, eaxEffectSlots);
return ret; return ret;
} }
public virtual bool initialize(string deviceName, int outputFrequency) { public virtual bool initialize(string deviceName, int outputFrequency) {
bool ret = cAudioCSharpWrapperPINVOKE.IAudioManager_initialize__SWIG_1(swigCPtr, deviceName, outputFrequency); bool ret = cAudioCSharpWrapperPINVOKE.IAudioManager_initialize__SWIG_1(swigCPtr, deviceName, outputFrequency);
return ret; return ret;
} }
public virtual bool initialize(string deviceName) { public virtual bool initialize(string deviceName) {
bool ret = cAudioCSharpWrapperPINVOKE.IAudioManager_initialize__SWIG_2(swigCPtr, deviceName); bool ret = cAudioCSharpWrapperPINVOKE.IAudioManager_initialize__SWIG_2(swigCPtr, deviceName);
return ret; return ret;
} }
public virtual bool initialize() { public virtual bool initialize() {
bool ret = cAudioCSharpWrapperPINVOKE.IAudioManager_initialize__SWIG_3(swigCPtr); bool ret = cAudioCSharpWrapperPINVOKE.IAudioManager_initialize__SWIG_3(swigCPtr);
return ret; return ret;
} }
public virtual void shutDown() { public virtual void shutDown() {
cAudioCSharpWrapperPINVOKE.IAudioManager_shutDown(swigCPtr); cAudioCSharpWrapperPINVOKE.IAudioManager_shutDown(swigCPtr);
} }
public virtual void update() { public virtual void update() {
cAudioCSharpWrapperPINVOKE.IAudioManager_update(swigCPtr); cAudioCSharpWrapperPINVOKE.IAudioManager_update(swigCPtr);
} }
public virtual bool isUpdateThreadRunning() { public virtual bool isUpdateThreadRunning() {
bool ret = cAudioCSharpWrapperPINVOKE.IAudioManager_isUpdateThreadRunning(swigCPtr); bool ret = cAudioCSharpWrapperPINVOKE.IAudioManager_isUpdateThreadRunning(swigCPtr);
return ret; return ret;
} }
public virtual IAudioSource getSoundByName(string name) { public virtual IAudioSource getSoundByName(string name) {
IntPtr cPtr = cAudioCSharpWrapperPINVOKE.IAudioManager_getSoundByName(swigCPtr, name); IntPtr cPtr = cAudioCSharpWrapperPINVOKE.IAudioManager_getSoundByName(swigCPtr, name);
IAudioSource ret = (cPtr == IntPtr.Zero) ? null : new IAudioSource(cPtr, false); IAudioSource ret = (cPtr == IntPtr.Zero) ? null : new IAudioSource(cPtr, false);
return ret; return ret;
} }
public virtual void releaseAllSources() { public virtual void releaseAllSources() {
cAudioCSharpWrapperPINVOKE.IAudioManager_releaseAllSources(swigCPtr); cAudioCSharpWrapperPINVOKE.IAudioManager_releaseAllSources(swigCPtr);
} }
public virtual void release(IAudioSource source) { public virtual void release(IAudioSource source) {
cAudioCSharpWrapperPINVOKE.IAudioManager_release(swigCPtr, IAudioSource.getCPtr(source)); cAudioCSharpWrapperPINVOKE.IAudioManager_release(swigCPtr, IAudioSource.getCPtr(source));
} }
public virtual IAudioSource play2D(string filename, bool playLooped, bool startPaused) { public virtual IAudioSource play2D(string filename, bool playLooped, bool startPaused) {
IntPtr cPtr = cAudioCSharpWrapperPINVOKE.IAudioManager_play2D__SWIG_0(swigCPtr, filename, playLooped, startPaused); IntPtr cPtr = cAudioCSharpWrapperPINVOKE.IAudioManager_play2D__SWIG_0(swigCPtr, filename, playLooped, startPaused);
IAudioSource ret = (cPtr == IntPtr.Zero) ? null : new IAudioSource(cPtr, false); IAudioSource ret = (cPtr == IntPtr.Zero) ? null : new IAudioSource(cPtr, false);
return ret; return ret;
} }
public virtual IAudioSource play2D(string filename, bool playLooped) { public virtual IAudioSource play2D(string filename, bool playLooped) {
IntPtr cPtr = cAudioCSharpWrapperPINVOKE.IAudioManager_play2D__SWIG_1(swigCPtr, filename, playLooped); IntPtr cPtr = cAudioCSharpWrapperPINVOKE.IAudioManager_play2D__SWIG_1(swigCPtr, filename, playLooped);
IAudioSource ret = (cPtr == IntPtr.Zero) ? null : new IAudioSource(cPtr, false); IAudioSource ret = (cPtr == IntPtr.Zero) ? null : new IAudioSource(cPtr, false);
return ret; return ret;
} }
public virtual IAudioSource play2D(string filename) { public virtual IAudioSource play2D(string filename) {
IntPtr cPtr = cAudioCSharpWrapperPINVOKE.IAudioManager_play2D__SWIG_2(swigCPtr, filename); IntPtr cPtr = cAudioCSharpWrapperPINVOKE.IAudioManager_play2D__SWIG_2(swigCPtr, filename);
IAudioSource ret = (cPtr == IntPtr.Zero) ? null : new IAudioSource(cPtr, false); IAudioSource ret = (cPtr == IntPtr.Zero) ? null : new IAudioSource(cPtr, false);
return ret; return ret;
} }
public virtual IAudioSource play3D(string filename, cVector3 position, bool playLooped, bool startPaused) { public virtual IAudioSource play3D(string filename, cVector3 position, bool playLooped, bool startPaused) {
IntPtr cPtr = cAudioCSharpWrapperPINVOKE.IAudioManager_play3D__SWIG_0(swigCPtr, filename, cVector3.getCPtr(position), playLooped, startPaused); IntPtr cPtr = cAudioCSharpWrapperPINVOKE.IAudioManager_play3D__SWIG_0(swigCPtr, filename, cVector3.getCPtr(position), playLooped, startPaused);
IAudioSource ret = (cPtr == IntPtr.Zero) ? null : new IAudioSource(cPtr, false); IAudioSource ret = (cPtr == IntPtr.Zero) ? null : new IAudioSource(cPtr, false);
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public virtual IAudioSource play3D(string filename, cVector3 position, bool playLooped) { public virtual IAudioSource play3D(string filename, cVector3 position, bool playLooped) {
IntPtr cPtr = cAudioCSharpWrapperPINVOKE.IAudioManager_play3D__SWIG_1(swigCPtr, filename, cVector3.getCPtr(position), playLooped); IntPtr cPtr = cAudioCSharpWrapperPINVOKE.IAudioManager_play3D__SWIG_1(swigCPtr, filename, cVector3.getCPtr(position), playLooped);
IAudioSource ret = (cPtr == IntPtr.Zero) ? null : new IAudioSource(cPtr, false); IAudioSource ret = (cPtr == IntPtr.Zero) ? null : new IAudioSource(cPtr, false);
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public virtual IAudioSource play3D(string filename, cVector3 position) { public virtual IAudioSource play3D(string filename, cVector3 position) {
IntPtr cPtr = cAudioCSharpWrapperPINVOKE.IAudioManager_play3D__SWIG_2(swigCPtr, filename, cVector3.getCPtr(position)); IntPtr cPtr = cAudioCSharpWrapperPINVOKE.IAudioManager_play3D__SWIG_2(swigCPtr, filename, cVector3.getCPtr(position));
IAudioSource ret = (cPtr == IntPtr.Zero) ? null : new IAudioSource(cPtr, false); IAudioSource ret = (cPtr == IntPtr.Zero) ? null : new IAudioSource(cPtr, false);
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public virtual void setMasterVolume(float vol) { public virtual void setMasterVolume(float vol) {
cAudioCSharpWrapperPINVOKE.IAudioManager_setMasterVolume(swigCPtr, vol); cAudioCSharpWrapperPINVOKE.IAudioManager_setMasterVolume(swigCPtr, vol);
} }
public virtual float getMasterVolume() { public virtual float getMasterVolume() {
float ret = cAudioCSharpWrapperPINVOKE.IAudioManager_getMasterVolume(swigCPtr); float ret = cAudioCSharpWrapperPINVOKE.IAudioManager_getMasterVolume(swigCPtr);
return ret; return ret;
} }
public virtual void stopAllSounds() { public virtual void stopAllSounds() {
cAudioCSharpWrapperPINVOKE.IAudioManager_stopAllSounds(swigCPtr); cAudioCSharpWrapperPINVOKE.IAudioManager_stopAllSounds(swigCPtr);
} }
public virtual IAudioSource create(string name, string filename, bool stream) { public virtual IAudioSource create(string name, string filename, bool stream) {
IntPtr cPtr = cAudioCSharpWrapperPINVOKE.IAudioManager_create__SWIG_0(swigCPtr, name, filename, stream); IntPtr cPtr = cAudioCSharpWrapperPINVOKE.IAudioManager_create__SWIG_0(swigCPtr, name, filename, stream);
IAudioSource ret = (cPtr == IntPtr.Zero) ? null : new IAudioSource(cPtr, false); IAudioSource ret = (cPtr == IntPtr.Zero) ? null : new IAudioSource(cPtr, false);
return ret; return ret;
} }
public virtual IAudioSource create(string name, string filename) { public virtual IAudioSource create(string name, string filename) {
IntPtr cPtr = cAudioCSharpWrapperPINVOKE.IAudioManager_create__SWIG_1(swigCPtr, name, filename); IntPtr cPtr = cAudioCSharpWrapperPINVOKE.IAudioManager_create__SWIG_1(swigCPtr, name, filename);
IAudioSource ret = (cPtr == IntPtr.Zero) ? null : new IAudioSource(cPtr, false); IAudioSource ret = (cPtr == IntPtr.Zero) ? null : new IAudioSource(cPtr, false);
return ret; return ret;
} }
public virtual IAudioSource createFromMemory(string name, string data, uint length, string extension) { public virtual IAudioSource createFromMemory(string name, string data, uint length, string extension) {
IntPtr cPtr = cAudioCSharpWrapperPINVOKE.IAudioManager_createFromMemory(swigCPtr, name, data, length, extension); IntPtr cPtr = cAudioCSharpWrapperPINVOKE.IAudioManager_createFromMemory(swigCPtr, name, data, length, extension);
IAudioSource ret = (cPtr == IntPtr.Zero) ? null : new IAudioSource(cPtr, false); IAudioSource ret = (cPtr == IntPtr.Zero) ? null : new IAudioSource(cPtr, false);
return ret; return ret;
} }
public virtual IAudioSource createFromRaw(string name, string data, uint length, uint frequency, AudioFormats format) { public virtual IAudioSource createFromRaw(string name, string data, uint length, uint frequency, AudioFormats format) {
IntPtr cPtr = cAudioCSharpWrapperPINVOKE.IAudioManager_createFromRaw(swigCPtr, name, data, length, frequency, (int)format); IntPtr cPtr = cAudioCSharpWrapperPINVOKE.IAudioManager_createFromRaw(swigCPtr, name, data, length, frequency, (int)format);
IAudioSource ret = (cPtr == IntPtr.Zero) ? null : new IAudioSource(cPtr, false); IAudioSource ret = (cPtr == IntPtr.Zero) ? null : new IAudioSource(cPtr, false);
return ret; return ret;
} }
public virtual IAudioSource createFromAudioBuffer(string name, AudioCaptureBuffer pBiffer, uint frequency, AudioFormats format) { public virtual IAudioSource createFromAudioBuffer(string name, AudioCaptureBuffer pBiffer, uint frequency, AudioFormats format) {
IntPtr cPtr = cAudioCSharpWrapperPINVOKE.IAudioManager_createFromAudioBuffer(swigCPtr, name, AudioCaptureBuffer.getCPtr(pBiffer), frequency, (int)format); IntPtr cPtr = cAudioCSharpWrapperPINVOKE.IAudioManager_createFromAudioBuffer(swigCPtr, name, AudioCaptureBuffer.getCPtr(pBiffer), frequency, (int)format);
IAudioSource ret = (cPtr == IntPtr.Zero) ? null : new IAudioSource(cPtr, false); IAudioSource ret = (cPtr == IntPtr.Zero) ? null : new IAudioSource(cPtr, false);
return ret; return ret;
} }
public virtual bool registerAudioDecoder(IAudioDecoderFactory factory, string extension) { public virtual bool registerAudioDecoder(IAudioDecoderFactory factory, string extension) {
bool ret = cAudioCSharpWrapperPINVOKE.IAudioManager_registerAudioDecoder(swigCPtr, IAudioDecoderFactory.getCPtr(factory), extension); bool ret = cAudioCSharpWrapperPINVOKE.IAudioManager_registerAudioDecoder(swigCPtr, IAudioDecoderFactory.getCPtr(factory), extension);
return ret; return ret;
} }
public virtual void unRegisterAudioDecoder(string extension) { public virtual void unRegisterAudioDecoder(string extension) {
cAudioCSharpWrapperPINVOKE.IAudioManager_unRegisterAudioDecoder(swigCPtr, extension); cAudioCSharpWrapperPINVOKE.IAudioManager_unRegisterAudioDecoder(swigCPtr, extension);
} }
public virtual bool isAudioDecoderRegistered(string extension) { public virtual bool isAudioDecoderRegistered(string extension) {
bool ret = cAudioCSharpWrapperPINVOKE.IAudioManager_isAudioDecoderRegistered(swigCPtr, extension); bool ret = cAudioCSharpWrapperPINVOKE.IAudioManager_isAudioDecoderRegistered(swigCPtr, extension);
return ret; return ret;
} }
public virtual IAudioDecoderFactory getAudioDecoderFactory(string extension) { public virtual IAudioDecoderFactory getAudioDecoderFactory(string extension) {
IntPtr cPtr = cAudioCSharpWrapperPINVOKE.IAudioManager_getAudioDecoderFactory(swigCPtr, extension); IntPtr cPtr = cAudioCSharpWrapperPINVOKE.IAudioManager_getAudioDecoderFactory(swigCPtr, extension);
IAudioDecoderFactory ret = (cPtr == IntPtr.Zero) ? null : new IAudioDecoderFactory(cPtr, false); IAudioDecoderFactory ret = (cPtr == IntPtr.Zero) ? null : new IAudioDecoderFactory(cPtr, false);
return ret; return ret;
} }
public virtual void unRegisterAllAudioDecoders() { public virtual void unRegisterAllAudioDecoders() {
cAudioCSharpWrapperPINVOKE.IAudioManager_unRegisterAllAudioDecoders(swigCPtr); cAudioCSharpWrapperPINVOKE.IAudioManager_unRegisterAllAudioDecoders(swigCPtr);
} }
public virtual bool registerDataSource(IDataSourceFactory factory, string name, int priority) { public virtual bool registerDataSource(IDataSourceFactory factory, string name, int priority) {
bool ret = cAudioCSharpWrapperPINVOKE.IAudioManager_registerDataSource(swigCPtr, IDataSourceFactory.getCPtr(factory), name, priority); bool ret = cAudioCSharpWrapperPINVOKE.IAudioManager_registerDataSource(swigCPtr, IDataSourceFactory.getCPtr(factory), name, priority);
return ret; return ret;
} }
public virtual void unRegisterDataSource(string name) { public virtual void unRegisterDataSource(string name) {
cAudioCSharpWrapperPINVOKE.IAudioManager_unRegisterDataSource(swigCPtr, name); cAudioCSharpWrapperPINVOKE.IAudioManager_unRegisterDataSource(swigCPtr, name);
} }
public virtual bool isDataSourceRegistered(string name) { public virtual bool isDataSourceRegistered(string name) {
bool ret = cAudioCSharpWrapperPINVOKE.IAudioManager_isDataSourceRegistered(swigCPtr, name); bool ret = cAudioCSharpWrapperPINVOKE.IAudioManager_isDataSourceRegistered(swigCPtr, name);
return ret; return ret;
} }
public virtual IDataSourceFactory getDataSourceFactory(string name) { public virtual IDataSourceFactory getDataSourceFactory(string name) {
IntPtr cPtr = cAudioCSharpWrapperPINVOKE.IAudioManager_getDataSourceFactory(swigCPtr, name); IntPtr cPtr = cAudioCSharpWrapperPINVOKE.IAudioManager_getDataSourceFactory(swigCPtr, name);
IDataSourceFactory ret = (cPtr == IntPtr.Zero) ? null : new IDataSourceFactory(cPtr, false); IDataSourceFactory ret = (cPtr == IntPtr.Zero) ? null : new IDataSourceFactory(cPtr, false);
return ret; return ret;
} }
public virtual void unRegisterAllDataSources() { public virtual void unRegisterAllDataSources() {
cAudioCSharpWrapperPINVOKE.IAudioManager_unRegisterAllDataSources(swigCPtr); cAudioCSharpWrapperPINVOKE.IAudioManager_unRegisterAllDataSources(swigCPtr);
} }
public virtual void registerEventHandler(IManagerEventHandler handler) { public virtual void registerEventHandler(IManagerEventHandler handler) {
cAudioCSharpWrapperPINVOKE.IAudioManager_registerEventHandler(swigCPtr, IManagerEventHandler.getCPtr(handler)); cAudioCSharpWrapperPINVOKE.IAudioManager_registerEventHandler(swigCPtr, IManagerEventHandler.getCPtr(handler));
} }
public virtual void unRegisterEventHandler(IManagerEventHandler handler) { public virtual void unRegisterEventHandler(IManagerEventHandler handler) {
cAudioCSharpWrapperPINVOKE.IAudioManager_unRegisterEventHandler(swigCPtr, IManagerEventHandler.getCPtr(handler)); cAudioCSharpWrapperPINVOKE.IAudioManager_unRegisterEventHandler(swigCPtr, IManagerEventHandler.getCPtr(handler));
} }
public virtual void unRegisterAllEventHandlers() { public virtual void unRegisterAllEventHandlers() {
cAudioCSharpWrapperPINVOKE.IAudioManager_unRegisterAllEventHandlers(swigCPtr); cAudioCSharpWrapperPINVOKE.IAudioManager_unRegisterAllEventHandlers(swigCPtr);
} }
public virtual IListener getListener() { public virtual IListener getListener() {
IntPtr cPtr = cAudioCSharpWrapperPINVOKE.IAudioManager_getListener(swigCPtr); IntPtr cPtr = cAudioCSharpWrapperPINVOKE.IAudioManager_getListener(swigCPtr);
IListener ret = (cPtr == IntPtr.Zero) ? null : new IListener(cPtr, false); IListener ret = (cPtr == IntPtr.Zero) ? null : new IListener(cPtr, false);
return ret; return ret;
} }
} }
} }

View File

@ -1,75 +1,75 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4 * Version 2.0.7
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
* ----------------------------------------------------------------------------- */ * ----------------------------------------------------------------------------- */
namespace cAudio { namespace cAudio {
using System; using System;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
public class IAudioPlugin : IRefCounted { public class IAudioPlugin : IRefCounted {
private HandleRef swigCPtr; private HandleRef swigCPtr;
internal IAudioPlugin(IntPtr cPtr, bool cMemoryOwn) : base(cAudioCSharpWrapperPINVOKE.IAudioPlugin_SWIGUpcast(cPtr), cMemoryOwn) { internal IAudioPlugin(IntPtr cPtr, bool cMemoryOwn) : base(cAudioCSharpWrapperPINVOKE.IAudioPlugin_SWIGUpcast(cPtr), cMemoryOwn) {
swigCPtr = new HandleRef(this, cPtr); swigCPtr = new HandleRef(this, cPtr);
} }
internal static HandleRef getCPtr(IAudioPlugin obj) { internal static HandleRef getCPtr(IAudioPlugin obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
} }
~IAudioPlugin() { ~IAudioPlugin() {
Dispose(); Dispose();
} }
public override void Dispose() { public override void Dispose() {
lock(this) { lock(this) {
if (swigCPtr.Handle != IntPtr.Zero) { if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) { if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
cAudioCSharpWrapperPINVOKE.delete_IAudioPlugin(swigCPtr); cAudioCSharpWrapperPINVOKE.delete_IAudioPlugin(swigCPtr);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
} }
GC.SuppressFinalize(this); GC.SuppressFinalize(this);
base.Dispose(); base.Dispose();
} }
} }
public virtual bool installPlugin(ILogger logger) { public virtual bool installPlugin(ILogger logger) {
bool ret = cAudioCSharpWrapperPINVOKE.IAudioPlugin_installPlugin(swigCPtr, ILogger.getCPtr(logger)); bool ret = cAudioCSharpWrapperPINVOKE.IAudioPlugin_installPlugin(swigCPtr, ILogger.getCPtr(logger));
return ret; return ret;
} }
public virtual string getPluginName() { public virtual string getPluginName() {
string ret = cAudioCSharpWrapperPINVOKE.IAudioPlugin_getPluginName(swigCPtr); string ret = cAudioCSharpWrapperPINVOKE.IAudioPlugin_getPluginName(swigCPtr);
return ret; return ret;
} }
public virtual void uninstallPlugin() { public virtual void uninstallPlugin() {
cAudioCSharpWrapperPINVOKE.IAudioPlugin_uninstallPlugin(swigCPtr); cAudioCSharpWrapperPINVOKE.IAudioPlugin_uninstallPlugin(swigCPtr);
} }
public virtual void onCreateAudioManager(IAudioManager manager) { public virtual void onCreateAudioManager(IAudioManager manager) {
cAudioCSharpWrapperPINVOKE.IAudioPlugin_onCreateAudioManager(swigCPtr, IAudioManager.getCPtr(manager)); cAudioCSharpWrapperPINVOKE.IAudioPlugin_onCreateAudioManager(swigCPtr, IAudioManager.getCPtr(manager));
} }
public virtual void onCreateAudioCapture(IAudioCapture capture) { public virtual void onCreateAudioCapture(IAudioCapture capture) {
cAudioCSharpWrapperPINVOKE.IAudioPlugin_onCreateAudioCapture(swigCPtr, IAudioCapture.getCPtr(capture)); cAudioCSharpWrapperPINVOKE.IAudioPlugin_onCreateAudioCapture(swigCPtr, IAudioCapture.getCPtr(capture));
} }
public virtual void onDestroyAudioManager(IAudioManager manager) { public virtual void onDestroyAudioManager(IAudioManager manager) {
cAudioCSharpWrapperPINVOKE.IAudioPlugin_onDestroyAudioManager(swigCPtr, IAudioManager.getCPtr(manager)); cAudioCSharpWrapperPINVOKE.IAudioPlugin_onDestroyAudioManager(swigCPtr, IAudioManager.getCPtr(manager));
} }
public virtual void onDestoryAudioCapture(IAudioCapture capture) { public virtual void onDestoryAudioCapture(IAudioCapture capture) {
cAudioCSharpWrapperPINVOKE.IAudioPlugin_onDestoryAudioCapture(swigCPtr, IAudioCapture.getCPtr(capture)); cAudioCSharpWrapperPINVOKE.IAudioPlugin_onDestoryAudioCapture(swigCPtr, IAudioCapture.getCPtr(capture));
} }
} }
} }

View File

@ -1,325 +1,325 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4 * Version 2.0.7
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
* ----------------------------------------------------------------------------- */ * ----------------------------------------------------------------------------- */
namespace cAudio { namespace cAudio {
using System; using System;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
public class IAudioSource : IRefCounted { public class IAudioSource : IRefCounted {
private HandleRef swigCPtr; private HandleRef swigCPtr;
internal IAudioSource(IntPtr cPtr, bool cMemoryOwn) : base(cAudioCSharpWrapperPINVOKE.IAudioSource_SWIGUpcast(cPtr), cMemoryOwn) { internal IAudioSource(IntPtr cPtr, bool cMemoryOwn) : base(cAudioCSharpWrapperPINVOKE.IAudioSource_SWIGUpcast(cPtr), cMemoryOwn) {
swigCPtr = new HandleRef(this, cPtr); swigCPtr = new HandleRef(this, cPtr);
} }
internal static HandleRef getCPtr(IAudioSource obj) { internal static HandleRef getCPtr(IAudioSource obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
} }
~IAudioSource() { ~IAudioSource() {
Dispose(); Dispose();
} }
public override void Dispose() { public override void Dispose() {
lock(this) { lock(this) {
if (swigCPtr.Handle != IntPtr.Zero) { if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) { if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
cAudioCSharpWrapperPINVOKE.delete_IAudioSource(swigCPtr); cAudioCSharpWrapperPINVOKE.delete_IAudioSource(swigCPtr);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
} }
GC.SuppressFinalize(this); GC.SuppressFinalize(this);
base.Dispose(); base.Dispose();
} }
} }
public virtual bool play() { public virtual bool play() {
bool ret = cAudioCSharpWrapperPINVOKE.IAudioSource_play(swigCPtr); bool ret = cAudioCSharpWrapperPINVOKE.IAudioSource_play(swigCPtr);
return ret; return ret;
} }
public virtual bool play2d(bool toLoop) { public virtual bool play2d(bool toLoop) {
bool ret = cAudioCSharpWrapperPINVOKE.IAudioSource_play2d__SWIG_0(swigCPtr, toLoop); bool ret = cAudioCSharpWrapperPINVOKE.IAudioSource_play2d__SWIG_0(swigCPtr, toLoop);
return ret; return ret;
} }
public virtual bool play2d() { public virtual bool play2d() {
bool ret = cAudioCSharpWrapperPINVOKE.IAudioSource_play2d__SWIG_1(swigCPtr); bool ret = cAudioCSharpWrapperPINVOKE.IAudioSource_play2d__SWIG_1(swigCPtr);
return ret; return ret;
} }
public virtual bool play3d(cVector3 position, float soundstr, bool toLoop) { public virtual bool play3d(cVector3 position, float soundstr, bool toLoop) {
bool ret = cAudioCSharpWrapperPINVOKE.IAudioSource_play3d__SWIG_0(swigCPtr, cVector3.getCPtr(position), soundstr, toLoop); bool ret = cAudioCSharpWrapperPINVOKE.IAudioSource_play3d__SWIG_0(swigCPtr, cVector3.getCPtr(position), soundstr, toLoop);
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public virtual bool play3d(cVector3 position, float soundstr) { public virtual bool play3d(cVector3 position, float soundstr) {
bool ret = cAudioCSharpWrapperPINVOKE.IAudioSource_play3d__SWIG_1(swigCPtr, cVector3.getCPtr(position), soundstr); bool ret = cAudioCSharpWrapperPINVOKE.IAudioSource_play3d__SWIG_1(swigCPtr, cVector3.getCPtr(position), soundstr);
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public virtual bool play3d(cVector3 position) { public virtual bool play3d(cVector3 position) {
bool ret = cAudioCSharpWrapperPINVOKE.IAudioSource_play3d__SWIG_2(swigCPtr, cVector3.getCPtr(position)); bool ret = cAudioCSharpWrapperPINVOKE.IAudioSource_play3d__SWIG_2(swigCPtr, cVector3.getCPtr(position));
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public virtual void pause() { public virtual void pause() {
cAudioCSharpWrapperPINVOKE.IAudioSource_pause(swigCPtr); cAudioCSharpWrapperPINVOKE.IAudioSource_pause(swigCPtr);
} }
public virtual void stop() { public virtual void stop() {
cAudioCSharpWrapperPINVOKE.IAudioSource_stop(swigCPtr); cAudioCSharpWrapperPINVOKE.IAudioSource_stop(swigCPtr);
} }
public virtual void loop(bool toLoop) { public virtual void loop(bool toLoop) {
cAudioCSharpWrapperPINVOKE.IAudioSource_loop(swigCPtr, toLoop); cAudioCSharpWrapperPINVOKE.IAudioSource_loop(swigCPtr, toLoop);
} }
public virtual bool seek(float seconds, bool relative) { public virtual bool seek(float seconds, bool relative) {
bool ret = cAudioCSharpWrapperPINVOKE.IAudioSource_seek__SWIG_0(swigCPtr, seconds, relative); bool ret = cAudioCSharpWrapperPINVOKE.IAudioSource_seek__SWIG_0(swigCPtr, seconds, relative);
return ret; return ret;
} }
public virtual bool seek(float seconds) { public virtual bool seek(float seconds) {
bool ret = cAudioCSharpWrapperPINVOKE.IAudioSource_seek__SWIG_1(swigCPtr, seconds); bool ret = cAudioCSharpWrapperPINVOKE.IAudioSource_seek__SWIG_1(swigCPtr, seconds);
return ret; return ret;
} }
public virtual float getTotalAudioTime() { public virtual float getTotalAudioTime() {
float ret = cAudioCSharpWrapperPINVOKE.IAudioSource_getTotalAudioTime(swigCPtr); float ret = cAudioCSharpWrapperPINVOKE.IAudioSource_getTotalAudioTime(swigCPtr);
return ret; return ret;
} }
public virtual int getTotalAudioSize() { public virtual int getTotalAudioSize() {
int ret = cAudioCSharpWrapperPINVOKE.IAudioSource_getTotalAudioSize(swigCPtr); int ret = cAudioCSharpWrapperPINVOKE.IAudioSource_getTotalAudioSize(swigCPtr);
return ret; return ret;
} }
public virtual int getCompressedAudioSize() { public virtual int getCompressedAudioSize() {
int ret = cAudioCSharpWrapperPINVOKE.IAudioSource_getCompressedAudioSize(swigCPtr); int ret = cAudioCSharpWrapperPINVOKE.IAudioSource_getCompressedAudioSize(swigCPtr);
return ret; return ret;
} }
public virtual float getCurrentAudioTime() { public virtual float getCurrentAudioTime() {
float ret = cAudioCSharpWrapperPINVOKE.IAudioSource_getCurrentAudioTime(swigCPtr); float ret = cAudioCSharpWrapperPINVOKE.IAudioSource_getCurrentAudioTime(swigCPtr);
return ret; return ret;
} }
public virtual int getCurrentAudioPosition() { public virtual int getCurrentAudioPosition() {
int ret = cAudioCSharpWrapperPINVOKE.IAudioSource_getCurrentAudioPosition(swigCPtr); int ret = cAudioCSharpWrapperPINVOKE.IAudioSource_getCurrentAudioPosition(swigCPtr);
return ret; return ret;
} }
public virtual int getCurrentCompressedAudioPosition() { public virtual int getCurrentCompressedAudioPosition() {
int ret = cAudioCSharpWrapperPINVOKE.IAudioSource_getCurrentCompressedAudioPosition(swigCPtr); int ret = cAudioCSharpWrapperPINVOKE.IAudioSource_getCurrentCompressedAudioPosition(swigCPtr);
return ret; return ret;
} }
public virtual bool update() { public virtual bool update() {
bool ret = cAudioCSharpWrapperPINVOKE.IAudioSource_update(swigCPtr); bool ret = cAudioCSharpWrapperPINVOKE.IAudioSource_update(swigCPtr);
return ret; return ret;
} }
public virtual bool isValid() { public virtual bool isValid() {
bool ret = cAudioCSharpWrapperPINVOKE.IAudioSource_isValid(swigCPtr); bool ret = cAudioCSharpWrapperPINVOKE.IAudioSource_isValid(swigCPtr);
return ret; return ret;
} }
public virtual bool isPlaying() { public virtual bool isPlaying() {
bool ret = cAudioCSharpWrapperPINVOKE.IAudioSource_isPlaying(swigCPtr); bool ret = cAudioCSharpWrapperPINVOKE.IAudioSource_isPlaying(swigCPtr);
return ret; return ret;
} }
public virtual bool isPaused() { public virtual bool isPaused() {
bool ret = cAudioCSharpWrapperPINVOKE.IAudioSource_isPaused(swigCPtr); bool ret = cAudioCSharpWrapperPINVOKE.IAudioSource_isPaused(swigCPtr);
return ret; return ret;
} }
public virtual bool isStopped() { public virtual bool isStopped() {
bool ret = cAudioCSharpWrapperPINVOKE.IAudioSource_isStopped(swigCPtr); bool ret = cAudioCSharpWrapperPINVOKE.IAudioSource_isStopped(swigCPtr);
return ret; return ret;
} }
public virtual bool isLooping() { public virtual bool isLooping() {
bool ret = cAudioCSharpWrapperPINVOKE.IAudioSource_isLooping(swigCPtr); bool ret = cAudioCSharpWrapperPINVOKE.IAudioSource_isLooping(swigCPtr);
return ret; return ret;
} }
public virtual void setPosition(cVector3 position) { public virtual void setPosition(cVector3 position) {
cAudioCSharpWrapperPINVOKE.IAudioSource_setPosition(swigCPtr, cVector3.getCPtr(position)); cAudioCSharpWrapperPINVOKE.IAudioSource_setPosition(swigCPtr, cVector3.getCPtr(position));
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
} }
public virtual void setVelocity(cVector3 velocity) { public virtual void setVelocity(cVector3 velocity) {
cAudioCSharpWrapperPINVOKE.IAudioSource_setVelocity(swigCPtr, cVector3.getCPtr(velocity)); cAudioCSharpWrapperPINVOKE.IAudioSource_setVelocity(swigCPtr, cVector3.getCPtr(velocity));
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
} }
public virtual void setDirection(cVector3 direction) { public virtual void setDirection(cVector3 direction) {
cAudioCSharpWrapperPINVOKE.IAudioSource_setDirection(swigCPtr, cVector3.getCPtr(direction)); cAudioCSharpWrapperPINVOKE.IAudioSource_setDirection(swigCPtr, cVector3.getCPtr(direction));
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
} }
public virtual void setRolloffFactor(float rolloff) { public virtual void setRolloffFactor(float rolloff) {
cAudioCSharpWrapperPINVOKE.IAudioSource_setRolloffFactor(swigCPtr, rolloff); cAudioCSharpWrapperPINVOKE.IAudioSource_setRolloffFactor(swigCPtr, rolloff);
} }
public virtual void setStrength(float soundstrength) { public virtual void setStrength(float soundstrength) {
cAudioCSharpWrapperPINVOKE.IAudioSource_setStrength(swigCPtr, soundstrength); cAudioCSharpWrapperPINVOKE.IAudioSource_setStrength(swigCPtr, soundstrength);
} }
public virtual void setMinDistance(float minDistance) { public virtual void setMinDistance(float minDistance) {
cAudioCSharpWrapperPINVOKE.IAudioSource_setMinDistance(swigCPtr, minDistance); cAudioCSharpWrapperPINVOKE.IAudioSource_setMinDistance(swigCPtr, minDistance);
} }
public virtual void setMaxDistance(float maxDistance) { public virtual void setMaxAttenuationDistance(float maxDistance) {
cAudioCSharpWrapperPINVOKE.IAudioSource_setMaxDistance(swigCPtr, maxDistance); cAudioCSharpWrapperPINVOKE.IAudioSource_setMaxAttenuationDistance(swigCPtr, maxDistance);
} }
public virtual void setPitch(float pitch) { public virtual void setPitch(float pitch) {
cAudioCSharpWrapperPINVOKE.IAudioSource_setPitch(swigCPtr, pitch); cAudioCSharpWrapperPINVOKE.IAudioSource_setPitch(swigCPtr, pitch);
} }
public virtual void setVolume(float volume) { public virtual void setVolume(float volume) {
cAudioCSharpWrapperPINVOKE.IAudioSource_setVolume(swigCPtr, volume); cAudioCSharpWrapperPINVOKE.IAudioSource_setVolume(swigCPtr, volume);
} }
public virtual void setMinVolume(float minVolume) { public virtual void setMinVolume(float minVolume) {
cAudioCSharpWrapperPINVOKE.IAudioSource_setMinVolume(swigCPtr, minVolume); cAudioCSharpWrapperPINVOKE.IAudioSource_setMinVolume(swigCPtr, minVolume);
} }
public virtual void setMaxVolume(float maxVolume) { public virtual void setMaxVolume(float maxVolume) {
cAudioCSharpWrapperPINVOKE.IAudioSource_setMaxVolume(swigCPtr, maxVolume); cAudioCSharpWrapperPINVOKE.IAudioSource_setMaxVolume(swigCPtr, maxVolume);
} }
public virtual void setInnerConeAngle(float innerAngle) { public virtual void setInnerConeAngle(float innerAngle) {
cAudioCSharpWrapperPINVOKE.IAudioSource_setInnerConeAngle(swigCPtr, innerAngle); cAudioCSharpWrapperPINVOKE.IAudioSource_setInnerConeAngle(swigCPtr, innerAngle);
} }
public virtual void setOuterConeAngle(float outerAngle) { public virtual void setOuterConeAngle(float outerAngle) {
cAudioCSharpWrapperPINVOKE.IAudioSource_setOuterConeAngle(swigCPtr, outerAngle); cAudioCSharpWrapperPINVOKE.IAudioSource_setOuterConeAngle(swigCPtr, outerAngle);
} }
public virtual void setOuterConeVolume(float outerVolume) { public virtual void setOuterConeVolume(float outerVolume) {
cAudioCSharpWrapperPINVOKE.IAudioSource_setOuterConeVolume(swigCPtr, outerVolume); cAudioCSharpWrapperPINVOKE.IAudioSource_setOuterConeVolume(swigCPtr, outerVolume);
} }
public virtual void setDopplerStrength(float dstrength) { public virtual void setDopplerStrength(float dstrength) {
cAudioCSharpWrapperPINVOKE.IAudioSource_setDopplerStrength(swigCPtr, dstrength); cAudioCSharpWrapperPINVOKE.IAudioSource_setDopplerStrength(swigCPtr, dstrength);
} }
public virtual void setDopplerVelocity(cVector3 dvelocity) { public virtual void setDopplerVelocity(cVector3 dvelocity) {
cAudioCSharpWrapperPINVOKE.IAudioSource_setDopplerVelocity(swigCPtr, cVector3.getCPtr(dvelocity)); cAudioCSharpWrapperPINVOKE.IAudioSource_setDopplerVelocity(swigCPtr, cVector3.getCPtr(dvelocity));
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
} }
public virtual void move(cVector3 position) { public virtual void move(cVector3 position) {
cAudioCSharpWrapperPINVOKE.IAudioSource_move(swigCPtr, cVector3.getCPtr(position)); cAudioCSharpWrapperPINVOKE.IAudioSource_move(swigCPtr, cVector3.getCPtr(position));
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
} }
public virtual cVector3 getPosition() { public virtual cVector3 getPosition() {
cVector3 ret = new cVector3(cAudioCSharpWrapperPINVOKE.IAudioSource_getPosition(swigCPtr), true); cVector3 ret = new cVector3(cAudioCSharpWrapperPINVOKE.IAudioSource_getPosition(swigCPtr), true);
return ret; return ret;
} }
public virtual cVector3 getVelocity() { public virtual cVector3 getVelocity() {
cVector3 ret = new cVector3(cAudioCSharpWrapperPINVOKE.IAudioSource_getVelocity(swigCPtr), true); cVector3 ret = new cVector3(cAudioCSharpWrapperPINVOKE.IAudioSource_getVelocity(swigCPtr), true);
return ret; return ret;
} }
public virtual cVector3 getDirection() { public virtual cVector3 getDirection() {
cVector3 ret = new cVector3(cAudioCSharpWrapperPINVOKE.IAudioSource_getDirection(swigCPtr), true); cVector3 ret = new cVector3(cAudioCSharpWrapperPINVOKE.IAudioSource_getDirection(swigCPtr), true);
return ret; return ret;
} }
public virtual float getRolloffFactor() { public virtual float getRolloffFactor() {
float ret = cAudioCSharpWrapperPINVOKE.IAudioSource_getRolloffFactor(swigCPtr); float ret = cAudioCSharpWrapperPINVOKE.IAudioSource_getRolloffFactor(swigCPtr);
return ret; return ret;
} }
public virtual float getStrength() { public virtual float getStrength() {
float ret = cAudioCSharpWrapperPINVOKE.IAudioSource_getStrength(swigCPtr); float ret = cAudioCSharpWrapperPINVOKE.IAudioSource_getStrength(swigCPtr);
return ret; return ret;
} }
public virtual float getMinDistance() { public virtual float getMinDistance() {
float ret = cAudioCSharpWrapperPINVOKE.IAudioSource_getMinDistance(swigCPtr); float ret = cAudioCSharpWrapperPINVOKE.IAudioSource_getMinDistance(swigCPtr);
return ret; return ret;
} }
public virtual float getMaxDistance() { public virtual float getMaxDistance() {
float ret = cAudioCSharpWrapperPINVOKE.IAudioSource_getMaxDistance(swigCPtr); float ret = cAudioCSharpWrapperPINVOKE.IAudioSource_getMaxDistance(swigCPtr);
return ret; return ret;
} }
public virtual float getPitch() { public virtual float getPitch() {
float ret = cAudioCSharpWrapperPINVOKE.IAudioSource_getPitch(swigCPtr); float ret = cAudioCSharpWrapperPINVOKE.IAudioSource_getPitch(swigCPtr);
return ret; return ret;
} }
public virtual float getVolume() { public virtual float getVolume() {
float ret = cAudioCSharpWrapperPINVOKE.IAudioSource_getVolume(swigCPtr); float ret = cAudioCSharpWrapperPINVOKE.IAudioSource_getVolume(swigCPtr);
return ret; return ret;
} }
public virtual float getMinVolume() { public virtual float getMinVolume() {
float ret = cAudioCSharpWrapperPINVOKE.IAudioSource_getMinVolume(swigCPtr); float ret = cAudioCSharpWrapperPINVOKE.IAudioSource_getMinVolume(swigCPtr);
return ret; return ret;
} }
public virtual float getMaxVolume() { public virtual float getMaxVolume() {
float ret = cAudioCSharpWrapperPINVOKE.IAudioSource_getMaxVolume(swigCPtr); float ret = cAudioCSharpWrapperPINVOKE.IAudioSource_getMaxVolume(swigCPtr);
return ret; return ret;
} }
public virtual float getInnerConeAngle() { public virtual float getInnerConeAngle() {
float ret = cAudioCSharpWrapperPINVOKE.IAudioSource_getInnerConeAngle(swigCPtr); float ret = cAudioCSharpWrapperPINVOKE.IAudioSource_getInnerConeAngle(swigCPtr);
return ret; return ret;
} }
public virtual float getOuterConeAngle() { public virtual float getOuterConeAngle() {
float ret = cAudioCSharpWrapperPINVOKE.IAudioSource_getOuterConeAngle(swigCPtr); float ret = cAudioCSharpWrapperPINVOKE.IAudioSource_getOuterConeAngle(swigCPtr);
return ret; return ret;
} }
public virtual float getOuterConeVolume() { public virtual float getOuterConeVolume() {
float ret = cAudioCSharpWrapperPINVOKE.IAudioSource_getOuterConeVolume(swigCPtr); float ret = cAudioCSharpWrapperPINVOKE.IAudioSource_getOuterConeVolume(swigCPtr);
return ret; return ret;
} }
public virtual float getDopplerStrength() { public virtual float getDopplerStrength() {
float ret = cAudioCSharpWrapperPINVOKE.IAudioSource_getDopplerStrength(swigCPtr); float ret = cAudioCSharpWrapperPINVOKE.IAudioSource_getDopplerStrength(swigCPtr);
return ret; return ret;
} }
public virtual cVector3 getDopplerVelocity() { public virtual cVector3 getDopplerVelocity() {
cVector3 ret = new cVector3(cAudioCSharpWrapperPINVOKE.IAudioSource_getDopplerVelocity(swigCPtr), true); cVector3 ret = new cVector3(cAudioCSharpWrapperPINVOKE.IAudioSource_getDopplerVelocity(swigCPtr), true);
return ret; return ret;
} }
public virtual void registerEventHandler(ISourceEventHandler handler) { public virtual void registerEventHandler(ISourceEventHandler handler) {
cAudioCSharpWrapperPINVOKE.IAudioSource_registerEventHandler(swigCPtr, ISourceEventHandler.getCPtr(handler)); cAudioCSharpWrapperPINVOKE.IAudioSource_registerEventHandler(swigCPtr, ISourceEventHandler.getCPtr(handler));
} }
public virtual void unRegisterEventHandler(ISourceEventHandler handler) { public virtual void unRegisterEventHandler(ISourceEventHandler handler) {
cAudioCSharpWrapperPINVOKE.IAudioSource_unRegisterEventHandler(swigCPtr, ISourceEventHandler.getCPtr(handler)); cAudioCSharpWrapperPINVOKE.IAudioSource_unRegisterEventHandler(swigCPtr, ISourceEventHandler.getCPtr(handler));
} }
public virtual void unRegisterAllEventHandlers() { public virtual void unRegisterAllEventHandlers() {
cAudioCSharpWrapperPINVOKE.IAudioSource_unRegisterAllEventHandlers(swigCPtr); cAudioCSharpWrapperPINVOKE.IAudioSource_unRegisterAllEventHandlers(swigCPtr);
} }
} }
} }

View File

@ -1,140 +1,140 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4 * Version 2.0.7
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
* ----------------------------------------------------------------------------- */ * ----------------------------------------------------------------------------- */
namespace cAudio { namespace cAudio {
using System; using System;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
public class ICaptureEventHandler : IDisposable { public class ICaptureEventHandler : IDisposable {
private HandleRef swigCPtr; private HandleRef swigCPtr;
protected bool swigCMemOwn; protected bool swigCMemOwn;
internal ICaptureEventHandler(IntPtr cPtr, bool cMemoryOwn) { internal ICaptureEventHandler(IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn; swigCMemOwn = cMemoryOwn;
swigCPtr = new HandleRef(this, cPtr); swigCPtr = new HandleRef(this, cPtr);
} }
internal static HandleRef getCPtr(ICaptureEventHandler obj) { internal static HandleRef getCPtr(ICaptureEventHandler obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
} }
~ICaptureEventHandler() { ~ICaptureEventHandler() {
Dispose(); Dispose();
} }
public virtual void Dispose() { public virtual void Dispose() {
lock(this) { lock(this) {
if (swigCPtr.Handle != IntPtr.Zero) { if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) { if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
cAudioCSharpWrapperPINVOKE.delete_ICaptureEventHandler(swigCPtr); cAudioCSharpWrapperPINVOKE.delete_ICaptureEventHandler(swigCPtr);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
} }
GC.SuppressFinalize(this); GC.SuppressFinalize(this);
} }
} }
public virtual void onInit() { public virtual void onInit() {
cAudioCSharpWrapperPINVOKE.ICaptureEventHandler_onInit(swigCPtr); cAudioCSharpWrapperPINVOKE.ICaptureEventHandler_onInit(swigCPtr);
} }
public virtual void onUpdate() { public virtual void onUpdate() {
cAudioCSharpWrapperPINVOKE.ICaptureEventHandler_onUpdate(swigCPtr); cAudioCSharpWrapperPINVOKE.ICaptureEventHandler_onUpdate(swigCPtr);
} }
public virtual void onRelease() { public virtual void onRelease() {
cAudioCSharpWrapperPINVOKE.ICaptureEventHandler_onRelease(swigCPtr); cAudioCSharpWrapperPINVOKE.ICaptureEventHandler_onRelease(swigCPtr);
} }
public virtual void onBeginCapture() { public virtual void onBeginCapture() {
cAudioCSharpWrapperPINVOKE.ICaptureEventHandler_onBeginCapture(swigCPtr); cAudioCSharpWrapperPINVOKE.ICaptureEventHandler_onBeginCapture(swigCPtr);
} }
public virtual void onEndCapture() { public virtual void onEndCapture() {
cAudioCSharpWrapperPINVOKE.ICaptureEventHandler_onEndCapture(swigCPtr); cAudioCSharpWrapperPINVOKE.ICaptureEventHandler_onEndCapture(swigCPtr);
} }
public virtual void onUserRequestBuffer() { public virtual void onUserRequestBuffer() {
cAudioCSharpWrapperPINVOKE.ICaptureEventHandler_onUserRequestBuffer(swigCPtr); cAudioCSharpWrapperPINVOKE.ICaptureEventHandler_onUserRequestBuffer(swigCPtr);
} }
public ICaptureEventHandler() : this(cAudioCSharpWrapperPINVOKE.new_ICaptureEventHandler(), true) { public ICaptureEventHandler() : this(cAudioCSharpWrapperPINVOKE.new_ICaptureEventHandler(), true) {
SwigDirectorConnect(); SwigDirectorConnect();
} }
private void SwigDirectorConnect() { private void SwigDirectorConnect() {
if (SwigDerivedClassHasMethod("onInit", swigMethodTypes0)) if (SwigDerivedClassHasMethod("onInit", swigMethodTypes0))
swigDelegate0 = new SwigDelegateICaptureEventHandler_0(SwigDirectoronInit); swigDelegate0 = new SwigDelegateICaptureEventHandler_0(SwigDirectoronInit);
if (SwigDerivedClassHasMethod("onUpdate", swigMethodTypes1)) if (SwigDerivedClassHasMethod("onUpdate", swigMethodTypes1))
swigDelegate1 = new SwigDelegateICaptureEventHandler_1(SwigDirectoronUpdate); swigDelegate1 = new SwigDelegateICaptureEventHandler_1(SwigDirectoronUpdate);
if (SwigDerivedClassHasMethod("onRelease", swigMethodTypes2)) if (SwigDerivedClassHasMethod("onRelease", swigMethodTypes2))
swigDelegate2 = new SwigDelegateICaptureEventHandler_2(SwigDirectoronRelease); swigDelegate2 = new SwigDelegateICaptureEventHandler_2(SwigDirectoronRelease);
if (SwigDerivedClassHasMethod("onBeginCapture", swigMethodTypes3)) if (SwigDerivedClassHasMethod("onBeginCapture", swigMethodTypes3))
swigDelegate3 = new SwigDelegateICaptureEventHandler_3(SwigDirectoronBeginCapture); swigDelegate3 = new SwigDelegateICaptureEventHandler_3(SwigDirectoronBeginCapture);
if (SwigDerivedClassHasMethod("onEndCapture", swigMethodTypes4)) if (SwigDerivedClassHasMethod("onEndCapture", swigMethodTypes4))
swigDelegate4 = new SwigDelegateICaptureEventHandler_4(SwigDirectoronEndCapture); swigDelegate4 = new SwigDelegateICaptureEventHandler_4(SwigDirectoronEndCapture);
if (SwigDerivedClassHasMethod("onUserRequestBuffer", swigMethodTypes5)) if (SwigDerivedClassHasMethod("onUserRequestBuffer", swigMethodTypes5))
swigDelegate5 = new SwigDelegateICaptureEventHandler_5(SwigDirectoronUserRequestBuffer); swigDelegate5 = new SwigDelegateICaptureEventHandler_5(SwigDirectoronUserRequestBuffer);
cAudioCSharpWrapperPINVOKE.ICaptureEventHandler_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4, swigDelegate5); cAudioCSharpWrapperPINVOKE.ICaptureEventHandler_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4, swigDelegate5);
} }
private bool SwigDerivedClassHasMethod(string methodName, Type[] methodTypes) { 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); 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(ICaptureEventHandler)); bool hasDerivedMethod = methodInfo.DeclaringType.IsSubclassOf(typeof(ICaptureEventHandler));
return hasDerivedMethod; return hasDerivedMethod;
} }
private void SwigDirectoronInit() { private void SwigDirectoronInit() {
onInit(); onInit();
} }
private void SwigDirectoronUpdate() { private void SwigDirectoronUpdate() {
onUpdate(); onUpdate();
} }
private void SwigDirectoronRelease() { private void SwigDirectoronRelease() {
onRelease(); onRelease();
} }
private void SwigDirectoronBeginCapture() { private void SwigDirectoronBeginCapture() {
onBeginCapture(); onBeginCapture();
} }
private void SwigDirectoronEndCapture() { private void SwigDirectoronEndCapture() {
onEndCapture(); onEndCapture();
} }
private void SwigDirectoronUserRequestBuffer() { private void SwigDirectoronUserRequestBuffer() {
onUserRequestBuffer(); onUserRequestBuffer();
} }
public delegate void SwigDelegateICaptureEventHandler_0(); public delegate void SwigDelegateICaptureEventHandler_0();
public delegate void SwigDelegateICaptureEventHandler_1(); public delegate void SwigDelegateICaptureEventHandler_1();
public delegate void SwigDelegateICaptureEventHandler_2(); public delegate void SwigDelegateICaptureEventHandler_2();
public delegate void SwigDelegateICaptureEventHandler_3(); public delegate void SwigDelegateICaptureEventHandler_3();
public delegate void SwigDelegateICaptureEventHandler_4(); public delegate void SwigDelegateICaptureEventHandler_4();
public delegate void SwigDelegateICaptureEventHandler_5(); public delegate void SwigDelegateICaptureEventHandler_5();
private SwigDelegateICaptureEventHandler_0 swigDelegate0; private SwigDelegateICaptureEventHandler_0 swigDelegate0;
private SwigDelegateICaptureEventHandler_1 swigDelegate1; private SwigDelegateICaptureEventHandler_1 swigDelegate1;
private SwigDelegateICaptureEventHandler_2 swigDelegate2; private SwigDelegateICaptureEventHandler_2 swigDelegate2;
private SwigDelegateICaptureEventHandler_3 swigDelegate3; private SwigDelegateICaptureEventHandler_3 swigDelegate3;
private SwigDelegateICaptureEventHandler_4 swigDelegate4; private SwigDelegateICaptureEventHandler_4 swigDelegate4;
private SwigDelegateICaptureEventHandler_5 swigDelegate5; private SwigDelegateICaptureEventHandler_5 swigDelegate5;
private static Type[] swigMethodTypes0 = new Type[] { }; private static Type[] swigMethodTypes0 = new Type[] { };
private static Type[] swigMethodTypes1 = new Type[] { }; private static Type[] swigMethodTypes1 = new Type[] { };
private static Type[] swigMethodTypes2 = new Type[] { }; private static Type[] swigMethodTypes2 = new Type[] { };
private static Type[] swigMethodTypes3 = new Type[] { }; private static Type[] swigMethodTypes3 = new Type[] { };
private static Type[] swigMethodTypes4 = new Type[] { }; private static Type[] swigMethodTypes4 = new Type[] { };
private static Type[] swigMethodTypes5 = new Type[] { }; private static Type[] swigMethodTypes5 = new Type[] { };
} }
} }

View File

@ -1,149 +1,149 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4 * Version 2.0.7
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
* ----------------------------------------------------------------------------- */ * ----------------------------------------------------------------------------- */
namespace cAudio { namespace cAudio {
using System; using System;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
public class IDataSource : IRefCounted { public class IDataSource : IRefCounted {
private HandleRef swigCPtr; private HandleRef swigCPtr;
internal IDataSource(IntPtr cPtr, bool cMemoryOwn) : base(cAudioCSharpWrapperPINVOKE.IDataSource_SWIGUpcast(cPtr), cMemoryOwn) { internal IDataSource(IntPtr cPtr, bool cMemoryOwn) : base(cAudioCSharpWrapperPINVOKE.IDataSource_SWIGUpcast(cPtr), cMemoryOwn) {
swigCPtr = new HandleRef(this, cPtr); swigCPtr = new HandleRef(this, cPtr);
} }
internal static HandleRef getCPtr(IDataSource obj) { internal static HandleRef getCPtr(IDataSource obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
} }
~IDataSource() { ~IDataSource() {
Dispose(); Dispose();
} }
public override void Dispose() { public override void Dispose() {
lock(this) { lock(this) {
if (swigCPtr.Handle != IntPtr.Zero) { if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) { if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
cAudioCSharpWrapperPINVOKE.delete_IDataSource(swigCPtr); cAudioCSharpWrapperPINVOKE.delete_IDataSource(swigCPtr);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
} }
GC.SuppressFinalize(this); GC.SuppressFinalize(this);
base.Dispose(); base.Dispose();
} }
} }
public IDataSource() : this(cAudioCSharpWrapperPINVOKE.new_IDataSource(), true) { public IDataSource() : this(cAudioCSharpWrapperPINVOKE.new_IDataSource(), true) {
SwigDirectorConnect(); SwigDirectorConnect();
} }
public virtual bool isValid() { public virtual bool isValid() {
bool ret = cAudioCSharpWrapperPINVOKE.IDataSource_isValid(swigCPtr); bool ret = cAudioCSharpWrapperPINVOKE.IDataSource_isValid(swigCPtr);
return ret; return ret;
} }
public virtual int getCurrentPos() { public virtual int getCurrentPos() {
int ret = cAudioCSharpWrapperPINVOKE.IDataSource_getCurrentPos(swigCPtr); int ret = cAudioCSharpWrapperPINVOKE.IDataSource_getCurrentPos(swigCPtr);
return ret; return ret;
} }
public virtual int getSize() { public virtual int getSize() {
int ret = cAudioCSharpWrapperPINVOKE.IDataSource_getSize(swigCPtr); int ret = cAudioCSharpWrapperPINVOKE.IDataSource_getSize(swigCPtr);
return ret; return ret;
} }
public virtual int read(SWIGTYPE_p_void output, int size) { public virtual int read(SWIGTYPE_p_void output, int size) {
int ret = cAudioCSharpWrapperPINVOKE.IDataSource_read(swigCPtr, SWIGTYPE_p_void.getCPtr(output), size); int ret = cAudioCSharpWrapperPINVOKE.IDataSource_read(swigCPtr, SWIGTYPE_p_void.getCPtr(output), size);
return ret; return ret;
} }
public virtual bool seek(int amount, bool relative) { public virtual bool seek(int amount, bool relative) {
bool ret = cAudioCSharpWrapperPINVOKE.IDataSource_seek(swigCPtr, amount, relative); bool ret = cAudioCSharpWrapperPINVOKE.IDataSource_seek(swigCPtr, amount, relative);
return ret; return ret;
} }
private void SwigDirectorConnect() { private void SwigDirectorConnect() {
if (SwigDerivedClassHasMethod("grab", swigMethodTypes0)) if (SwigDerivedClassHasMethod("grab", swigMethodTypes0))
swigDelegate0 = new SwigDelegateIDataSource_0(SwigDirectorgrab); swigDelegate0 = new SwigDelegateIDataSource_0(SwigDirectorgrab);
if (SwigDerivedClassHasMethod("drop", swigMethodTypes1)) if (SwigDerivedClassHasMethod("drop", swigMethodTypes1))
swigDelegate1 = new SwigDelegateIDataSource_1(SwigDirectordrop); swigDelegate1 = new SwigDelegateIDataSource_1(SwigDirectordrop);
if (SwigDerivedClassHasMethod("isValid", swigMethodTypes2)) if (SwigDerivedClassHasMethod("isValid", swigMethodTypes2))
swigDelegate2 = new SwigDelegateIDataSource_2(SwigDirectorisValid); swigDelegate2 = new SwigDelegateIDataSource_2(SwigDirectorisValid);
if (SwigDerivedClassHasMethod("getCurrentPos", swigMethodTypes3)) if (SwigDerivedClassHasMethod("getCurrentPos", swigMethodTypes3))
swigDelegate3 = new SwigDelegateIDataSource_3(SwigDirectorgetCurrentPos); swigDelegate3 = new SwigDelegateIDataSource_3(SwigDirectorgetCurrentPos);
if (SwigDerivedClassHasMethod("getSize", swigMethodTypes4)) if (SwigDerivedClassHasMethod("getSize", swigMethodTypes4))
swigDelegate4 = new SwigDelegateIDataSource_4(SwigDirectorgetSize); swigDelegate4 = new SwigDelegateIDataSource_4(SwigDirectorgetSize);
if (SwigDerivedClassHasMethod("read", swigMethodTypes5)) if (SwigDerivedClassHasMethod("read", swigMethodTypes5))
swigDelegate5 = new SwigDelegateIDataSource_5(SwigDirectorread); swigDelegate5 = new SwigDelegateIDataSource_5(SwigDirectorread);
if (SwigDerivedClassHasMethod("seek", swigMethodTypes6)) if (SwigDerivedClassHasMethod("seek", swigMethodTypes6))
swigDelegate6 = new SwigDelegateIDataSource_6(SwigDirectorseek); swigDelegate6 = new SwigDelegateIDataSource_6(SwigDirectorseek);
cAudioCSharpWrapperPINVOKE.IDataSource_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4, swigDelegate5, swigDelegate6); cAudioCSharpWrapperPINVOKE.IDataSource_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4, swigDelegate5, swigDelegate6);
} }
private bool SwigDerivedClassHasMethod(string methodName, Type[] methodTypes) { 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); 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(IDataSource)); bool hasDerivedMethod = methodInfo.DeclaringType.IsSubclassOf(typeof(IDataSource));
return hasDerivedMethod; return hasDerivedMethod;
} }
private void SwigDirectorgrab() { private void SwigDirectorgrab() {
grab(); grab();
} }
private bool SwigDirectordrop() { private bool SwigDirectordrop() {
return drop(); return drop();
} }
private bool SwigDirectorisValid() { private bool SwigDirectorisValid() {
return isValid(); return isValid();
} }
private int SwigDirectorgetCurrentPos() { private int SwigDirectorgetCurrentPos() {
return getCurrentPos(); return getCurrentPos();
} }
private int SwigDirectorgetSize() { private int SwigDirectorgetSize() {
return getSize(); return getSize();
} }
private int SwigDirectorread(IntPtr output, int size) { private int SwigDirectorread(IntPtr output, int size) {
return read((output == IntPtr.Zero) ? null : new SWIGTYPE_p_void(output, false), size); return read((output == IntPtr.Zero) ? null : new SWIGTYPE_p_void(output, false), size);
} }
private bool SwigDirectorseek(int amount, bool relative) { private bool SwigDirectorseek(int amount, bool relative) {
return seek(amount, relative); return seek(amount, relative);
} }
public delegate void SwigDelegateIDataSource_0(); public delegate void SwigDelegateIDataSource_0();
public delegate bool SwigDelegateIDataSource_1(); public delegate bool SwigDelegateIDataSource_1();
public delegate bool SwigDelegateIDataSource_2(); public delegate bool SwigDelegateIDataSource_2();
public delegate int SwigDelegateIDataSource_3(); public delegate int SwigDelegateIDataSource_3();
public delegate int SwigDelegateIDataSource_4(); public delegate int SwigDelegateIDataSource_4();
public delegate int SwigDelegateIDataSource_5(IntPtr output, int size); public delegate int SwigDelegateIDataSource_5(IntPtr output, int size);
public delegate bool SwigDelegateIDataSource_6(int amount, bool relative); public delegate bool SwigDelegateIDataSource_6(int amount, bool relative);
private SwigDelegateIDataSource_0 swigDelegate0; private SwigDelegateIDataSource_0 swigDelegate0;
private SwigDelegateIDataSource_1 swigDelegate1; private SwigDelegateIDataSource_1 swigDelegate1;
private SwigDelegateIDataSource_2 swigDelegate2; private SwigDelegateIDataSource_2 swigDelegate2;
private SwigDelegateIDataSource_3 swigDelegate3; private SwigDelegateIDataSource_3 swigDelegate3;
private SwigDelegateIDataSource_4 swigDelegate4; private SwigDelegateIDataSource_4 swigDelegate4;
private SwigDelegateIDataSource_5 swigDelegate5; private SwigDelegateIDataSource_5 swigDelegate5;
private SwigDelegateIDataSource_6 swigDelegate6; private SwigDelegateIDataSource_6 swigDelegate6;
private static Type[] swigMethodTypes0 = new Type[] { }; private static Type[] swigMethodTypes0 = new Type[] { };
private static Type[] swigMethodTypes1 = new Type[] { }; private static Type[] swigMethodTypes1 = new Type[] { };
private static Type[] swigMethodTypes2 = new Type[] { }; private static Type[] swigMethodTypes2 = new Type[] { };
private static Type[] swigMethodTypes3 = new Type[] { }; private static Type[] swigMethodTypes3 = new Type[] { };
private static Type[] swigMethodTypes4 = new Type[] { }; private static Type[] swigMethodTypes4 = new Type[] { };
private static Type[] swigMethodTypes5 = new Type[] { typeof(SWIGTYPE_p_void), typeof(int) }; private static Type[] swigMethodTypes5 = new Type[] { typeof(SWIGTYPE_p_void), typeof(int) };
private static Type[] swigMethodTypes6 = new Type[] { typeof(int), typeof(bool) }; private static Type[] swigMethodTypes6 = new Type[] { typeof(int), typeof(bool) };
} }
} }

View File

@ -1,77 +1,77 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4 * Version 2.0.7
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
* ----------------------------------------------------------------------------- */ * ----------------------------------------------------------------------------- */
namespace cAudio { namespace cAudio {
using System; using System;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
public class IDataSourceFactory : IDisposable { public class IDataSourceFactory : IDisposable {
private HandleRef swigCPtr; private HandleRef swigCPtr;
protected bool swigCMemOwn; protected bool swigCMemOwn;
internal IDataSourceFactory(IntPtr cPtr, bool cMemoryOwn) { internal IDataSourceFactory(IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn; swigCMemOwn = cMemoryOwn;
swigCPtr = new HandleRef(this, cPtr); swigCPtr = new HandleRef(this, cPtr);
} }
internal static HandleRef getCPtr(IDataSourceFactory obj) { internal static HandleRef getCPtr(IDataSourceFactory obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
} }
~IDataSourceFactory() { ~IDataSourceFactory() {
Dispose(); Dispose();
} }
public virtual void Dispose() { public virtual void Dispose() {
lock(this) { lock(this) {
if (swigCPtr.Handle != IntPtr.Zero) { if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) { if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
cAudioCSharpWrapperPINVOKE.delete_IDataSourceFactory(swigCPtr); cAudioCSharpWrapperPINVOKE.delete_IDataSourceFactory(swigCPtr);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
} }
GC.SuppressFinalize(this); GC.SuppressFinalize(this);
} }
} }
public IDataSourceFactory() : this(cAudioCSharpWrapperPINVOKE.new_IDataSourceFactory(), true) { public IDataSourceFactory() : this(cAudioCSharpWrapperPINVOKE.new_IDataSourceFactory(), true) {
SwigDirectorConnect(); SwigDirectorConnect();
} }
public virtual IDataSource CreateDataSource(string filename, bool streamingRequested) { public virtual IDataSource CreateDataSource(string filename, bool streamingRequested) {
IntPtr cPtr = cAudioCSharpWrapperPINVOKE.IDataSourceFactory_CreateDataSource(swigCPtr, filename, streamingRequested); IntPtr cPtr = cAudioCSharpWrapperPINVOKE.IDataSourceFactory_CreateDataSource(swigCPtr, filename, streamingRequested);
IDataSource ret = (cPtr == IntPtr.Zero) ? null : new IDataSource(cPtr, false); IDataSource ret = (cPtr == IntPtr.Zero) ? null : new IDataSource(cPtr, false);
return ret; return ret;
} }
private void SwigDirectorConnect() { private void SwigDirectorConnect() {
if (SwigDerivedClassHasMethod("CreateDataSource", swigMethodTypes0)) if (SwigDerivedClassHasMethod("CreateDataSource", swigMethodTypes0))
swigDelegate0 = new SwigDelegateIDataSourceFactory_0(SwigDirectorCreateDataSource); swigDelegate0 = new SwigDelegateIDataSourceFactory_0(SwigDirectorCreateDataSource);
cAudioCSharpWrapperPINVOKE.IDataSourceFactory_director_connect(swigCPtr, swigDelegate0); cAudioCSharpWrapperPINVOKE.IDataSourceFactory_director_connect(swigCPtr, swigDelegate0);
} }
private bool SwigDerivedClassHasMethod(string methodName, Type[] methodTypes) { 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); 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(IDataSourceFactory)); bool hasDerivedMethod = methodInfo.DeclaringType.IsSubclassOf(typeof(IDataSourceFactory));
return hasDerivedMethod; return hasDerivedMethod;
} }
private IntPtr SwigDirectorCreateDataSource(string filename, bool streamingRequested) { private IntPtr SwigDirectorCreateDataSource(string filename, bool streamingRequested) {
return IDataSource.getCPtr(CreateDataSource(filename, streamingRequested)).Handle; return IDataSource.getCPtr(CreateDataSource(filename, streamingRequested)).Handle;
} }
public delegate IntPtr SwigDelegateIDataSourceFactory_0(string filename, bool streamingRequested); public delegate IntPtr SwigDelegateIDataSourceFactory_0(string filename, bool streamingRequested);
private SwigDelegateIDataSourceFactory_0 swigDelegate0; private SwigDelegateIDataSourceFactory_0 swigDelegate0;
private static Type[] swigMethodTypes0 = new Type[] { typeof(string), typeof(bool) }; private static Type[] swigMethodTypes0 = new Type[] { typeof(string), typeof(bool) };
} }
} }

View File

@ -1,16 +1,16 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4 * Version 2.0.7
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
* ----------------------------------------------------------------------------- */ * ----------------------------------------------------------------------------- */
namespace cAudio { namespace cAudio {
public enum IDeviceType { public enum IDeviceType {
DT_PLAYBACK = 0, DT_PLAYBACK = 0,
DT_RECORDING = 2 DT_RECORDING = 2
} }
} }

View File

@ -1,100 +1,100 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4 * Version 2.0.7
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
* ----------------------------------------------------------------------------- */ * ----------------------------------------------------------------------------- */
namespace cAudio { namespace cAudio {
using System; using System;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
public class IListener : IDisposable { public class IListener : IDisposable {
private HandleRef swigCPtr; private HandleRef swigCPtr;
protected bool swigCMemOwn; protected bool swigCMemOwn;
internal IListener(IntPtr cPtr, bool cMemoryOwn) { internal IListener(IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn; swigCMemOwn = cMemoryOwn;
swigCPtr = new HandleRef(this, cPtr); swigCPtr = new HandleRef(this, cPtr);
} }
internal static HandleRef getCPtr(IListener obj) { internal static HandleRef getCPtr(IListener obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
} }
~IListener() { ~IListener() {
Dispose(); Dispose();
} }
public virtual void Dispose() { public virtual void Dispose() {
lock(this) { lock(this) {
if (swigCPtr.Handle != IntPtr.Zero) { if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) { if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
cAudioCSharpWrapperPINVOKE.delete_IListener(swigCPtr); cAudioCSharpWrapperPINVOKE.delete_IListener(swigCPtr);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
} }
GC.SuppressFinalize(this); GC.SuppressFinalize(this);
} }
} }
public virtual void setPosition(cVector3 pos) { public virtual void setPosition(cVector3 pos) {
cAudioCSharpWrapperPINVOKE.IListener_setPosition(swigCPtr, cVector3.getCPtr(pos)); cAudioCSharpWrapperPINVOKE.IListener_setPosition(swigCPtr, cVector3.getCPtr(pos));
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
} }
public virtual void setDirection(cVector3 dir) { public virtual void setDirection(cVector3 dir) {
cAudioCSharpWrapperPINVOKE.IListener_setDirection(swigCPtr, cVector3.getCPtr(dir)); cAudioCSharpWrapperPINVOKE.IListener_setDirection(swigCPtr, cVector3.getCPtr(dir));
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
} }
public virtual void setUpVector(cVector3 up) { public virtual void setUpVector(cVector3 up) {
cAudioCSharpWrapperPINVOKE.IListener_setUpVector(swigCPtr, cVector3.getCPtr(up)); cAudioCSharpWrapperPINVOKE.IListener_setUpVector(swigCPtr, cVector3.getCPtr(up));
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
} }
public virtual void setVelocity(cVector3 vel) { public virtual void setVelocity(cVector3 vel) {
cAudioCSharpWrapperPINVOKE.IListener_setVelocity(swigCPtr, cVector3.getCPtr(vel)); cAudioCSharpWrapperPINVOKE.IListener_setVelocity(swigCPtr, cVector3.getCPtr(vel));
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
} }
public virtual void setMasterVolume(float volume) { public virtual void setMasterVolume(float volume) {
cAudioCSharpWrapperPINVOKE.IListener_setMasterVolume(swigCPtr, volume); cAudioCSharpWrapperPINVOKE.IListener_setMasterVolume(swigCPtr, volume);
} }
public virtual void move(cVector3 pos) { public virtual void move(cVector3 pos) {
cAudioCSharpWrapperPINVOKE.IListener_move(swigCPtr, cVector3.getCPtr(pos)); cAudioCSharpWrapperPINVOKE.IListener_move(swigCPtr, cVector3.getCPtr(pos));
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
} }
public virtual cVector3 getPosition() { public virtual cVector3 getPosition() {
cVector3 ret = new cVector3(cAudioCSharpWrapperPINVOKE.IListener_getPosition(swigCPtr), true); cVector3 ret = new cVector3(cAudioCSharpWrapperPINVOKE.IListener_getPosition(swigCPtr), true);
return ret; return ret;
} }
public virtual cVector3 getDirection() { public virtual cVector3 getDirection() {
cVector3 ret = new cVector3(cAudioCSharpWrapperPINVOKE.IListener_getDirection(swigCPtr), true); cVector3 ret = new cVector3(cAudioCSharpWrapperPINVOKE.IListener_getDirection(swigCPtr), true);
return ret; return ret;
} }
public virtual cVector3 getUpVector() { public virtual cVector3 getUpVector() {
cVector3 ret = new cVector3(cAudioCSharpWrapperPINVOKE.IListener_getUpVector(swigCPtr), true); cVector3 ret = new cVector3(cAudioCSharpWrapperPINVOKE.IListener_getUpVector(swigCPtr), true);
return ret; return ret;
} }
public virtual cVector3 getVelocity() { public virtual cVector3 getVelocity() {
cVector3 ret = new cVector3(cAudioCSharpWrapperPINVOKE.IListener_getVelocity(swigCPtr), true); cVector3 ret = new cVector3(cAudioCSharpWrapperPINVOKE.IListener_getVelocity(swigCPtr), true);
return ret; return ret;
} }
public virtual float getMasterVolume() { public virtual float getMasterVolume() {
float ret = cAudioCSharpWrapperPINVOKE.IListener_getMasterVolume(swigCPtr); float ret = cAudioCSharpWrapperPINVOKE.IListener_getMasterVolume(swigCPtr);
return ret; return ret;
} }
} }
} }

View File

@ -1,76 +1,76 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4 * Version 2.0.7
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
* ----------------------------------------------------------------------------- */ * ----------------------------------------------------------------------------- */
namespace cAudio { namespace cAudio {
using System; using System;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
public class ILogReceiver : IDisposable { public class ILogReceiver : IDisposable {
private HandleRef swigCPtr; private HandleRef swigCPtr;
protected bool swigCMemOwn; protected bool swigCMemOwn;
internal ILogReceiver(IntPtr cPtr, bool cMemoryOwn) { internal ILogReceiver(IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn; swigCMemOwn = cMemoryOwn;
swigCPtr = new HandleRef(this, cPtr); swigCPtr = new HandleRef(this, cPtr);
} }
internal static HandleRef getCPtr(ILogReceiver obj) { internal static HandleRef getCPtr(ILogReceiver obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
} }
~ILogReceiver() { ~ILogReceiver() {
Dispose(); Dispose();
} }
public virtual void Dispose() { public virtual void Dispose() {
lock(this) { lock(this) {
if (swigCPtr.Handle != IntPtr.Zero) { if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) { if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
cAudioCSharpWrapperPINVOKE.delete_ILogReceiver(swigCPtr); cAudioCSharpWrapperPINVOKE.delete_ILogReceiver(swigCPtr);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
} }
GC.SuppressFinalize(this); GC.SuppressFinalize(this);
} }
} }
public ILogReceiver() : this(cAudioCSharpWrapperPINVOKE.new_ILogReceiver(), true) { public ILogReceiver() : this(cAudioCSharpWrapperPINVOKE.new_ILogReceiver(), true) {
SwigDirectorConnect(); SwigDirectorConnect();
} }
public virtual bool OnLogMessage(string sender, string message, LogLevel level, float time) { public virtual bool OnLogMessage(string sender, string message, LogLevel level, float time) {
bool ret = cAudioCSharpWrapperPINVOKE.ILogReceiver_OnLogMessage(swigCPtr, sender, message, (int)level, time); bool ret = cAudioCSharpWrapperPINVOKE.ILogReceiver_OnLogMessage(swigCPtr, sender, message, (int)level, time);
return ret; return ret;
} }
private void SwigDirectorConnect() { private void SwigDirectorConnect() {
if (SwigDerivedClassHasMethod("OnLogMessage", swigMethodTypes0)) if (SwigDerivedClassHasMethod("OnLogMessage", swigMethodTypes0))
swigDelegate0 = new SwigDelegateILogReceiver_0(SwigDirectorOnLogMessage); swigDelegate0 = new SwigDelegateILogReceiver_0(SwigDirectorOnLogMessage);
cAudioCSharpWrapperPINVOKE.ILogReceiver_director_connect(swigCPtr, swigDelegate0); cAudioCSharpWrapperPINVOKE.ILogReceiver_director_connect(swigCPtr, swigDelegate0);
} }
private bool SwigDerivedClassHasMethod(string methodName, Type[] methodTypes) { 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); 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(ILogReceiver)); bool hasDerivedMethod = methodInfo.DeclaringType.IsSubclassOf(typeof(ILogReceiver));
return hasDerivedMethod; return hasDerivedMethod;
} }
private bool SwigDirectorOnLogMessage(string sender, string message, int level, float time) { private bool SwigDirectorOnLogMessage(string sender, string message, int level, float time) {
return OnLogMessage(sender, message, (LogLevel)level, time); return OnLogMessage(sender, message, (LogLevel)level, time);
} }
public delegate bool SwigDelegateILogReceiver_0(string sender, string message, int level, float time); public delegate bool SwigDelegateILogReceiver_0(string sender, string message, int level, float time);
private SwigDelegateILogReceiver_0 swigDelegate0; private SwigDelegateILogReceiver_0 swigDelegate0;
private static Type[] swigMethodTypes0 = new Type[] { typeof(string), typeof(string), typeof(LogLevel), typeof(float) }; private static Type[] swigMethodTypes0 = new Type[] { typeof(string), typeof(string), typeof(LogLevel), typeof(float) };
} }
} }

View File

@ -1,95 +1,95 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4 * Version 2.0.7
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
* ----------------------------------------------------------------------------- */ * ----------------------------------------------------------------------------- */
namespace cAudio { namespace cAudio {
using System; using System;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
public class ILogger : IDisposable { public class ILogger : IDisposable {
private HandleRef swigCPtr; private HandleRef swigCPtr;
protected bool swigCMemOwn; protected bool swigCMemOwn;
internal ILogger(IntPtr cPtr, bool cMemoryOwn) { internal ILogger(IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn; swigCMemOwn = cMemoryOwn;
swigCPtr = new HandleRef(this, cPtr); swigCPtr = new HandleRef(this, cPtr);
} }
internal static HandleRef getCPtr(ILogger obj) { internal static HandleRef getCPtr(ILogger obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
} }
~ILogger() { ~ILogger() {
Dispose(); Dispose();
} }
public virtual void Dispose() { public virtual void Dispose() {
lock(this) { lock(this) {
if (swigCPtr.Handle != IntPtr.Zero) { if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) { if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
cAudioCSharpWrapperPINVOKE.delete_ILogger(swigCPtr); cAudioCSharpWrapperPINVOKE.delete_ILogger(swigCPtr);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
} }
GC.SuppressFinalize(this); GC.SuppressFinalize(this);
} }
} }
public virtual void logCritical(string sender, string msg) { public virtual void logCritical(string sender, string msg) {
cAudioCSharpWrapperPINVOKE.ILogger_logCritical(swigCPtr, sender, msg); cAudioCSharpWrapperPINVOKE.ILogger_logCritical(swigCPtr, sender, msg);
} }
public virtual void logError(string sender, string msg) { public virtual void logError(string sender, string msg) {
cAudioCSharpWrapperPINVOKE.ILogger_logError(swigCPtr, sender, msg); cAudioCSharpWrapperPINVOKE.ILogger_logError(swigCPtr, sender, msg);
} }
public virtual void logWarning(string sender, string msg) { public virtual void logWarning(string sender, string msg) {
cAudioCSharpWrapperPINVOKE.ILogger_logWarning(swigCPtr, sender, msg); cAudioCSharpWrapperPINVOKE.ILogger_logWarning(swigCPtr, sender, msg);
} }
public virtual void logInfo(string sender, string msg) { public virtual void logInfo(string sender, string msg) {
cAudioCSharpWrapperPINVOKE.ILogger_logInfo(swigCPtr, sender, msg); cAudioCSharpWrapperPINVOKE.ILogger_logInfo(swigCPtr, sender, msg);
} }
public virtual void logDebug(string sender, string msg) { public virtual void logDebug(string sender, string msg) {
cAudioCSharpWrapperPINVOKE.ILogger_logDebug(swigCPtr, sender, msg); cAudioCSharpWrapperPINVOKE.ILogger_logDebug(swigCPtr, sender, msg);
} }
public virtual LogLevel getLogLevel() { public virtual LogLevel getLogLevel() {
LogLevel ret = (LogLevel)cAudioCSharpWrapperPINVOKE.ILogger_getLogLevel(swigCPtr); LogLevel ret = (LogLevel)cAudioCSharpWrapperPINVOKE.ILogger_getLogLevel(swigCPtr);
return ret; return ret;
} }
public virtual void setLogLevel(LogLevel logLevel) { public virtual void setLogLevel(LogLevel logLevel) {
cAudioCSharpWrapperPINVOKE.ILogger_setLogLevel(swigCPtr, (int)logLevel); cAudioCSharpWrapperPINVOKE.ILogger_setLogLevel(swigCPtr, (int)logLevel);
} }
public virtual bool registerLogReceiver(ILogReceiver receiver, string name) { public virtual bool registerLogReceiver(ILogReceiver receiver, string name) {
bool ret = cAudioCSharpWrapperPINVOKE.ILogger_registerLogReceiver(swigCPtr, ILogReceiver.getCPtr(receiver), name); bool ret = cAudioCSharpWrapperPINVOKE.ILogger_registerLogReceiver(swigCPtr, ILogReceiver.getCPtr(receiver), name);
return ret; return ret;
} }
public virtual void unRegisterLogReceiver(string name) { public virtual void unRegisterLogReceiver(string name) {
cAudioCSharpWrapperPINVOKE.ILogger_unRegisterLogReceiver(swigCPtr, name); cAudioCSharpWrapperPINVOKE.ILogger_unRegisterLogReceiver(swigCPtr, name);
} }
public virtual bool isLogReceiverRegistered(string name) { public virtual bool isLogReceiverRegistered(string name) {
bool ret = cAudioCSharpWrapperPINVOKE.ILogger_isLogReceiverRegistered(swigCPtr, name); bool ret = cAudioCSharpWrapperPINVOKE.ILogger_isLogReceiverRegistered(swigCPtr, name);
return ret; return ret;
} }
public virtual ILogReceiver getLogReceiver(string name) { public virtual ILogReceiver getLogReceiver(string name) {
IntPtr cPtr = cAudioCSharpWrapperPINVOKE.ILogger_getLogReceiver(swigCPtr, name); IntPtr cPtr = cAudioCSharpWrapperPINVOKE.ILogger_getLogReceiver(swigCPtr, name);
ILogReceiver ret = (cPtr == IntPtr.Zero) ? null : new ILogReceiver(cPtr, false); ILogReceiver ret = (cPtr == IntPtr.Zero) ? null : new ILogReceiver(cPtr, false);
return ret; return ret;
} }
} }
} }

View File

@ -1,140 +1,140 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4 * Version 2.0.7
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
* ----------------------------------------------------------------------------- */ * ----------------------------------------------------------------------------- */
namespace cAudio { namespace cAudio {
using System; using System;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
public class IManagerEventHandler : IDisposable { public class IManagerEventHandler : IDisposable {
private HandleRef swigCPtr; private HandleRef swigCPtr;
protected bool swigCMemOwn; protected bool swigCMemOwn;
internal IManagerEventHandler(IntPtr cPtr, bool cMemoryOwn) { internal IManagerEventHandler(IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn; swigCMemOwn = cMemoryOwn;
swigCPtr = new HandleRef(this, cPtr); swigCPtr = new HandleRef(this, cPtr);
} }
internal static HandleRef getCPtr(IManagerEventHandler obj) { internal static HandleRef getCPtr(IManagerEventHandler obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
} }
~IManagerEventHandler() { ~IManagerEventHandler() {
Dispose(); Dispose();
} }
public virtual void Dispose() { public virtual void Dispose() {
lock(this) { lock(this) {
if (swigCPtr.Handle != IntPtr.Zero) { if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) { if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
cAudioCSharpWrapperPINVOKE.delete_IManagerEventHandler(swigCPtr); cAudioCSharpWrapperPINVOKE.delete_IManagerEventHandler(swigCPtr);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
} }
GC.SuppressFinalize(this); GC.SuppressFinalize(this);
} }
} }
public virtual void onInit() { public virtual void onInit() {
cAudioCSharpWrapperPINVOKE.IManagerEventHandler_onInit(swigCPtr); cAudioCSharpWrapperPINVOKE.IManagerEventHandler_onInit(swigCPtr);
} }
public virtual void onUpdate() { public virtual void onUpdate() {
cAudioCSharpWrapperPINVOKE.IManagerEventHandler_onUpdate(swigCPtr); cAudioCSharpWrapperPINVOKE.IManagerEventHandler_onUpdate(swigCPtr);
} }
public virtual void onRelease() { public virtual void onRelease() {
cAudioCSharpWrapperPINVOKE.IManagerEventHandler_onRelease(swigCPtr); cAudioCSharpWrapperPINVOKE.IManagerEventHandler_onRelease(swigCPtr);
} }
public virtual void onSourceCreate() { public virtual void onSourceCreate() {
cAudioCSharpWrapperPINVOKE.IManagerEventHandler_onSourceCreate(swigCPtr); cAudioCSharpWrapperPINVOKE.IManagerEventHandler_onSourceCreate(swigCPtr);
} }
public virtual void onDecoderRegister() { public virtual void onDecoderRegister() {
cAudioCSharpWrapperPINVOKE.IManagerEventHandler_onDecoderRegister(swigCPtr); cAudioCSharpWrapperPINVOKE.IManagerEventHandler_onDecoderRegister(swigCPtr);
} }
public virtual void onDataSourceRegister() { public virtual void onDataSourceRegister() {
cAudioCSharpWrapperPINVOKE.IManagerEventHandler_onDataSourceRegister(swigCPtr); cAudioCSharpWrapperPINVOKE.IManagerEventHandler_onDataSourceRegister(swigCPtr);
} }
public IManagerEventHandler() : this(cAudioCSharpWrapperPINVOKE.new_IManagerEventHandler(), true) { public IManagerEventHandler() : this(cAudioCSharpWrapperPINVOKE.new_IManagerEventHandler(), true) {
SwigDirectorConnect(); SwigDirectorConnect();
} }
private void SwigDirectorConnect() { private void SwigDirectorConnect() {
if (SwigDerivedClassHasMethod("onInit", swigMethodTypes0)) if (SwigDerivedClassHasMethod("onInit", swigMethodTypes0))
swigDelegate0 = new SwigDelegateIManagerEventHandler_0(SwigDirectoronInit); swigDelegate0 = new SwigDelegateIManagerEventHandler_0(SwigDirectoronInit);
if (SwigDerivedClassHasMethod("onUpdate", swigMethodTypes1)) if (SwigDerivedClassHasMethod("onUpdate", swigMethodTypes1))
swigDelegate1 = new SwigDelegateIManagerEventHandler_1(SwigDirectoronUpdate); swigDelegate1 = new SwigDelegateIManagerEventHandler_1(SwigDirectoronUpdate);
if (SwigDerivedClassHasMethod("onRelease", swigMethodTypes2)) if (SwigDerivedClassHasMethod("onRelease", swigMethodTypes2))
swigDelegate2 = new SwigDelegateIManagerEventHandler_2(SwigDirectoronRelease); swigDelegate2 = new SwigDelegateIManagerEventHandler_2(SwigDirectoronRelease);
if (SwigDerivedClassHasMethod("onSourceCreate", swigMethodTypes3)) if (SwigDerivedClassHasMethod("onSourceCreate", swigMethodTypes3))
swigDelegate3 = new SwigDelegateIManagerEventHandler_3(SwigDirectoronSourceCreate); swigDelegate3 = new SwigDelegateIManagerEventHandler_3(SwigDirectoronSourceCreate);
if (SwigDerivedClassHasMethod("onDecoderRegister", swigMethodTypes4)) if (SwigDerivedClassHasMethod("onDecoderRegister", swigMethodTypes4))
swigDelegate4 = new SwigDelegateIManagerEventHandler_4(SwigDirectoronDecoderRegister); swigDelegate4 = new SwigDelegateIManagerEventHandler_4(SwigDirectoronDecoderRegister);
if (SwigDerivedClassHasMethod("onDataSourceRegister", swigMethodTypes5)) if (SwigDerivedClassHasMethod("onDataSourceRegister", swigMethodTypes5))
swigDelegate5 = new SwigDelegateIManagerEventHandler_5(SwigDirectoronDataSourceRegister); swigDelegate5 = new SwigDelegateIManagerEventHandler_5(SwigDirectoronDataSourceRegister);
cAudioCSharpWrapperPINVOKE.IManagerEventHandler_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4, swigDelegate5); cAudioCSharpWrapperPINVOKE.IManagerEventHandler_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4, swigDelegate5);
} }
private bool SwigDerivedClassHasMethod(string methodName, Type[] methodTypes) { 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); 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(IManagerEventHandler)); bool hasDerivedMethod = methodInfo.DeclaringType.IsSubclassOf(typeof(IManagerEventHandler));
return hasDerivedMethod; return hasDerivedMethod;
} }
private void SwigDirectoronInit() { private void SwigDirectoronInit() {
onInit(); onInit();
} }
private void SwigDirectoronUpdate() { private void SwigDirectoronUpdate() {
onUpdate(); onUpdate();
} }
private void SwigDirectoronRelease() { private void SwigDirectoronRelease() {
onRelease(); onRelease();
} }
private void SwigDirectoronSourceCreate() { private void SwigDirectoronSourceCreate() {
onSourceCreate(); onSourceCreate();
} }
private void SwigDirectoronDecoderRegister() { private void SwigDirectoronDecoderRegister() {
onDecoderRegister(); onDecoderRegister();
} }
private void SwigDirectoronDataSourceRegister() { private void SwigDirectoronDataSourceRegister() {
onDataSourceRegister(); onDataSourceRegister();
} }
public delegate void SwigDelegateIManagerEventHandler_0(); public delegate void SwigDelegateIManagerEventHandler_0();
public delegate void SwigDelegateIManagerEventHandler_1(); public delegate void SwigDelegateIManagerEventHandler_1();
public delegate void SwigDelegateIManagerEventHandler_2(); public delegate void SwigDelegateIManagerEventHandler_2();
public delegate void SwigDelegateIManagerEventHandler_3(); public delegate void SwigDelegateIManagerEventHandler_3();
public delegate void SwigDelegateIManagerEventHandler_4(); public delegate void SwigDelegateIManagerEventHandler_4();
public delegate void SwigDelegateIManagerEventHandler_5(); public delegate void SwigDelegateIManagerEventHandler_5();
private SwigDelegateIManagerEventHandler_0 swigDelegate0; private SwigDelegateIManagerEventHandler_0 swigDelegate0;
private SwigDelegateIManagerEventHandler_1 swigDelegate1; private SwigDelegateIManagerEventHandler_1 swigDelegate1;
private SwigDelegateIManagerEventHandler_2 swigDelegate2; private SwigDelegateIManagerEventHandler_2 swigDelegate2;
private SwigDelegateIManagerEventHandler_3 swigDelegate3; private SwigDelegateIManagerEventHandler_3 swigDelegate3;
private SwigDelegateIManagerEventHandler_4 swigDelegate4; private SwigDelegateIManagerEventHandler_4 swigDelegate4;
private SwigDelegateIManagerEventHandler_5 swigDelegate5; private SwigDelegateIManagerEventHandler_5 swigDelegate5;
private static Type[] swigMethodTypes0 = new Type[] { }; private static Type[] swigMethodTypes0 = new Type[] { };
private static Type[] swigMethodTypes1 = new Type[] { }; private static Type[] swigMethodTypes1 = new Type[] { };
private static Type[] swigMethodTypes2 = new Type[] { }; private static Type[] swigMethodTypes2 = new Type[] { };
private static Type[] swigMethodTypes3 = new Type[] { }; private static Type[] swigMethodTypes3 = new Type[] { };
private static Type[] swigMethodTypes4 = new Type[] { }; private static Type[] swigMethodTypes4 = new Type[] { };
private static Type[] swigMethodTypes5 = new Type[] { }; private static Type[] swigMethodTypes5 = new Type[] { };
} }
} }

View File

@ -1,61 +1,61 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4 * Version 2.0.7
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
* ----------------------------------------------------------------------------- */ * ----------------------------------------------------------------------------- */
namespace cAudio { namespace cAudio {
using System; using System;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
public class IMemoryProvider : IDisposable { public class IMemoryProvider : IDisposable {
private HandleRef swigCPtr; private HandleRef swigCPtr;
protected bool swigCMemOwn; protected bool swigCMemOwn;
internal IMemoryProvider(IntPtr cPtr, bool cMemoryOwn) { internal IMemoryProvider(IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn; swigCMemOwn = cMemoryOwn;
swigCPtr = new HandleRef(this, cPtr); swigCPtr = new HandleRef(this, cPtr);
} }
internal static HandleRef getCPtr(IMemoryProvider obj) { internal static HandleRef getCPtr(IMemoryProvider obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
} }
~IMemoryProvider() { ~IMemoryProvider() {
Dispose(); Dispose();
} }
public virtual void Dispose() { public virtual void Dispose() {
lock(this) { lock(this) {
if (swigCPtr.Handle != IntPtr.Zero) { if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) { if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
cAudioCSharpWrapperPINVOKE.delete_IMemoryProvider(swigCPtr); cAudioCSharpWrapperPINVOKE.delete_IMemoryProvider(swigCPtr);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
} }
GC.SuppressFinalize(this); GC.SuppressFinalize(this);
} }
} }
public virtual SWIGTYPE_p_void Allocate(uint size, string filename, int line, string function) { public virtual SWIGTYPE_p_void Allocate(uint size, string filename, int line, string function) {
IntPtr cPtr = cAudioCSharpWrapperPINVOKE.IMemoryProvider_Allocate(swigCPtr, size, filename, line, function); IntPtr cPtr = cAudioCSharpWrapperPINVOKE.IMemoryProvider_Allocate(swigCPtr, size, filename, line, function);
SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false);
return ret; return ret;
} }
public virtual void Free(SWIGTYPE_p_void pointer) { public virtual void Free(SWIGTYPE_p_void pointer) {
cAudioCSharpWrapperPINVOKE.IMemoryProvider_Free(swigCPtr, SWIGTYPE_p_void.getCPtr(pointer)); cAudioCSharpWrapperPINVOKE.IMemoryProvider_Free(swigCPtr, SWIGTYPE_p_void.getCPtr(pointer));
} }
public virtual uint getMaxAllocationSize() { public virtual uint getMaxAllocationSize() {
uint ret = cAudioCSharpWrapperPINVOKE.IMemoryProvider_getMaxAllocationSize(swigCPtr); uint ret = cAudioCSharpWrapperPINVOKE.IMemoryProvider_getMaxAllocationSize(swigCPtr);
return ret; return ret;
} }
} }
} }

View File

@ -1,90 +1,90 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4 * Version 2.0.7
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
* ----------------------------------------------------------------------------- */ * ----------------------------------------------------------------------------- */
namespace cAudio { namespace cAudio {
using System; using System;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
public class IPluginManager : IDisposable { public class IPluginManager : IDisposable {
private HandleRef swigCPtr; private HandleRef swigCPtr;
protected bool swigCMemOwn; protected bool swigCMemOwn;
internal IPluginManager(IntPtr cPtr, bool cMemoryOwn) { internal IPluginManager(IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn; swigCMemOwn = cMemoryOwn;
swigCPtr = new HandleRef(this, cPtr); swigCPtr = new HandleRef(this, cPtr);
} }
internal static HandleRef getCPtr(IPluginManager obj) { internal static HandleRef getCPtr(IPluginManager obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
} }
~IPluginManager() { ~IPluginManager() {
Dispose(); Dispose();
} }
public virtual void Dispose() { public virtual void Dispose() {
lock(this) { lock(this) {
if (swigCPtr.Handle != IntPtr.Zero) { if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) { if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
cAudioCSharpWrapperPINVOKE.delete_IPluginManager(swigCPtr); cAudioCSharpWrapperPINVOKE.delete_IPluginManager(swigCPtr);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
} }
GC.SuppressFinalize(this); GC.SuppressFinalize(this);
} }
} }
public virtual bool installPlugin(IAudioPlugin plugin, string name) { public virtual bool installPlugin(IAudioPlugin plugin, string name) {
bool ret = cAudioCSharpWrapperPINVOKE.IPluginManager_installPlugin__SWIG_0(swigCPtr, IAudioPlugin.getCPtr(plugin), name); bool ret = cAudioCSharpWrapperPINVOKE.IPluginManager_installPlugin__SWIG_0(swigCPtr, IAudioPlugin.getCPtr(plugin), name);
return ret; return ret;
} }
public virtual bool installPlugin(IAudioPlugin plugin) { public virtual bool installPlugin(IAudioPlugin plugin) {
bool ret = cAudioCSharpWrapperPINVOKE.IPluginManager_installPlugin__SWIG_1(swigCPtr, IAudioPlugin.getCPtr(plugin)); bool ret = cAudioCSharpWrapperPINVOKE.IPluginManager_installPlugin__SWIG_1(swigCPtr, IAudioPlugin.getCPtr(plugin));
return ret; return ret;
} }
public virtual bool installPlugin(string filename, string name) { public virtual bool installPlugin(string filename, string name) {
bool ret = cAudioCSharpWrapperPINVOKE.IPluginManager_installPlugin__SWIG_2(swigCPtr, filename, name); bool ret = cAudioCSharpWrapperPINVOKE.IPluginManager_installPlugin__SWIG_2(swigCPtr, filename, name);
return ret; return ret;
} }
public virtual bool installPlugin(string filename) { public virtual bool installPlugin(string filename) {
bool ret = cAudioCSharpWrapperPINVOKE.IPluginManager_installPlugin__SWIG_3(swigCPtr, filename); bool ret = cAudioCSharpWrapperPINVOKE.IPluginManager_installPlugin__SWIG_3(swigCPtr, filename);
return ret; return ret;
} }
public virtual bool checkForPlugin(string name) { public virtual bool checkForPlugin(string name) {
bool ret = cAudioCSharpWrapperPINVOKE.IPluginManager_checkForPlugin(swigCPtr, name); bool ret = cAudioCSharpWrapperPINVOKE.IPluginManager_checkForPlugin(swigCPtr, name);
return ret; return ret;
} }
public virtual IAudioPlugin getPlugin(string name) { public virtual IAudioPlugin getPlugin(string name) {
IntPtr cPtr = cAudioCSharpWrapperPINVOKE.IPluginManager_getPlugin(swigCPtr, name); IntPtr cPtr = cAudioCSharpWrapperPINVOKE.IPluginManager_getPlugin(swigCPtr, name);
IAudioPlugin ret = (cPtr == IntPtr.Zero) ? null : new IAudioPlugin(cPtr, false); IAudioPlugin ret = (cPtr == IntPtr.Zero) ? null : new IAudioPlugin(cPtr, false);
return ret; return ret;
} }
public virtual uint getPluginCount() { public virtual uint getPluginCount() {
uint ret = cAudioCSharpWrapperPINVOKE.IPluginManager_getPluginCount(swigCPtr); uint ret = cAudioCSharpWrapperPINVOKE.IPluginManager_getPluginCount(swigCPtr);
return ret; return ret;
} }
public virtual void uninstallPlugin(IAudioPlugin plugin) { public virtual void uninstallPlugin(IAudioPlugin plugin) {
cAudioCSharpWrapperPINVOKE.IPluginManager_uninstallPlugin__SWIG_0(swigCPtr, IAudioPlugin.getCPtr(plugin)); cAudioCSharpWrapperPINVOKE.IPluginManager_uninstallPlugin__SWIG_0(swigCPtr, IAudioPlugin.getCPtr(plugin));
} }
public virtual void uninstallPlugin(string name) { public virtual void uninstallPlugin(string name) {
cAudioCSharpWrapperPINVOKE.IPluginManager_uninstallPlugin__SWIG_1(swigCPtr, name); cAudioCSharpWrapperPINVOKE.IPluginManager_uninstallPlugin__SWIG_1(swigCPtr, name);
} }
} }
} }

View File

@ -1,63 +1,63 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4 * Version 2.0.7
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
* ----------------------------------------------------------------------------- */ * ----------------------------------------------------------------------------- */
namespace cAudio { namespace cAudio {
using System; using System;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
public class IRefCounted : IDisposable { public class IRefCounted : IDisposable {
private HandleRef swigCPtr; private HandleRef swigCPtr;
protected bool swigCMemOwn; protected bool swigCMemOwn;
internal IRefCounted(IntPtr cPtr, bool cMemoryOwn) { internal IRefCounted(IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn; swigCMemOwn = cMemoryOwn;
swigCPtr = new HandleRef(this, cPtr); swigCPtr = new HandleRef(this, cPtr);
} }
internal static HandleRef getCPtr(IRefCounted obj) { internal static HandleRef getCPtr(IRefCounted obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
} }
~IRefCounted() { ~IRefCounted() {
Dispose(); Dispose();
} }
public virtual void Dispose() { public virtual void Dispose() {
lock(this) { lock(this) {
if (swigCPtr.Handle != IntPtr.Zero) { if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) { if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
cAudioCSharpWrapperPINVOKE.delete_IRefCounted(swigCPtr); cAudioCSharpWrapperPINVOKE.delete_IRefCounted(swigCPtr);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
} }
GC.SuppressFinalize(this); GC.SuppressFinalize(this);
} }
} }
public IRefCounted() : this(cAudioCSharpWrapperPINVOKE.new_IRefCounted(), true) { public IRefCounted() : this(cAudioCSharpWrapperPINVOKE.new_IRefCounted(), true) {
} }
public virtual void grab() { public virtual void grab() {
cAudioCSharpWrapperPINVOKE.IRefCounted_grab(swigCPtr); cAudioCSharpWrapperPINVOKE.IRefCounted_grab(swigCPtr);
} }
public virtual bool drop() { public virtual bool drop() {
bool ret = cAudioCSharpWrapperPINVOKE.IRefCounted_drop(swigCPtr); bool ret = cAudioCSharpWrapperPINVOKE.IRefCounted_drop(swigCPtr);
return ret; return ret;
} }
public int getReferenceCount() { public int getReferenceCount() {
int ret = cAudioCSharpWrapperPINVOKE.IRefCounted_getReferenceCount(swigCPtr); int ret = cAudioCSharpWrapperPINVOKE.IRefCounted_getReferenceCount(swigCPtr);
return ret; return ret;
} }
} }
} }

View File

@ -1,127 +1,127 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4 * Version 2.0.7
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
* ----------------------------------------------------------------------------- */ * ----------------------------------------------------------------------------- */
namespace cAudio { namespace cAudio {
using System; using System;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
public class ISourceEventHandler : IDisposable { public class ISourceEventHandler : IDisposable {
private HandleRef swigCPtr; private HandleRef swigCPtr;
protected bool swigCMemOwn; protected bool swigCMemOwn;
internal ISourceEventHandler(IntPtr cPtr, bool cMemoryOwn) { internal ISourceEventHandler(IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn; swigCMemOwn = cMemoryOwn;
swigCPtr = new HandleRef(this, cPtr); swigCPtr = new HandleRef(this, cPtr);
} }
internal static HandleRef getCPtr(ISourceEventHandler obj) { internal static HandleRef getCPtr(ISourceEventHandler obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
} }
~ISourceEventHandler() { ~ISourceEventHandler() {
Dispose(); Dispose();
} }
public virtual void Dispose() { public virtual void Dispose() {
lock(this) { lock(this) {
if (swigCPtr.Handle != IntPtr.Zero) { if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) { if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
cAudioCSharpWrapperPINVOKE.delete_ISourceEventHandler(swigCPtr); cAudioCSharpWrapperPINVOKE.delete_ISourceEventHandler(swigCPtr);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
} }
GC.SuppressFinalize(this); GC.SuppressFinalize(this);
} }
} }
public virtual void onUpdate() { public virtual void onUpdate() {
cAudioCSharpWrapperPINVOKE.ISourceEventHandler_onUpdate(swigCPtr); cAudioCSharpWrapperPINVOKE.ISourceEventHandler_onUpdate(swigCPtr);
} }
public virtual void onRelease() { public virtual void onRelease() {
cAudioCSharpWrapperPINVOKE.ISourceEventHandler_onRelease(swigCPtr); cAudioCSharpWrapperPINVOKE.ISourceEventHandler_onRelease(swigCPtr);
} }
public virtual void onPlay() { public virtual void onPlay() {
cAudioCSharpWrapperPINVOKE.ISourceEventHandler_onPlay(swigCPtr); cAudioCSharpWrapperPINVOKE.ISourceEventHandler_onPlay(swigCPtr);
} }
public virtual void onStop() { public virtual void onStop() {
cAudioCSharpWrapperPINVOKE.ISourceEventHandler_onStop(swigCPtr); cAudioCSharpWrapperPINVOKE.ISourceEventHandler_onStop(swigCPtr);
} }
public virtual void onPause() { public virtual void onPause() {
cAudioCSharpWrapperPINVOKE.ISourceEventHandler_onPause(swigCPtr); cAudioCSharpWrapperPINVOKE.ISourceEventHandler_onPause(swigCPtr);
} }
public ISourceEventHandler() : this(cAudioCSharpWrapperPINVOKE.new_ISourceEventHandler(), true) { public ISourceEventHandler() : this(cAudioCSharpWrapperPINVOKE.new_ISourceEventHandler(), true) {
SwigDirectorConnect(); SwigDirectorConnect();
} }
private void SwigDirectorConnect() { private void SwigDirectorConnect() {
if (SwigDerivedClassHasMethod("onUpdate", swigMethodTypes0)) if (SwigDerivedClassHasMethod("onUpdate", swigMethodTypes0))
swigDelegate0 = new SwigDelegateISourceEventHandler_0(SwigDirectoronUpdate); swigDelegate0 = new SwigDelegateISourceEventHandler_0(SwigDirectoronUpdate);
if (SwigDerivedClassHasMethod("onRelease", swigMethodTypes1)) if (SwigDerivedClassHasMethod("onRelease", swigMethodTypes1))
swigDelegate1 = new SwigDelegateISourceEventHandler_1(SwigDirectoronRelease); swigDelegate1 = new SwigDelegateISourceEventHandler_1(SwigDirectoronRelease);
if (SwigDerivedClassHasMethod("onPlay", swigMethodTypes2)) if (SwigDerivedClassHasMethod("onPlay", swigMethodTypes2))
swigDelegate2 = new SwigDelegateISourceEventHandler_2(SwigDirectoronPlay); swigDelegate2 = new SwigDelegateISourceEventHandler_2(SwigDirectoronPlay);
if (SwigDerivedClassHasMethod("onStop", swigMethodTypes3)) if (SwigDerivedClassHasMethod("onStop", swigMethodTypes3))
swigDelegate3 = new SwigDelegateISourceEventHandler_3(SwigDirectoronStop); swigDelegate3 = new SwigDelegateISourceEventHandler_3(SwigDirectoronStop);
if (SwigDerivedClassHasMethod("onPause", swigMethodTypes4)) if (SwigDerivedClassHasMethod("onPause", swigMethodTypes4))
swigDelegate4 = new SwigDelegateISourceEventHandler_4(SwigDirectoronPause); swigDelegate4 = new SwigDelegateISourceEventHandler_4(SwigDirectoronPause);
cAudioCSharpWrapperPINVOKE.ISourceEventHandler_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4); cAudioCSharpWrapperPINVOKE.ISourceEventHandler_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4);
} }
private bool SwigDerivedClassHasMethod(string methodName, Type[] methodTypes) { 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); 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(ISourceEventHandler)); bool hasDerivedMethod = methodInfo.DeclaringType.IsSubclassOf(typeof(ISourceEventHandler));
return hasDerivedMethod; return hasDerivedMethod;
} }
private void SwigDirectoronUpdate() { private void SwigDirectoronUpdate() {
onUpdate(); onUpdate();
} }
private void SwigDirectoronRelease() { private void SwigDirectoronRelease() {
onRelease(); onRelease();
} }
private void SwigDirectoronPlay() { private void SwigDirectoronPlay() {
onPlay(); onPlay();
} }
private void SwigDirectoronStop() { private void SwigDirectoronStop() {
onStop(); onStop();
} }
private void SwigDirectoronPause() { private void SwigDirectoronPause() {
onPause(); onPause();
} }
public delegate void SwigDelegateISourceEventHandler_0(); public delegate void SwigDelegateISourceEventHandler_0();
public delegate void SwigDelegateISourceEventHandler_1(); public delegate void SwigDelegateISourceEventHandler_1();
public delegate void SwigDelegateISourceEventHandler_2(); public delegate void SwigDelegateISourceEventHandler_2();
public delegate void SwigDelegateISourceEventHandler_3(); public delegate void SwigDelegateISourceEventHandler_3();
public delegate void SwigDelegateISourceEventHandler_4(); public delegate void SwigDelegateISourceEventHandler_4();
private SwigDelegateISourceEventHandler_0 swigDelegate0; private SwigDelegateISourceEventHandler_0 swigDelegate0;
private SwigDelegateISourceEventHandler_1 swigDelegate1; private SwigDelegateISourceEventHandler_1 swigDelegate1;
private SwigDelegateISourceEventHandler_2 swigDelegate2; private SwigDelegateISourceEventHandler_2 swigDelegate2;
private SwigDelegateISourceEventHandler_3 swigDelegate3; private SwigDelegateISourceEventHandler_3 swigDelegate3;
private SwigDelegateISourceEventHandler_4 swigDelegate4; private SwigDelegateISourceEventHandler_4 swigDelegate4;
private static Type[] swigMethodTypes0 = new Type[] { }; private static Type[] swigMethodTypes0 = new Type[] { };
private static Type[] swigMethodTypes1 = new Type[] { }; private static Type[] swigMethodTypes1 = new Type[] { };
private static Type[] swigMethodTypes2 = new Type[] { }; private static Type[] swigMethodTypes2 = new Type[] { };
private static Type[] swigMethodTypes3 = new Type[] { }; private static Type[] swigMethodTypes3 = new Type[] { };
private static Type[] swigMethodTypes4 = new Type[] { }; private static Type[] swigMethodTypes4 = new Type[] { };
} }
} }

View File

@ -1,64 +1,64 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4 * Version 2.0.7
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
* ----------------------------------------------------------------------------- */ * ----------------------------------------------------------------------------- */
namespace cAudio { namespace cAudio {
using System; using System;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
public class IThread : IDisposable { public class IThread : IDisposable {
private HandleRef swigCPtr; private HandleRef swigCPtr;
protected bool swigCMemOwn; protected bool swigCMemOwn;
internal IThread(IntPtr cPtr, bool cMemoryOwn) { internal IThread(IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn; swigCMemOwn = cMemoryOwn;
swigCPtr = new HandleRef(this, cPtr); swigCPtr = new HandleRef(this, cPtr);
} }
internal static HandleRef getCPtr(IThread obj) { internal static HandleRef getCPtr(IThread obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
} }
~IThread() { ~IThread() {
Dispose(); Dispose();
} }
public virtual void Dispose() { public virtual void Dispose() {
lock(this) { lock(this) {
if (swigCPtr.Handle != IntPtr.Zero) { if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) { if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
cAudioCSharpWrapperPINVOKE.delete_IThread(swigCPtr); cAudioCSharpWrapperPINVOKE.delete_IThread(swigCPtr);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
} }
GC.SuppressFinalize(this); GC.SuppressFinalize(this);
} }
} }
public virtual bool start() { public virtual bool start() {
bool ret = cAudioCSharpWrapperPINVOKE.IThread_start(swigCPtr); bool ret = cAudioCSharpWrapperPINVOKE.IThread_start(swigCPtr);
return ret; return ret;
} }
public virtual void join() { public virtual void join() {
cAudioCSharpWrapperPINVOKE.IThread_join(swigCPtr); cAudioCSharpWrapperPINVOKE.IThread_join(swigCPtr);
} }
public virtual void shutdown() { public virtual void shutdown() {
cAudioCSharpWrapperPINVOKE.IThread_shutdown(swigCPtr); cAudioCSharpWrapperPINVOKE.IThread_shutdown(swigCPtr);
} }
public virtual bool isRunning() { public virtual bool isRunning() {
bool ret = cAudioCSharpWrapperPINVOKE.IThread_isRunning(swigCPtr); bool ret = cAudioCSharpWrapperPINVOKE.IThread_isRunning(swigCPtr);
return ret; return ret;
} }
} }
} }

View File

@ -1,50 +1,50 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4 * Version 2.0.7
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
* ----------------------------------------------------------------------------- */ * ----------------------------------------------------------------------------- */
namespace cAudio { namespace cAudio {
using System; using System;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
public class IThreadWorker : IDisposable { public class IThreadWorker : IDisposable {
private HandleRef swigCPtr; private HandleRef swigCPtr;
protected bool swigCMemOwn; protected bool swigCMemOwn;
internal IThreadWorker(IntPtr cPtr, bool cMemoryOwn) { internal IThreadWorker(IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn; swigCMemOwn = cMemoryOwn;
swigCPtr = new HandleRef(this, cPtr); swigCPtr = new HandleRef(this, cPtr);
} }
internal static HandleRef getCPtr(IThreadWorker obj) { internal static HandleRef getCPtr(IThreadWorker obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
} }
~IThreadWorker() { ~IThreadWorker() {
Dispose(); Dispose();
} }
public virtual void Dispose() { public virtual void Dispose() {
lock(this) { lock(this) {
if (swigCPtr.Handle != IntPtr.Zero) { if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) { if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
cAudioCSharpWrapperPINVOKE.delete_IThreadWorker(swigCPtr); cAudioCSharpWrapperPINVOKE.delete_IThreadWorker(swigCPtr);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
} }
GC.SuppressFinalize(this); GC.SuppressFinalize(this);
} }
} }
public virtual void run() { public virtual void run() {
cAudioCSharpWrapperPINVOKE.IThreadWorker_run(swigCPtr); cAudioCSharpWrapperPINVOKE.IThreadWorker_run(swigCPtr);
} }
} }
} }

View File

@ -1,349 +1,349 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4 * Version 2.0.7
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
* ----------------------------------------------------------------------------- */ * ----------------------------------------------------------------------------- */
namespace cAudio { namespace cAudio {
using System; using System;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
public class IntVector : IDisposable, System.Collections.IEnumerable public class IntVector : IDisposable, System.Collections.IEnumerable
#if !SWIG_DOTNET_1 #if !SWIG_DOTNET_1
, System.Collections.Generic.IList<int> , System.Collections.Generic.IList<int>
#endif #endif
{ {
private HandleRef swigCPtr; private HandleRef swigCPtr;
protected bool swigCMemOwn; protected bool swigCMemOwn;
internal IntVector(IntPtr cPtr, bool cMemoryOwn) { internal IntVector(IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn; swigCMemOwn = cMemoryOwn;
swigCPtr = new HandleRef(this, cPtr); swigCPtr = new HandleRef(this, cPtr);
} }
internal static HandleRef getCPtr(IntVector obj) { internal static HandleRef getCPtr(IntVector obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
} }
~IntVector() { ~IntVector() {
Dispose(); Dispose();
} }
public virtual void Dispose() { public virtual void Dispose() {
lock(this) { lock(this) {
if (swigCPtr.Handle != IntPtr.Zero) { if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) { if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
cAudioCSharpWrapperPINVOKE.delete_IntVector(swigCPtr); cAudioCSharpWrapperPINVOKE.delete_IntVector(swigCPtr);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
} }
GC.SuppressFinalize(this); GC.SuppressFinalize(this);
} }
} }
public IntVector(System.Collections.ICollection c) : this() { public IntVector(System.Collections.ICollection c) : this() {
if (c == null) if (c == null)
throw new ArgumentNullException("c"); throw new ArgumentNullException("c");
foreach (int element in c) { foreach (int element in c) {
this.Add(element); this.Add(element);
} }
} }
public bool IsFixedSize { public bool IsFixedSize {
get { get {
return false; return false;
} }
} }
public bool IsReadOnly { public bool IsReadOnly {
get { get {
return false; return false;
} }
} }
public int this[int index] { public int this[int index] {
get { get {
return getitem(index); return getitem(index);
} }
set { set {
setitem(index, value); setitem(index, value);
} }
} }
public int Capacity { public int Capacity {
get { get {
return (int)capacity(); return (int)capacity();
} }
set { set {
if (value < size()) if (value < size())
throw new ArgumentOutOfRangeException("Capacity"); throw new ArgumentOutOfRangeException("Capacity");
reserve((uint)value); reserve((uint)value);
} }
} }
public int Count { public int Count {
get { get {
return (int)size(); return (int)size();
} }
} }
public bool IsSynchronized { public bool IsSynchronized {
get { get {
return false; return false;
} }
} }
#if SWIG_DOTNET_1 #if SWIG_DOTNET_1
public void CopyTo(System.Array array) public void CopyTo(System.Array array)
#else #else
public void CopyTo(int[] array) public void CopyTo(int[] array)
#endif #endif
{ {
CopyTo(0, array, 0, this.Count); CopyTo(0, array, 0, this.Count);
} }
#if SWIG_DOTNET_1 #if SWIG_DOTNET_1
public void CopyTo(System.Array array, int arrayIndex) public void CopyTo(System.Array array, int arrayIndex)
#else #else
public void CopyTo(int[] array, int arrayIndex) public void CopyTo(int[] array, int arrayIndex)
#endif #endif
{ {
CopyTo(0, array, arrayIndex, this.Count); CopyTo(0, array, arrayIndex, this.Count);
} }
#if SWIG_DOTNET_1 #if SWIG_DOTNET_1
public void CopyTo(int index, System.Array array, int arrayIndex, int count) public void CopyTo(int index, System.Array array, int arrayIndex, int count)
#else #else
public void CopyTo(int index, int[] array, int arrayIndex, int count) public void CopyTo(int index, int[] array, int arrayIndex, int count)
#endif #endif
{ {
if (array == null) if (array == null)
throw new ArgumentNullException("array"); throw new ArgumentNullException("array");
if (index < 0) if (index < 0)
throw new ArgumentOutOfRangeException("index", "Value is less than zero"); throw new ArgumentOutOfRangeException("index", "Value is less than zero");
if (arrayIndex < 0) if (arrayIndex < 0)
throw new ArgumentOutOfRangeException("arrayIndex", "Value is less than zero"); throw new ArgumentOutOfRangeException("arrayIndex", "Value is less than zero");
if (count < 0) if (count < 0)
throw new ArgumentOutOfRangeException("count", "Value is less than zero"); throw new ArgumentOutOfRangeException("count", "Value is less than zero");
if (array.Rank > 1) if (array.Rank > 1)
throw new ArgumentException("Multi dimensional array.", "array"); throw new ArgumentException("Multi dimensional array.", "array");
if (index+count > this.Count || arrayIndex+count > array.Length) if (index+count > this.Count || arrayIndex+count > array.Length)
throw new ArgumentException("Number of elements to copy is too large."); throw new ArgumentException("Number of elements to copy is too large.");
for (int i=0; i<count; i++) for (int i=0; i<count; i++)
array.SetValue(getitemcopy(index+i), arrayIndex+i); array.SetValue(getitemcopy(index+i), arrayIndex+i);
} }
#if !SWIG_DOTNET_1 #if !SWIG_DOTNET_1
System.Collections.Generic.IEnumerator<int> System.Collections.Generic.IEnumerable<int>.GetEnumerator() { System.Collections.Generic.IEnumerator<int> System.Collections.Generic.IEnumerable<int>.GetEnumerator() {
return new IntVectorEnumerator(this); return new IntVectorEnumerator(this);
} }
#endif #endif
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() {
return new IntVectorEnumerator(this); return new IntVectorEnumerator(this);
} }
public IntVectorEnumerator GetEnumerator() { public IntVectorEnumerator GetEnumerator() {
return new IntVectorEnumerator(this); return new IntVectorEnumerator(this);
} }
// Type-safe enumerator // Type-safe enumerator
/// Note that the IEnumerator documentation requires an InvalidOperationException to be thrown /// 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 /// 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 /// 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. /// tricky to detect unmanaged code that modifies the collection under our feet.
public sealed class IntVectorEnumerator : System.Collections.IEnumerator public sealed class IntVectorEnumerator : System.Collections.IEnumerator
#if !SWIG_DOTNET_1 #if !SWIG_DOTNET_1
, System.Collections.Generic.IEnumerator<int> , System.Collections.Generic.IEnumerator<int>
#endif #endif
{ {
private IntVector collectionRef; private IntVector collectionRef;
private int currentIndex; private int currentIndex;
private object currentObject; private object currentObject;
private int currentSize; private int currentSize;
public IntVectorEnumerator(IntVector collection) { public IntVectorEnumerator(IntVector collection) {
collectionRef = collection; collectionRef = collection;
currentIndex = -1; currentIndex = -1;
currentObject = null; currentObject = null;
currentSize = collectionRef.Count; currentSize = collectionRef.Count;
} }
// Type-safe iterator Current // Type-safe iterator Current
public int Current { public int Current {
get { get {
if (currentIndex == -1) if (currentIndex == -1)
throw new InvalidOperationException("Enumeration not started."); throw new InvalidOperationException("Enumeration not started.");
if (currentIndex > currentSize - 1) if (currentIndex > currentSize - 1)
throw new InvalidOperationException("Enumeration finished."); throw new InvalidOperationException("Enumeration finished.");
if (currentObject == null) if (currentObject == null)
throw new InvalidOperationException("Collection modified."); throw new InvalidOperationException("Collection modified.");
return (int)currentObject; return (int)currentObject;
} }
} }
// Type-unsafe IEnumerator.Current // Type-unsafe IEnumerator.Current
object System.Collections.IEnumerator.Current { object System.Collections.IEnumerator.Current {
get { get {
return Current; return Current;
} }
} }
public bool MoveNext() { public bool MoveNext() {
int size = collectionRef.Count; int size = collectionRef.Count;
bool moveOkay = (currentIndex+1 < size) && (size == currentSize); bool moveOkay = (currentIndex+1 < size) && (size == currentSize);
if (moveOkay) { if (moveOkay) {
currentIndex++; currentIndex++;
currentObject = collectionRef[currentIndex]; currentObject = collectionRef[currentIndex];
} else { } else {
currentObject = null; currentObject = null;
} }
return moveOkay; return moveOkay;
} }
public void Reset() { public void Reset() {
currentIndex = -1; currentIndex = -1;
currentObject = null; currentObject = null;
if (collectionRef.Count != currentSize) { if (collectionRef.Count != currentSize) {
throw new InvalidOperationException("Collection modified."); throw new InvalidOperationException("Collection modified.");
} }
} }
#if !SWIG_DOTNET_1 #if !SWIG_DOTNET_1
public void Dispose() { public void Dispose() {
currentIndex = -1; currentIndex = -1;
currentObject = null; currentObject = null;
} }
#endif #endif
} }
public void Clear() { public void Clear() {
cAudioCSharpWrapperPINVOKE.IntVector_Clear(swigCPtr); cAudioCSharpWrapperPINVOKE.IntVector_Clear(swigCPtr);
} }
public void Add(int x) { public void Add(int x) {
cAudioCSharpWrapperPINVOKE.IntVector_Add(swigCPtr, x); cAudioCSharpWrapperPINVOKE.IntVector_Add(swigCPtr, x);
} }
private uint size() { private uint size() {
uint ret = cAudioCSharpWrapperPINVOKE.IntVector_size(swigCPtr); uint ret = cAudioCSharpWrapperPINVOKE.IntVector_size(swigCPtr);
return ret; return ret;
} }
private uint capacity() { private uint capacity() {
uint ret = cAudioCSharpWrapperPINVOKE.IntVector_capacity(swigCPtr); uint ret = cAudioCSharpWrapperPINVOKE.IntVector_capacity(swigCPtr);
return ret; return ret;
} }
private void reserve(uint n) { private void reserve(uint n) {
cAudioCSharpWrapperPINVOKE.IntVector_reserve(swigCPtr, n); cAudioCSharpWrapperPINVOKE.IntVector_reserve(swigCPtr, n);
} }
public IntVector() : this(cAudioCSharpWrapperPINVOKE.new_IntVector__SWIG_0(), true) { public IntVector() : this(cAudioCSharpWrapperPINVOKE.new_IntVector__SWIG_0(), true) {
} }
public IntVector(IntVector other) : this(cAudioCSharpWrapperPINVOKE.new_IntVector__SWIG_1(IntVector.getCPtr(other)), true) { public IntVector(IntVector other) : this(cAudioCSharpWrapperPINVOKE.new_IntVector__SWIG_1(IntVector.getCPtr(other)), true) {
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
} }
public IntVector(int capacity) : this(cAudioCSharpWrapperPINVOKE.new_IntVector__SWIG_2(capacity), true) { public IntVector(int capacity) : this(cAudioCSharpWrapperPINVOKE.new_IntVector__SWIG_2(capacity), true) {
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
} }
private int getitemcopy(int index) { private int getitemcopy(int index) {
int ret = cAudioCSharpWrapperPINVOKE.IntVector_getitemcopy(swigCPtr, index); int ret = cAudioCSharpWrapperPINVOKE.IntVector_getitemcopy(swigCPtr, index);
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
private int getitem(int index) { private int getitem(int index) {
int ret = cAudioCSharpWrapperPINVOKE.IntVector_getitem(swigCPtr, index); int ret = cAudioCSharpWrapperPINVOKE.IntVector_getitem(swigCPtr, index);
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
private void setitem(int index, int val) { private void setitem(int index, int val) {
cAudioCSharpWrapperPINVOKE.IntVector_setitem(swigCPtr, index, val); cAudioCSharpWrapperPINVOKE.IntVector_setitem(swigCPtr, index, val);
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
} }
public void AddRange(IntVector values) { public void AddRange(IntVector values) {
cAudioCSharpWrapperPINVOKE.IntVector_AddRange(swigCPtr, IntVector.getCPtr(values)); cAudioCSharpWrapperPINVOKE.IntVector_AddRange(swigCPtr, IntVector.getCPtr(values));
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
} }
public IntVector GetRange(int index, int count) { public IntVector GetRange(int index, int count) {
IntPtr cPtr = cAudioCSharpWrapperPINVOKE.IntVector_GetRange(swigCPtr, index, count); IntPtr cPtr = cAudioCSharpWrapperPINVOKE.IntVector_GetRange(swigCPtr, index, count);
IntVector ret = (cPtr == IntPtr.Zero) ? null : new IntVector(cPtr, true); IntVector ret = (cPtr == IntPtr.Zero) ? null : new IntVector(cPtr, true);
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public void Insert(int index, int x) { public void Insert(int index, int x) {
cAudioCSharpWrapperPINVOKE.IntVector_Insert(swigCPtr, index, x); cAudioCSharpWrapperPINVOKE.IntVector_Insert(swigCPtr, index, x);
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
} }
public void InsertRange(int index, IntVector values) { public void InsertRange(int index, IntVector values) {
cAudioCSharpWrapperPINVOKE.IntVector_InsertRange(swigCPtr, index, IntVector.getCPtr(values)); cAudioCSharpWrapperPINVOKE.IntVector_InsertRange(swigCPtr, index, IntVector.getCPtr(values));
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
} }
public void RemoveAt(int index) { public void RemoveAt(int index) {
cAudioCSharpWrapperPINVOKE.IntVector_RemoveAt(swigCPtr, index); cAudioCSharpWrapperPINVOKE.IntVector_RemoveAt(swigCPtr, index);
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
} }
public void RemoveRange(int index, int count) { public void RemoveRange(int index, int count) {
cAudioCSharpWrapperPINVOKE.IntVector_RemoveRange(swigCPtr, index, count); cAudioCSharpWrapperPINVOKE.IntVector_RemoveRange(swigCPtr, index, count);
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
} }
public static IntVector Repeat(int value, int count) { public static IntVector Repeat(int value, int count) {
IntPtr cPtr = cAudioCSharpWrapperPINVOKE.IntVector_Repeat(value, count); IntPtr cPtr = cAudioCSharpWrapperPINVOKE.IntVector_Repeat(value, count);
IntVector ret = (cPtr == IntPtr.Zero) ? null : new IntVector(cPtr, true); IntVector ret = (cPtr == IntPtr.Zero) ? null : new IntVector(cPtr, true);
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public void Reverse() { public void Reverse() {
cAudioCSharpWrapperPINVOKE.IntVector_Reverse__SWIG_0(swigCPtr); cAudioCSharpWrapperPINVOKE.IntVector_Reverse__SWIG_0(swigCPtr);
} }
public void Reverse(int index, int count) { public void Reverse(int index, int count) {
cAudioCSharpWrapperPINVOKE.IntVector_Reverse__SWIG_1(swigCPtr, index, count); cAudioCSharpWrapperPINVOKE.IntVector_Reverse__SWIG_1(swigCPtr, index, count);
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
} }
public void SetRange(int index, IntVector values) { public void SetRange(int index, IntVector values) {
cAudioCSharpWrapperPINVOKE.IntVector_SetRange(swigCPtr, index, IntVector.getCPtr(values)); cAudioCSharpWrapperPINVOKE.IntVector_SetRange(swigCPtr, index, IntVector.getCPtr(values));
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
} }
public bool Contains(int value) { public bool Contains(int value) {
bool ret = cAudioCSharpWrapperPINVOKE.IntVector_Contains(swigCPtr, value); bool ret = cAudioCSharpWrapperPINVOKE.IntVector_Contains(swigCPtr, value);
return ret; return ret;
} }
public int IndexOf(int value) { public int IndexOf(int value) {
int ret = cAudioCSharpWrapperPINVOKE.IntVector_IndexOf(swigCPtr, value); int ret = cAudioCSharpWrapperPINVOKE.IntVector_IndexOf(swigCPtr, value);
return ret; return ret;
} }
public int LastIndexOf(int value) { public int LastIndexOf(int value) {
int ret = cAudioCSharpWrapperPINVOKE.IntVector_LastIndexOf(swigCPtr, value); int ret = cAudioCSharpWrapperPINVOKE.IntVector_LastIndexOf(swigCPtr, value);
return ret; return ret;
} }
public bool Remove(int value) { public bool Remove(int value) {
bool ret = cAudioCSharpWrapperPINVOKE.IntVector_Remove(swigCPtr, value); bool ret = cAudioCSharpWrapperPINVOKE.IntVector_Remove(swigCPtr, value);
return ret; return ret;
} }
} }
} }

View File

@ -1,20 +1,20 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4 * Version 2.0.7
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
* ----------------------------------------------------------------------------- */ * ----------------------------------------------------------------------------- */
namespace cAudio { namespace cAudio {
public enum LogLevel { public enum LogLevel {
ELL_DEBUG, ELL_DEBUG,
ELL_INFO, ELL_INFO,
ELL_WARNING, ELL_WARNING,
ELL_ERROR, ELL_ERROR,
ELL_CRITICAL, ELL_CRITICAL,
ELL_COUNT ELL_COUNT
} }
} }

View File

@ -1,30 +1,30 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4 * Version 2.0.7
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
* ----------------------------------------------------------------------------- */ * ----------------------------------------------------------------------------- */
namespace cAudio { namespace cAudio {
using System; using System;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
public class SWIGTYPE_p_cAudio__IAudioEffects { public class SWIGTYPE_p_cAudio__IAudioEffects {
private HandleRef swigCPtr; private HandleRef swigCPtr;
internal SWIGTYPE_p_cAudio__IAudioEffects(IntPtr cPtr, bool futureUse) { internal SWIGTYPE_p_cAudio__IAudioEffects(IntPtr cPtr, bool futureUse) {
swigCPtr = new HandleRef(this, cPtr); swigCPtr = new HandleRef(this, cPtr);
} }
protected SWIGTYPE_p_cAudio__IAudioEffects() { protected SWIGTYPE_p_cAudio__IAudioEffects() {
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
} }
internal static HandleRef getCPtr(SWIGTYPE_p_cAudio__IAudioEffects obj) { internal static HandleRef getCPtr(SWIGTYPE_p_cAudio__IAudioEffects obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
} }
} }
} }

View File

@ -1,30 +1,30 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4 * Version 2.0.7
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
* ----------------------------------------------------------------------------- */ * ----------------------------------------------------------------------------- */
namespace cAudio { namespace cAudio {
using System; using System;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
public class SWIGTYPE_p_float { public class SWIGTYPE_p_float {
private HandleRef swigCPtr; private HandleRef swigCPtr;
internal SWIGTYPE_p_float(IntPtr cPtr, bool futureUse) { internal SWIGTYPE_p_float(IntPtr cPtr, bool futureUse) {
swigCPtr = new HandleRef(this, cPtr); swigCPtr = new HandleRef(this, cPtr);
} }
protected SWIGTYPE_p_float() { protected SWIGTYPE_p_float() {
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
} }
internal static HandleRef getCPtr(SWIGTYPE_p_float obj) { internal static HandleRef getCPtr(SWIGTYPE_p_float obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
} }
} }
} }

View File

@ -1,30 +1,30 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4 * Version 2.0.7
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
* ----------------------------------------------------------------------------- */ * ----------------------------------------------------------------------------- */
namespace cAudio { namespace cAudio {
using System; using System;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
public class SWIGTYPE_p_p_char { public class SWIGTYPE_p_p_char {
private HandleRef swigCPtr; private HandleRef swigCPtr;
internal SWIGTYPE_p_p_char(IntPtr cPtr, bool futureUse) { internal SWIGTYPE_p_p_char(IntPtr cPtr, bool futureUse) {
swigCPtr = new HandleRef(this, cPtr); swigCPtr = new HandleRef(this, cPtr);
} }
protected SWIGTYPE_p_p_char() { protected SWIGTYPE_p_p_char() {
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
} }
internal static HandleRef getCPtr(SWIGTYPE_p_p_char obj) { internal static HandleRef getCPtr(SWIGTYPE_p_p_char obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
} }
} }
} }

View File

@ -1,30 +1,30 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4 * Version 2.0.7
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
* ----------------------------------------------------------------------------- */ * ----------------------------------------------------------------------------- */
namespace cAudio { namespace cAudio {
using System; using System;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
public class SWIGTYPE_p_void { public class SWIGTYPE_p_void {
private HandleRef swigCPtr; private HandleRef swigCPtr;
internal SWIGTYPE_p_void(IntPtr cPtr, bool futureUse) { internal SWIGTYPE_p_void(IntPtr cPtr, bool futureUse) {
swigCPtr = new HandleRef(this, cPtr); swigCPtr = new HandleRef(this, cPtr);
} }
protected SWIGTYPE_p_void() { protected SWIGTYPE_p_void() {
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
} }
internal static HandleRef getCPtr(SWIGTYPE_p_void obj) { internal static HandleRef getCPtr(SWIGTYPE_p_void obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
} }
} }
} }

View File

@ -1,296 +1,296 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4 * Version 2.0.7
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
* ----------------------------------------------------------------------------- */ * ----------------------------------------------------------------------------- */
namespace cAudio { namespace cAudio {
using System; using System;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
public class StringMap : IDisposable public class StringMap : IDisposable
#if !SWIG_DOTNET_1 #if !SWIG_DOTNET_1
, System.Collections.Generic.IDictionary<string, string> , System.Collections.Generic.IDictionary<string, string>
#endif #endif
{ {
private HandleRef swigCPtr; private HandleRef swigCPtr;
protected bool swigCMemOwn; protected bool swigCMemOwn;
internal StringMap(IntPtr cPtr, bool cMemoryOwn) { internal StringMap(IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn; swigCMemOwn = cMemoryOwn;
swigCPtr = new HandleRef(this, cPtr); swigCPtr = new HandleRef(this, cPtr);
} }
internal static HandleRef getCPtr(StringMap obj) { internal static HandleRef getCPtr(StringMap obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
} }
~StringMap() { ~StringMap() {
Dispose(); Dispose();
} }
public virtual void Dispose() { public virtual void Dispose() {
lock(this) { lock(this) {
if (swigCPtr.Handle != IntPtr.Zero) { if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) { if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
cAudioCSharpWrapperPINVOKE.delete_StringMap(swigCPtr); cAudioCSharpWrapperPINVOKE.delete_StringMap(swigCPtr);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
} }
GC.SuppressFinalize(this); GC.SuppressFinalize(this);
} }
} }
public string this[string key] { public string this[string key] {
get { get {
return getitem(key); return getitem(key);
} }
set { set {
setitem(key, value); setitem(key, value);
} }
} }
public bool TryGetValue(string key, out string value) { public bool TryGetValue(string key, out string value) {
if (this.ContainsKey(key)) { if (this.ContainsKey(key)) {
value = this[key]; value = this[key];
return true; return true;
} }
value = default(string); value = default(string);
return false; return false;
} }
public int Count { public int Count {
get { get {
return (int)size(); return (int)size();
} }
} }
public bool IsReadOnly { public bool IsReadOnly {
get { get {
return false; return false;
} }
} }
#if !SWIG_DOTNET_1 #if !SWIG_DOTNET_1
public System.Collections.Generic.ICollection<string> Keys { public System.Collections.Generic.ICollection<string> Keys {
get { get {
System.Collections.Generic.ICollection<string> keys = new System.Collections.Generic.List<string>(); System.Collections.Generic.ICollection<string> keys = new System.Collections.Generic.List<string>();
int size = this.Count; int size = this.Count;
if (size > 0) { if (size > 0) {
IntPtr iter = create_iterator_begin(); IntPtr iter = create_iterator_begin();
for (int i = 0; i < size; i++) { for (int i = 0; i < size; i++) {
keys.Add(get_next_key(iter)); keys.Add(get_next_key(iter));
} }
destroy_iterator(iter); destroy_iterator(iter);
} }
return keys; return keys;
} }
} }
public System.Collections.Generic.ICollection<string> Values { public System.Collections.Generic.ICollection<string> Values {
get { get {
System.Collections.Generic.ICollection<string> vals = new System.Collections.Generic.List<string>(); System.Collections.Generic.ICollection<string> vals = new System.Collections.Generic.List<string>();
foreach (System.Collections.Generic.KeyValuePair<string, string> pair in this) { foreach (System.Collections.Generic.KeyValuePair<string, string> pair in this) {
vals.Add(pair.Value); vals.Add(pair.Value);
} }
return vals; return vals;
} }
} }
public void Add(System.Collections.Generic.KeyValuePair<string, string> item) { public void Add(System.Collections.Generic.KeyValuePair<string, string> item) {
Add(item.Key, item.Value); Add(item.Key, item.Value);
} }
public bool Remove(System.Collections.Generic.KeyValuePair<string, string> item) { public bool Remove(System.Collections.Generic.KeyValuePair<string, string> item) {
if (Contains(item)) { if (Contains(item)) {
return Remove(item.Key); return Remove(item.Key);
} else { } else {
return false; return false;
} }
} }
public bool Contains(System.Collections.Generic.KeyValuePair<string, string> item) { public bool Contains(System.Collections.Generic.KeyValuePair<string, string> item) {
if (this[item.Key] == item.Value) { if (this[item.Key] == item.Value) {
return true; return true;
} else { } else {
return false; return false;
} }
} }
public void CopyTo(System.Collections.Generic.KeyValuePair<string, string>[] array) { public void CopyTo(System.Collections.Generic.KeyValuePair<string, string>[] array) {
CopyTo(array, 0); CopyTo(array, 0);
} }
public void CopyTo(System.Collections.Generic.KeyValuePair<string, string>[] array, int arrayIndex) { public void CopyTo(System.Collections.Generic.KeyValuePair<string, string>[] array, int arrayIndex) {
if (array == null) if (array == null)
throw new ArgumentNullException("array"); throw new ArgumentNullException("array");
if (arrayIndex < 0) if (arrayIndex < 0)
throw new ArgumentOutOfRangeException("arrayIndex", "Value is less than zero"); throw new ArgumentOutOfRangeException("arrayIndex", "Value is less than zero");
if (array.Rank > 1) if (array.Rank > 1)
throw new ArgumentException("Multi dimensional array.", "array"); throw new ArgumentException("Multi dimensional array.", "array");
if (arrayIndex+this.Count > array.Length) if (arrayIndex+this.Count > array.Length)
throw new ArgumentException("Number of elements to copy is too large."); throw new ArgumentException("Number of elements to copy is too large.");
System.Collections.Generic.IList<string> keyList = new System.Collections.Generic.List<string>(this.Keys); System.Collections.Generic.IList<string> keyList = new System.Collections.Generic.List<string>(this.Keys);
for (int i = 0; i < keyList.Count; i++) { for (int i = 0; i < keyList.Count; i++) {
string currentKey = keyList[i]; string currentKey = keyList[i];
array.SetValue(new System.Collections.Generic.KeyValuePair<string, string>(currentKey, this[currentKey]), arrayIndex+i); array.SetValue(new System.Collections.Generic.KeyValuePair<string, string>(currentKey, this[currentKey]), arrayIndex+i);
} }
} }
System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<string, string>> System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string, string>>.GetEnumerator() { System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<string, string>> System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string, string>>.GetEnumerator() {
return new StringMapEnumerator(this); return new StringMapEnumerator(this);
} }
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() {
return new StringMapEnumerator(this); return new StringMapEnumerator(this);
} }
public StringMapEnumerator GetEnumerator() { public StringMapEnumerator GetEnumerator() {
return new StringMapEnumerator(this); return new StringMapEnumerator(this);
} }
// Type-safe enumerator // Type-safe enumerator
/// Note that the IEnumerator documentation requires an InvalidOperationException to be thrown /// 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 /// 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 /// 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. /// tricky to detect unmanaged code that modifies the collection under our feet.
public sealed class StringMapEnumerator : System.Collections.IEnumerator, public sealed class StringMapEnumerator : System.Collections.IEnumerator,
System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<string, string>> System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<string, string>>
{ {
private StringMap collectionRef; private StringMap collectionRef;
private System.Collections.Generic.IList<string> keyCollection; private System.Collections.Generic.IList<string> keyCollection;
private int currentIndex; private int currentIndex;
private object currentObject; private object currentObject;
private int currentSize; private int currentSize;
public StringMapEnumerator(StringMap collection) { public StringMapEnumerator(StringMap collection) {
collectionRef = collection; collectionRef = collection;
keyCollection = new System.Collections.Generic.List<string>(collection.Keys); keyCollection = new System.Collections.Generic.List<string>(collection.Keys);
currentIndex = -1; currentIndex = -1;
currentObject = null; currentObject = null;
currentSize = collectionRef.Count; currentSize = collectionRef.Count;
} }
// Type-safe iterator Current // Type-safe iterator Current
public System.Collections.Generic.KeyValuePair<string, string> Current { public System.Collections.Generic.KeyValuePair<string, string> Current {
get { get {
if (currentIndex == -1) if (currentIndex == -1)
throw new InvalidOperationException("Enumeration not started."); throw new InvalidOperationException("Enumeration not started.");
if (currentIndex > currentSize - 1) if (currentIndex > currentSize - 1)
throw new InvalidOperationException("Enumeration finished."); throw new InvalidOperationException("Enumeration finished.");
if (currentObject == null) if (currentObject == null)
throw new InvalidOperationException("Collection modified."); throw new InvalidOperationException("Collection modified.");
return (System.Collections.Generic.KeyValuePair<string, string>)currentObject; return (System.Collections.Generic.KeyValuePair<string, string>)currentObject;
} }
} }
// Type-unsafe IEnumerator.Current // Type-unsafe IEnumerator.Current
object System.Collections.IEnumerator.Current { object System.Collections.IEnumerator.Current {
get { get {
return Current; return Current;
} }
} }
public bool MoveNext() { public bool MoveNext() {
int size = collectionRef.Count; int size = collectionRef.Count;
bool moveOkay = (currentIndex+1 < size) && (size == currentSize); bool moveOkay = (currentIndex+1 < size) && (size == currentSize);
if (moveOkay) { if (moveOkay) {
currentIndex++; currentIndex++;
string currentKey = keyCollection[currentIndex]; string currentKey = keyCollection[currentIndex];
currentObject = new System.Collections.Generic.KeyValuePair<string, string>(currentKey, collectionRef[currentKey]); currentObject = new System.Collections.Generic.KeyValuePair<string, string>(currentKey, collectionRef[currentKey]);
} else { } else {
currentObject = null; currentObject = null;
} }
return moveOkay; return moveOkay;
} }
public void Reset() { public void Reset() {
currentIndex = -1; currentIndex = -1;
currentObject = null; currentObject = null;
if (collectionRef.Count != currentSize) { if (collectionRef.Count != currentSize) {
throw new InvalidOperationException("Collection modified."); throw new InvalidOperationException("Collection modified.");
} }
} }
public void Dispose() { public void Dispose() {
currentIndex = -1; currentIndex = -1;
currentObject = null; currentObject = null;
} }
} }
#endif #endif
public StringMap() : this(cAudioCSharpWrapperPINVOKE.new_StringMap__SWIG_0(), true) { public StringMap() : this(cAudioCSharpWrapperPINVOKE.new_StringMap__SWIG_0(), true) {
} }
public StringMap(StringMap other) : this(cAudioCSharpWrapperPINVOKE.new_StringMap__SWIG_1(StringMap.getCPtr(other)), true) { public StringMap(StringMap other) : this(cAudioCSharpWrapperPINVOKE.new_StringMap__SWIG_1(StringMap.getCPtr(other)), true) {
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
} }
private uint size() { private uint size() {
uint ret = cAudioCSharpWrapperPINVOKE.StringMap_size(swigCPtr); uint ret = cAudioCSharpWrapperPINVOKE.StringMap_size(swigCPtr);
return ret; return ret;
} }
public bool empty() { public bool empty() {
bool ret = cAudioCSharpWrapperPINVOKE.StringMap_empty(swigCPtr); bool ret = cAudioCSharpWrapperPINVOKE.StringMap_empty(swigCPtr);
return ret; return ret;
} }
public void Clear() { public void Clear() {
cAudioCSharpWrapperPINVOKE.StringMap_Clear(swigCPtr); cAudioCSharpWrapperPINVOKE.StringMap_Clear(swigCPtr);
} }
private string getitem(string key) { private string getitem(string key) {
string ret = cAudioCSharpWrapperPINVOKE.StringMap_getitem(swigCPtr, key); string ret = cAudioCSharpWrapperPINVOKE.StringMap_getitem(swigCPtr, key);
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
private void setitem(string key, string x) { private void setitem(string key, string x) {
cAudioCSharpWrapperPINVOKE.StringMap_setitem(swigCPtr, key, x); cAudioCSharpWrapperPINVOKE.StringMap_setitem(swigCPtr, key, x);
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
} }
public bool ContainsKey(string key) { public bool ContainsKey(string key) {
bool ret = cAudioCSharpWrapperPINVOKE.StringMap_ContainsKey(swigCPtr, key); bool ret = cAudioCSharpWrapperPINVOKE.StringMap_ContainsKey(swigCPtr, key);
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public void Add(string key, string val) { public void Add(string key, string val) {
cAudioCSharpWrapperPINVOKE.StringMap_Add(swigCPtr, key, val); cAudioCSharpWrapperPINVOKE.StringMap_Add(swigCPtr, key, val);
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
} }
public bool Remove(string key) { public bool Remove(string key) {
bool ret = cAudioCSharpWrapperPINVOKE.StringMap_Remove(swigCPtr, key); bool ret = cAudioCSharpWrapperPINVOKE.StringMap_Remove(swigCPtr, key);
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
private IntPtr create_iterator_begin() { private IntPtr create_iterator_begin() {
IntPtr ret = cAudioCSharpWrapperPINVOKE.StringMap_create_iterator_begin(swigCPtr); IntPtr ret = cAudioCSharpWrapperPINVOKE.StringMap_create_iterator_begin(swigCPtr);
return ret; return ret;
} }
private string get_next_key(IntPtr swigiterator) { private string get_next_key(IntPtr swigiterator) {
string ret = cAudioCSharpWrapperPINVOKE.StringMap_get_next_key(swigCPtr, swigiterator); string ret = cAudioCSharpWrapperPINVOKE.StringMap_get_next_key(swigCPtr, swigiterator);
return ret; return ret;
} }
private void destroy_iterator(IntPtr swigiterator) { private void destroy_iterator(IntPtr swigiterator) {
cAudioCSharpWrapperPINVOKE.StringMap_destroy_iterator(swigCPtr, swigiterator); cAudioCSharpWrapperPINVOKE.StringMap_destroy_iterator(swigCPtr, swigiterator);
} }
} }
} }

View File

@ -1,354 +1,354 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4 * Version 2.0.7
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
* ----------------------------------------------------------------------------- */ * ----------------------------------------------------------------------------- */
namespace cAudio { namespace cAudio {
using System; using System;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
public class StringVector : IDisposable, System.Collections.IEnumerable public class StringVector : IDisposable, System.Collections.IEnumerable
#if !SWIG_DOTNET_1 #if !SWIG_DOTNET_1
, System.Collections.Generic.IList<string> , System.Collections.Generic.IList<string>
#endif #endif
{ {
private HandleRef swigCPtr; private HandleRef swigCPtr;
protected bool swigCMemOwn; protected bool swigCMemOwn;
internal StringVector(IntPtr cPtr, bool cMemoryOwn) { internal StringVector(IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn; swigCMemOwn = cMemoryOwn;
swigCPtr = new HandleRef(this, cPtr); swigCPtr = new HandleRef(this, cPtr);
} }
internal static HandleRef getCPtr(StringVector obj) { internal static HandleRef getCPtr(StringVector obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
} }
~StringVector() { ~StringVector() {
Dispose(); Dispose();
} }
public virtual void Dispose() { public virtual void Dispose() {
lock(this) { lock(this) {
if (swigCPtr.Handle != IntPtr.Zero) { if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) { if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
cAudioCSharpWrapperPINVOKE.delete_StringVector(swigCPtr); cAudioCSharpWrapperPINVOKE.delete_StringVector(swigCPtr);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
} }
GC.SuppressFinalize(this); GC.SuppressFinalize(this);
} }
} }
public StringVector(System.Collections.ICollection c) : this() { public StringVector(System.Collections.ICollection c) : this() {
if (c == null) if (c == null)
throw new ArgumentNullException("c"); throw new ArgumentNullException("c");
foreach (string element in c) { foreach (string element in c) {
this.Add(element); this.Add(element);
} }
} }
public bool IsFixedSize { public bool IsFixedSize {
get { get {
return false; return false;
} }
} }
public bool IsReadOnly { public bool IsReadOnly {
get { get {
return false; return false;
} }
} }
public string this[int index] { public string this[int index] {
get { get {
return getitem(index); return getitem(index);
} }
set { set {
setitem(index, value); setitem(index, value);
} }
} }
public int Capacity { public int Capacity {
get { get {
return (int)capacity(); return (int)capacity();
} }
set { set {
if (value < size()) if (value < size())
throw new ArgumentOutOfRangeException("Capacity"); throw new ArgumentOutOfRangeException("Capacity");
reserve((uint)value); reserve((uint)value);
} }
} }
public int Count { public int Count {
get { get {
return (int)size(); return (int)size();
} }
} }
public bool IsSynchronized { public bool IsSynchronized {
get { get {
return false; return false;
} }
} }
#if SWIG_DOTNET_1 #if SWIG_DOTNET_1
public void CopyTo(System.Array array) public void CopyTo(System.Array array)
#else #else
public void CopyTo(string[] array) public void CopyTo(string[] array)
#endif #endif
{ {
CopyTo(0, array, 0, this.Count); CopyTo(0, array, 0, this.Count);
} }
#if SWIG_DOTNET_1 #if SWIG_DOTNET_1
public void CopyTo(System.Array array, int arrayIndex) public void CopyTo(System.Array array, int arrayIndex)
#else #else
public void CopyTo(string[] array, int arrayIndex) public void CopyTo(string[] array, int arrayIndex)
#endif #endif
{ {
CopyTo(0, array, arrayIndex, this.Count); CopyTo(0, array, arrayIndex, this.Count);
} }
#if SWIG_DOTNET_1 #if SWIG_DOTNET_1
public void CopyTo(int index, System.Array array, int arrayIndex, int count) public void CopyTo(int index, System.Array array, int arrayIndex, int count)
#else #else
public void CopyTo(int index, string[] array, int arrayIndex, int count) public void CopyTo(int index, string[] array, int arrayIndex, int count)
#endif #endif
{ {
if (array == null) if (array == null)
throw new ArgumentNullException("array"); throw new ArgumentNullException("array");
if (index < 0) if (index < 0)
throw new ArgumentOutOfRangeException("index", "Value is less than zero"); throw new ArgumentOutOfRangeException("index", "Value is less than zero");
if (arrayIndex < 0) if (arrayIndex < 0)
throw new ArgumentOutOfRangeException("arrayIndex", "Value is less than zero"); throw new ArgumentOutOfRangeException("arrayIndex", "Value is less than zero");
if (count < 0) if (count < 0)
throw new ArgumentOutOfRangeException("count", "Value is less than zero"); throw new ArgumentOutOfRangeException("count", "Value is less than zero");
if (array.Rank > 1) if (array.Rank > 1)
throw new ArgumentException("Multi dimensional array.", "array"); throw new ArgumentException("Multi dimensional array.", "array");
if (index+count > this.Count || arrayIndex+count > array.Length) if (index+count > this.Count || arrayIndex+count > array.Length)
throw new ArgumentException("Number of elements to copy is too large."); throw new ArgumentException("Number of elements to copy is too large.");
for (int i=0; i<count; i++) for (int i=0; i<count; i++)
array.SetValue(getitemcopy(index+i), arrayIndex+i); array.SetValue(getitemcopy(index+i), arrayIndex+i);
} }
#if !SWIG_DOTNET_1 #if !SWIG_DOTNET_1
System.Collections.Generic.IEnumerator<string> System.Collections.Generic.IEnumerable<string>.GetEnumerator() { System.Collections.Generic.IEnumerator<string> System.Collections.Generic.IEnumerable<string>.GetEnumerator() {
return new StringVectorEnumerator(this); return new StringVectorEnumerator(this);
} }
#endif #endif
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() {
return new StringVectorEnumerator(this); return new StringVectorEnumerator(this);
} }
public StringVectorEnumerator GetEnumerator() { public StringVectorEnumerator GetEnumerator() {
return new StringVectorEnumerator(this); return new StringVectorEnumerator(this);
} }
// Type-safe enumerator // Type-safe enumerator
/// Note that the IEnumerator documentation requires an InvalidOperationException to be thrown /// 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 /// 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 /// 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. /// tricky to detect unmanaged code that modifies the collection under our feet.
public sealed class StringVectorEnumerator : System.Collections.IEnumerator public sealed class StringVectorEnumerator : System.Collections.IEnumerator
#if !SWIG_DOTNET_1 #if !SWIG_DOTNET_1
, System.Collections.Generic.IEnumerator<string> , System.Collections.Generic.IEnumerator<string>
#endif #endif
{ {
private StringVector collectionRef; private StringVector collectionRef;
private int currentIndex; private int currentIndex;
private object currentObject; private object currentObject;
private int currentSize; private int currentSize;
public StringVectorEnumerator(StringVector collection) { public StringVectorEnumerator(StringVector collection) {
collectionRef = collection; collectionRef = collection;
currentIndex = -1; currentIndex = -1;
currentObject = null; currentObject = null;
currentSize = collectionRef.Count; currentSize = collectionRef.Count;
} }
// Type-safe iterator Current // Type-safe iterator Current
public string Current { public string Current {
get { get {
if (currentIndex == -1) if (currentIndex == -1)
throw new InvalidOperationException("Enumeration not started."); throw new InvalidOperationException("Enumeration not started.");
if (currentIndex > currentSize - 1) if (currentIndex > currentSize - 1)
throw new InvalidOperationException("Enumeration finished."); throw new InvalidOperationException("Enumeration finished.");
if (currentObject == null) if (currentObject == null)
throw new InvalidOperationException("Collection modified."); throw new InvalidOperationException("Collection modified.");
return (string)currentObject; return (string)currentObject;
} }
} }
// Type-unsafe IEnumerator.Current // Type-unsafe IEnumerator.Current
object System.Collections.IEnumerator.Current { object System.Collections.IEnumerator.Current {
get { get {
return Current; return Current;
} }
} }
public bool MoveNext() { public bool MoveNext() {
int size = collectionRef.Count; int size = collectionRef.Count;
bool moveOkay = (currentIndex+1 < size) && (size == currentSize); bool moveOkay = (currentIndex+1 < size) && (size == currentSize);
if (moveOkay) { if (moveOkay) {
currentIndex++; currentIndex++;
currentObject = collectionRef[currentIndex]; currentObject = collectionRef[currentIndex];
} else { } else {
currentObject = null; currentObject = null;
} }
return moveOkay; return moveOkay;
} }
public void Reset() { public void Reset() {
currentIndex = -1; currentIndex = -1;
currentObject = null; currentObject = null;
if (collectionRef.Count != currentSize) { if (collectionRef.Count != currentSize) {
throw new InvalidOperationException("Collection modified."); throw new InvalidOperationException("Collection modified.");
} }
} }
#if !SWIG_DOTNET_1 #if !SWIG_DOTNET_1
public void Dispose() { public void Dispose() {
currentIndex = -1; currentIndex = -1;
currentObject = null; currentObject = null;
} }
#endif #endif
} }
public void Clear() { public void Clear() {
cAudioCSharpWrapperPINVOKE.StringVector_Clear(swigCPtr); cAudioCSharpWrapperPINVOKE.StringVector_Clear(swigCPtr);
} }
public void Add(string x) { public void Add(string x) {
cAudioCSharpWrapperPINVOKE.StringVector_Add(swigCPtr, x); cAudioCSharpWrapperPINVOKE.StringVector_Add(swigCPtr, x);
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
} }
private uint size() { private uint size() {
uint ret = cAudioCSharpWrapperPINVOKE.StringVector_size(swigCPtr); uint ret = cAudioCSharpWrapperPINVOKE.StringVector_size(swigCPtr);
return ret; return ret;
} }
private uint capacity() { private uint capacity() {
uint ret = cAudioCSharpWrapperPINVOKE.StringVector_capacity(swigCPtr); uint ret = cAudioCSharpWrapperPINVOKE.StringVector_capacity(swigCPtr);
return ret; return ret;
} }
private void reserve(uint n) { private void reserve(uint n) {
cAudioCSharpWrapperPINVOKE.StringVector_reserve(swigCPtr, n); cAudioCSharpWrapperPINVOKE.StringVector_reserve(swigCPtr, n);
} }
public StringVector() : this(cAudioCSharpWrapperPINVOKE.new_StringVector__SWIG_0(), true) { public StringVector() : this(cAudioCSharpWrapperPINVOKE.new_StringVector__SWIG_0(), true) {
} }
public StringVector(StringVector other) : this(cAudioCSharpWrapperPINVOKE.new_StringVector__SWIG_1(StringVector.getCPtr(other)), true) { public StringVector(StringVector other) : this(cAudioCSharpWrapperPINVOKE.new_StringVector__SWIG_1(StringVector.getCPtr(other)), true) {
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
} }
public StringVector(int capacity) : this(cAudioCSharpWrapperPINVOKE.new_StringVector__SWIG_2(capacity), true) { public StringVector(int capacity) : this(cAudioCSharpWrapperPINVOKE.new_StringVector__SWIG_2(capacity), true) {
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
} }
private string getitemcopy(int index) { private string getitemcopy(int index) {
string ret = cAudioCSharpWrapperPINVOKE.StringVector_getitemcopy(swigCPtr, index); string ret = cAudioCSharpWrapperPINVOKE.StringVector_getitemcopy(swigCPtr, index);
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
private string getitem(int index) { private string getitem(int index) {
string ret = cAudioCSharpWrapperPINVOKE.StringVector_getitem(swigCPtr, index); string ret = cAudioCSharpWrapperPINVOKE.StringVector_getitem(swigCPtr, index);
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
private void setitem(int index, string val) { private void setitem(int index, string val) {
cAudioCSharpWrapperPINVOKE.StringVector_setitem(swigCPtr, index, val); cAudioCSharpWrapperPINVOKE.StringVector_setitem(swigCPtr, index, val);
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
} }
public void AddRange(StringVector values) { public void AddRange(StringVector values) {
cAudioCSharpWrapperPINVOKE.StringVector_AddRange(swigCPtr, StringVector.getCPtr(values)); cAudioCSharpWrapperPINVOKE.StringVector_AddRange(swigCPtr, StringVector.getCPtr(values));
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
} }
public StringVector GetRange(int index, int count) { public StringVector GetRange(int index, int count) {
IntPtr cPtr = cAudioCSharpWrapperPINVOKE.StringVector_GetRange(swigCPtr, index, count); IntPtr cPtr = cAudioCSharpWrapperPINVOKE.StringVector_GetRange(swigCPtr, index, count);
StringVector ret = (cPtr == IntPtr.Zero) ? null : new StringVector(cPtr, true); StringVector ret = (cPtr == IntPtr.Zero) ? null : new StringVector(cPtr, true);
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public void Insert(int index, string x) { public void Insert(int index, string x) {
cAudioCSharpWrapperPINVOKE.StringVector_Insert(swigCPtr, index, x); cAudioCSharpWrapperPINVOKE.StringVector_Insert(swigCPtr, index, x);
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
} }
public void InsertRange(int index, StringVector values) { public void InsertRange(int index, StringVector values) {
cAudioCSharpWrapperPINVOKE.StringVector_InsertRange(swigCPtr, index, StringVector.getCPtr(values)); cAudioCSharpWrapperPINVOKE.StringVector_InsertRange(swigCPtr, index, StringVector.getCPtr(values));
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
} }
public void RemoveAt(int index) { public void RemoveAt(int index) {
cAudioCSharpWrapperPINVOKE.StringVector_RemoveAt(swigCPtr, index); cAudioCSharpWrapperPINVOKE.StringVector_RemoveAt(swigCPtr, index);
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
} }
public void RemoveRange(int index, int count) { public void RemoveRange(int index, int count) {
cAudioCSharpWrapperPINVOKE.StringVector_RemoveRange(swigCPtr, index, count); cAudioCSharpWrapperPINVOKE.StringVector_RemoveRange(swigCPtr, index, count);
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
} }
public static StringVector Repeat(string value, int count) { public static StringVector Repeat(string value, int count) {
IntPtr cPtr = cAudioCSharpWrapperPINVOKE.StringVector_Repeat(value, count); IntPtr cPtr = cAudioCSharpWrapperPINVOKE.StringVector_Repeat(value, count);
StringVector ret = (cPtr == IntPtr.Zero) ? null : new StringVector(cPtr, true); StringVector ret = (cPtr == IntPtr.Zero) ? null : new StringVector(cPtr, true);
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public void Reverse() { public void Reverse() {
cAudioCSharpWrapperPINVOKE.StringVector_Reverse__SWIG_0(swigCPtr); cAudioCSharpWrapperPINVOKE.StringVector_Reverse__SWIG_0(swigCPtr);
} }
public void Reverse(int index, int count) { public void Reverse(int index, int count) {
cAudioCSharpWrapperPINVOKE.StringVector_Reverse__SWIG_1(swigCPtr, index, count); cAudioCSharpWrapperPINVOKE.StringVector_Reverse__SWIG_1(swigCPtr, index, count);
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
} }
public void SetRange(int index, StringVector values) { public void SetRange(int index, StringVector values) {
cAudioCSharpWrapperPINVOKE.StringVector_SetRange(swigCPtr, index, StringVector.getCPtr(values)); cAudioCSharpWrapperPINVOKE.StringVector_SetRange(swigCPtr, index, StringVector.getCPtr(values));
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
} }
public bool Contains(string value) { public bool Contains(string value) {
bool ret = cAudioCSharpWrapperPINVOKE.StringVector_Contains(swigCPtr, value); bool ret = cAudioCSharpWrapperPINVOKE.StringVector_Contains(swigCPtr, value);
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public int IndexOf(string value) { public int IndexOf(string value) {
int ret = cAudioCSharpWrapperPINVOKE.StringVector_IndexOf(swigCPtr, value); int ret = cAudioCSharpWrapperPINVOKE.StringVector_IndexOf(swigCPtr, value);
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public int LastIndexOf(string value) { public int LastIndexOf(string value) {
int ret = cAudioCSharpWrapperPINVOKE.StringVector_LastIndexOf(swigCPtr, value); int ret = cAudioCSharpWrapperPINVOKE.StringVector_LastIndexOf(swigCPtr, value);
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public bool Remove(string value) { public bool Remove(string value) {
bool ret = cAudioCSharpWrapperPINVOKE.StringVector_Remove(swigCPtr, value); bool ret = cAudioCSharpWrapperPINVOKE.StringVector_Remove(swigCPtr, value);
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
} }
} }

View File

@ -1,148 +1,148 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4 * Version 2.0.7
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
* ----------------------------------------------------------------------------- */ * ----------------------------------------------------------------------------- */
namespace cAudio { namespace cAudio {
using System; using System;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
public class cAudioCSharpWrapper { public class cAudioCSharpWrapper {
public static string toWINSTR(string str) { public static string toWINSTR(string str) {
string ret = cAudioCSharpWrapperPINVOKE.toWINSTR(str); string ret = cAudioCSharpWrapperPINVOKE.toWINSTR(str);
return ret; return ret;
} }
public static string toUTF8(string str) { public static string toUTF8(string str) {
string ret = cAudioCSharpWrapperPINVOKE.toUTF8(str); string ret = cAudioCSharpWrapperPINVOKE.toUTF8(str);
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public static string fromUTF8(string str) { public static string fromUTF8(string str) {
string ret = cAudioCSharpWrapperPINVOKE.fromUTF8(str); string ret = cAudioCSharpWrapperPINVOKE.fromUTF8(str);
return ret; return ret;
} }
public static IMemoryProvider getMemoryProvider() { public static IMemoryProvider getMemoryProvider() {
IntPtr cPtr = cAudioCSharpWrapperPINVOKE.getMemoryProvider(); IntPtr cPtr = cAudioCSharpWrapperPINVOKE.getMemoryProvider();
IMemoryProvider ret = (cPtr == IntPtr.Zero) ? null : new IMemoryProvider(cPtr, false); IMemoryProvider ret = (cPtr == IntPtr.Zero) ? null : new IMemoryProvider(cPtr, false);
return ret; return ret;
} }
public static void cAudioSleep(uint ms) { public static void cAudioSleep(uint ms) {
cAudioCSharpWrapperPINVOKE.cAudioSleep(ms); cAudioCSharpWrapperPINVOKE.cAudioSleep(ms);
} }
public static float Epsilon { public static float Epsilon {
get { get {
float ret = cAudioCSharpWrapperPINVOKE.Epsilon_get(); float ret = cAudioCSharpWrapperPINVOKE.Epsilon_get();
return ret; return ret;
} }
} }
public static bool float_equals(float a, float b) { public static bool float_equals(float a, float b) {
bool ret = cAudioCSharpWrapperPINVOKE.float_equals(a, b); bool ret = cAudioCSharpWrapperPINVOKE.float_equals(a, b);
return ret; return ret;
} }
public static SWIGTYPE_p_p_char LogLevelStrings { public static SWIGTYPE_p_p_char LogLevelStrings {
get { get {
IntPtr cPtr = cAudioCSharpWrapperPINVOKE.LogLevelStrings_get(); IntPtr cPtr = cAudioCSharpWrapperPINVOKE.LogLevelStrings_get();
SWIGTYPE_p_p_char ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_p_char(cPtr, false); SWIGTYPE_p_p_char ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_p_char(cPtr, false);
return ret; return ret;
} }
} }
public static IPluginManager getPluginManager() { public static IPluginManager getPluginManager() {
IntPtr cPtr = cAudioCSharpWrapperPINVOKE.getPluginManager(); IntPtr cPtr = cAudioCSharpWrapperPINVOKE.getPluginManager();
IPluginManager ret = (cPtr == IntPtr.Zero) ? null : new IPluginManager(cPtr, false); IPluginManager ret = (cPtr == IntPtr.Zero) ? null : new IPluginManager(cPtr, false);
return ret; return ret;
} }
public static IAudioManager createAudioManager(bool initializeDefault) { public static IAudioManager createAudioManager(bool initializeDefault) {
IntPtr cPtr = cAudioCSharpWrapperPINVOKE.createAudioManager__SWIG_0(initializeDefault); IntPtr cPtr = cAudioCSharpWrapperPINVOKE.createAudioManager__SWIG_0(initializeDefault);
IAudioManager ret = (cPtr == IntPtr.Zero) ? null : new IAudioManager(cPtr, false); IAudioManager ret = (cPtr == IntPtr.Zero) ? null : new IAudioManager(cPtr, false);
return ret; return ret;
} }
public static IAudioManager createAudioManager() { public static IAudioManager createAudioManager() {
IntPtr cPtr = cAudioCSharpWrapperPINVOKE.createAudioManager__SWIG_1(); IntPtr cPtr = cAudioCSharpWrapperPINVOKE.createAudioManager__SWIG_1();
IAudioManager ret = (cPtr == IntPtr.Zero) ? null : new IAudioManager(cPtr, false); IAudioManager ret = (cPtr == IntPtr.Zero) ? null : new IAudioManager(cPtr, false);
return ret; return ret;
} }
public static void destroyAudioManager(IAudioManager manager) { public static void destroyAudioManager(IAudioManager manager) {
cAudioCSharpWrapperPINVOKE.destroyAudioManager(IAudioManager.getCPtr(manager)); cAudioCSharpWrapperPINVOKE.destroyAudioManager(IAudioManager.getCPtr(manager));
} }
public static IAudioCapture createAudioCapture(bool initializeDefault) { public static IAudioCapture createAudioCapture(bool initializeDefault) {
IntPtr cPtr = cAudioCSharpWrapperPINVOKE.createAudioCapture__SWIG_0(initializeDefault); IntPtr cPtr = cAudioCSharpWrapperPINVOKE.createAudioCapture__SWIG_0(initializeDefault);
IAudioCapture ret = (cPtr == IntPtr.Zero) ? null : new IAudioCapture(cPtr, false); IAudioCapture ret = (cPtr == IntPtr.Zero) ? null : new IAudioCapture(cPtr, false);
return ret; return ret;
} }
public static IAudioCapture createAudioCapture() { public static IAudioCapture createAudioCapture() {
IntPtr cPtr = cAudioCSharpWrapperPINVOKE.createAudioCapture__SWIG_1(); IntPtr cPtr = cAudioCSharpWrapperPINVOKE.createAudioCapture__SWIG_1();
IAudioCapture ret = (cPtr == IntPtr.Zero) ? null : new IAudioCapture(cPtr, false); IAudioCapture ret = (cPtr == IntPtr.Zero) ? null : new IAudioCapture(cPtr, false);
return ret; return ret;
} }
public static void destroyAudioCapture(IAudioCapture capture) { public static void destroyAudioCapture(IAudioCapture capture) {
cAudioCSharpWrapperPINVOKE.destroyAudioCapture(IAudioCapture.getCPtr(capture)); cAudioCSharpWrapperPINVOKE.destroyAudioCapture(IAudioCapture.getCPtr(capture));
} }
public static ILogger getLogger() { public static ILogger getLogger() {
IntPtr cPtr = cAudioCSharpWrapperPINVOKE.getLogger(); IntPtr cPtr = cAudioCSharpWrapperPINVOKE.getLogger();
ILogger ret = (cPtr == IntPtr.Zero) ? null : new ILogger(cPtr, false); ILogger ret = (cPtr == IntPtr.Zero) ? null : new ILogger(cPtr, false);
return ret; return ret;
} }
public static IAudioDeviceList createAudioDeviceList(IDeviceType deviceType) { public static IAudioDeviceList createAudioDeviceList(IDeviceType deviceType) {
IntPtr cPtr = cAudioCSharpWrapperPINVOKE.createAudioDeviceList__SWIG_0((int)deviceType); IntPtr cPtr = cAudioCSharpWrapperPINVOKE.createAudioDeviceList__SWIG_0((int)deviceType);
IAudioDeviceList ret = (cPtr == IntPtr.Zero) ? null : new IAudioDeviceList(cPtr, false); IAudioDeviceList ret = (cPtr == IntPtr.Zero) ? null : new IAudioDeviceList(cPtr, false);
return ret; return ret;
} }
public static IAudioDeviceList createAudioDeviceList() { public static IAudioDeviceList createAudioDeviceList() {
IntPtr cPtr = cAudioCSharpWrapperPINVOKE.createAudioDeviceList__SWIG_1(); IntPtr cPtr = cAudioCSharpWrapperPINVOKE.createAudioDeviceList__SWIG_1();
IAudioDeviceList ret = (cPtr == IntPtr.Zero) ? null : new IAudioDeviceList(cPtr, false); IAudioDeviceList ret = (cPtr == IntPtr.Zero) ? null : new IAudioDeviceList(cPtr, false);
return ret; return ret;
} }
public static SWIGTYPE_p_float new_floatp() { public static SWIGTYPE_p_float new_floatp() {
IntPtr cPtr = cAudioCSharpWrapperPINVOKE.new_floatp(); IntPtr cPtr = cAudioCSharpWrapperPINVOKE.new_floatp();
SWIGTYPE_p_float ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_float(cPtr, false); SWIGTYPE_p_float ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_float(cPtr, false);
return ret; return ret;
} }
public static SWIGTYPE_p_float copy_floatp(float value) { public static SWIGTYPE_p_float copy_floatp(float value) {
IntPtr cPtr = cAudioCSharpWrapperPINVOKE.copy_floatp(value); IntPtr cPtr = cAudioCSharpWrapperPINVOKE.copy_floatp(value);
SWIGTYPE_p_float ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_float(cPtr, false); SWIGTYPE_p_float ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_float(cPtr, false);
return ret; return ret;
} }
public static void delete_floatp(SWIGTYPE_p_float self) { public static void delete_floatp(SWIGTYPE_p_float obj) {
cAudioCSharpWrapperPINVOKE.delete_floatp(SWIGTYPE_p_float.getCPtr(self)); cAudioCSharpWrapperPINVOKE.delete_floatp(SWIGTYPE_p_float.getCPtr(obj));
} }
public static void floatp_assign(SWIGTYPE_p_float self, float value) { public static void floatp_assign(SWIGTYPE_p_float obj, float value) {
cAudioCSharpWrapperPINVOKE.floatp_assign(SWIGTYPE_p_float.getCPtr(self), value); cAudioCSharpWrapperPINVOKE.floatp_assign(SWIGTYPE_p_float.getCPtr(obj), value);
} }
public static float floatp_value(SWIGTYPE_p_float self) { public static float floatp_value(SWIGTYPE_p_float obj) {
float ret = cAudioCSharpWrapperPINVOKE.floatp_value(SWIGTYPE_p_float.getCPtr(self)); float ret = cAudioCSharpWrapperPINVOKE.floatp_value(SWIGTYPE_p_float.getCPtr(obj));
return ret; return ret;
} }
public static readonly string CAUDIO_VERSION = cAudioCSharpWrapperPINVOKE.CAUDIO_VERSION_get(); public static readonly string CAUDIO_VERSION = cAudioCSharpWrapperPINVOKE.CAUDIO_VERSION_get();
public static readonly int CAUDIO_SOURCE_BUFFER_SIZE = cAudioCSharpWrapperPINVOKE.CAUDIO_SOURCE_BUFFER_SIZE_get(); public static readonly int CAUDIO_SOURCE_BUFFER_SIZE = cAudioCSharpWrapperPINVOKE.CAUDIO_SOURCE_BUFFER_SIZE_get();
public static readonly int CAUDIO_SOURCE_NUM_BUFFERS = cAudioCSharpWrapperPINVOKE.CAUDIO_SOURCE_NUM_BUFFERS_get(); public static readonly int CAUDIO_SOURCE_NUM_BUFFERS = cAudioCSharpWrapperPINVOKE.CAUDIO_SOURCE_NUM_BUFFERS_get();
public static readonly int CAUDIO_SOURCE_MAX_EFFECT_SLOTS = cAudioCSharpWrapperPINVOKE.CAUDIO_SOURCE_MAX_EFFECT_SLOTS_get(); public static readonly int CAUDIO_SOURCE_MAX_EFFECT_SLOTS = cAudioCSharpWrapperPINVOKE.CAUDIO_SOURCE_MAX_EFFECT_SLOTS_get();
} }
} }

File diff suppressed because it is too large Load Diff

View File

@ -1,316 +1,316 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4 * Version 2.0.7
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
* ----------------------------------------------------------------------------- */ * ----------------------------------------------------------------------------- */
namespace cAudio { namespace cAudio {
using System; using System;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
public class cVector3 : IDisposable { public class cVector3 : IDisposable {
private HandleRef swigCPtr; private HandleRef swigCPtr;
protected bool swigCMemOwn; protected bool swigCMemOwn;
internal cVector3(IntPtr cPtr, bool cMemoryOwn) { internal cVector3(IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn; swigCMemOwn = cMemoryOwn;
swigCPtr = new HandleRef(this, cPtr); swigCPtr = new HandleRef(this, cPtr);
} }
internal static HandleRef getCPtr(cVector3 obj) { internal static HandleRef getCPtr(cVector3 obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
} }
~cVector3() { ~cVector3() {
Dispose(); Dispose();
} }
public virtual void Dispose() { public virtual void Dispose() {
lock(this) { lock(this) {
if (swigCPtr.Handle != IntPtr.Zero) { if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) { if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
cAudioCSharpWrapperPINVOKE.delete_cVector3(swigCPtr); cAudioCSharpWrapperPINVOKE.delete_cVector3(swigCPtr);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
} }
GC.SuppressFinalize(this); GC.SuppressFinalize(this);
} }
} }
public static bool operator>(cVector3 lhs, cVector3 rhs) public static bool operator>(cVector3 lhs, cVector3 rhs)
{ {
return lhs.GreaterThan(rhs); return lhs.GreaterThan(rhs);
} }
public static bool operator>=(cVector3 lhs, cVector3 rhs) public static bool operator>=(cVector3 lhs, cVector3 rhs)
{ {
return lhs.GreaterThan(rhs) || lhs.EqualEqual(rhs); return lhs.GreaterThan(rhs) || lhs.EqualEqual(rhs);
} }
public static bool operator<(cVector3 lhs, cVector3 rhs) public static bool operator<(cVector3 lhs, cVector3 rhs)
{ {
return lhs.LessThan(rhs); return lhs.LessThan(rhs);
} }
public static bool operator<=(cVector3 lhs, cVector3 rhs) public static bool operator<=(cVector3 lhs, cVector3 rhs)
{ {
return lhs.LessThan(rhs) || lhs.EqualEqual(rhs); return lhs.LessThan(rhs) || lhs.EqualEqual(rhs);
} }
public static cVector3 operator+(cVector3 lhs, cVector3 rhs) public static cVector3 operator+(cVector3 lhs, cVector3 rhs)
{ {
return lhs.Plus(rhs); return lhs.Plus(rhs);
} }
public static cVector3 operator*(cVector3 lhs, cVector3 rhs) public static cVector3 operator*(cVector3 lhs, cVector3 rhs)
{ {
return lhs.Multiply(rhs); return lhs.Multiply(rhs);
} }
public static cVector3 operator*(cVector3 lhs, float rhs) public static cVector3 operator*(cVector3 lhs, float rhs)
{ {
return lhs.Multiply(rhs); return lhs.Multiply(rhs);
} }
public static cVector3 operator/(cVector3 lhs, cVector3 rhs) public static cVector3 operator/(cVector3 lhs, cVector3 rhs)
{ {
return lhs.Divide(rhs); return lhs.Divide(rhs);
} }
public static cVector3 operator/(cVector3 lhs, float rhs) public static cVector3 operator/(cVector3 lhs, float rhs)
{ {
return lhs.Divide(rhs); return lhs.Divide(rhs);
} }
public static cVector3 operator-(cVector3 lhs, cVector3 rhs) public static cVector3 operator-(cVector3 lhs, cVector3 rhs)
{ {
return lhs.Minus(rhs); return lhs.Minus(rhs);
} }
public float x { public float x {
set { set {
cAudioCSharpWrapperPINVOKE.cVector3_x_set(swigCPtr, value); cAudioCSharpWrapperPINVOKE.cVector3_x_set(swigCPtr, value);
} }
get { get {
float ret = cAudioCSharpWrapperPINVOKE.cVector3_x_get(swigCPtr); float ret = cAudioCSharpWrapperPINVOKE.cVector3_x_get(swigCPtr);
return ret; return ret;
} }
} }
public float y { public float y {
set { set {
cAudioCSharpWrapperPINVOKE.cVector3_y_set(swigCPtr, value); cAudioCSharpWrapperPINVOKE.cVector3_y_set(swigCPtr, value);
} }
get { get {
float ret = cAudioCSharpWrapperPINVOKE.cVector3_y_get(swigCPtr); float ret = cAudioCSharpWrapperPINVOKE.cVector3_y_get(swigCPtr);
return ret; return ret;
} }
} }
public float z { public float z {
set { set {
cAudioCSharpWrapperPINVOKE.cVector3_z_set(swigCPtr, value); cAudioCSharpWrapperPINVOKE.cVector3_z_set(swigCPtr, value);
} }
get { get {
float ret = cAudioCSharpWrapperPINVOKE.cVector3_z_get(swigCPtr); float ret = cAudioCSharpWrapperPINVOKE.cVector3_z_get(swigCPtr);
return ret; return ret;
} }
} }
public cVector3() : this(cAudioCSharpWrapperPINVOKE.new_cVector3__SWIG_0(), true) { public cVector3() : this(cAudioCSharpWrapperPINVOKE.new_cVector3__SWIG_0(), true) {
} }
public cVector3(float nx, float ny, float nz) : this(cAudioCSharpWrapperPINVOKE.new_cVector3__SWIG_1(nx, ny, nz), true) { public cVector3(float nx, float ny, float nz) : this(cAudioCSharpWrapperPINVOKE.new_cVector3__SWIG_1(nx, ny, nz), true) {
} }
public cVector3(float n) : this(cAudioCSharpWrapperPINVOKE.new_cVector3__SWIG_2(n), true) { public cVector3(float n) : this(cAudioCSharpWrapperPINVOKE.new_cVector3__SWIG_2(n), true) {
} }
public cVector3(cVector3 other) : this(cAudioCSharpWrapperPINVOKE.new_cVector3__SWIG_3(cVector3.getCPtr(other)), true) { public cVector3(cVector3 other) : this(cAudioCSharpWrapperPINVOKE.new_cVector3__SWIG_3(cVector3.getCPtr(other)), true) {
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
} }
public cVector3(SWIGTYPE_p_float vector) : this(cAudioCSharpWrapperPINVOKE.new_cVector3__SWIG_4(SWIGTYPE_p_float.getCPtr(vector)), true) { public cVector3(SWIGTYPE_p_float vector) : this(cAudioCSharpWrapperPINVOKE.new_cVector3__SWIG_4(SWIGTYPE_p_float.getCPtr(vector)), true) {
} }
public cVector3 Minus() { public cVector3 Minus() {
cVector3 ret = new cVector3(cAudioCSharpWrapperPINVOKE.cVector3_Minus__SWIG_0(swigCPtr), true); cVector3 ret = new cVector3(cAudioCSharpWrapperPINVOKE.cVector3_Minus__SWIG_0(swigCPtr), true);
return ret; return ret;
} }
public cVector3 Equal(cVector3 other) { public cVector3 Equal(cVector3 other) {
cVector3 ret = new cVector3(cAudioCSharpWrapperPINVOKE.cVector3_Equal(swigCPtr, cVector3.getCPtr(other)), false); cVector3 ret = new cVector3(cAudioCSharpWrapperPINVOKE.cVector3_Equal(swigCPtr, cVector3.getCPtr(other)), false);
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public cVector3 Plus(cVector3 other) { public cVector3 Plus(cVector3 other) {
cVector3 ret = new cVector3(cAudioCSharpWrapperPINVOKE.cVector3_Plus__SWIG_0(swigCPtr, cVector3.getCPtr(other)), true); cVector3 ret = new cVector3(cAudioCSharpWrapperPINVOKE.cVector3_Plus__SWIG_0(swigCPtr, cVector3.getCPtr(other)), true);
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public cVector3 PlusEqual(cVector3 other) { public cVector3 PlusEqual(cVector3 other) {
cVector3 ret = new cVector3(cAudioCSharpWrapperPINVOKE.cVector3_PlusEqual__SWIG_0(swigCPtr, cVector3.getCPtr(other)), false); cVector3 ret = new cVector3(cAudioCSharpWrapperPINVOKE.cVector3_PlusEqual__SWIG_0(swigCPtr, cVector3.getCPtr(other)), false);
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public cVector3 Plus(float val) { public cVector3 Plus(float val) {
cVector3 ret = new cVector3(cAudioCSharpWrapperPINVOKE.cVector3_Plus__SWIG_1(swigCPtr, val), true); cVector3 ret = new cVector3(cAudioCSharpWrapperPINVOKE.cVector3_Plus__SWIG_1(swigCPtr, val), true);
return ret; return ret;
} }
public cVector3 PlusEqual(float val) { public cVector3 PlusEqual(float val) {
cVector3 ret = new cVector3(cAudioCSharpWrapperPINVOKE.cVector3_PlusEqual__SWIG_1(swigCPtr, val), false); cVector3 ret = new cVector3(cAudioCSharpWrapperPINVOKE.cVector3_PlusEqual__SWIG_1(swigCPtr, val), false);
return ret; return ret;
} }
public cVector3 Minus(cVector3 other) { public cVector3 Minus(cVector3 other) {
cVector3 ret = new cVector3(cAudioCSharpWrapperPINVOKE.cVector3_Minus__SWIG_1(swigCPtr, cVector3.getCPtr(other)), true); cVector3 ret = new cVector3(cAudioCSharpWrapperPINVOKE.cVector3_Minus__SWIG_1(swigCPtr, cVector3.getCPtr(other)), true);
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public cVector3 MinusEqual(cVector3 other) { public cVector3 MinusEqual(cVector3 other) {
cVector3 ret = new cVector3(cAudioCSharpWrapperPINVOKE.cVector3_MinusEqual__SWIG_0(swigCPtr, cVector3.getCPtr(other)), false); cVector3 ret = new cVector3(cAudioCSharpWrapperPINVOKE.cVector3_MinusEqual__SWIG_0(swigCPtr, cVector3.getCPtr(other)), false);
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public cVector3 Minus(float val) { public cVector3 Minus(float val) {
cVector3 ret = new cVector3(cAudioCSharpWrapperPINVOKE.cVector3_Minus__SWIG_2(swigCPtr, val), true); cVector3 ret = new cVector3(cAudioCSharpWrapperPINVOKE.cVector3_Minus__SWIG_2(swigCPtr, val), true);
return ret; return ret;
} }
public cVector3 MinusEqual(float val) { public cVector3 MinusEqual(float val) {
cVector3 ret = new cVector3(cAudioCSharpWrapperPINVOKE.cVector3_MinusEqual__SWIG_1(swigCPtr, val), false); cVector3 ret = new cVector3(cAudioCSharpWrapperPINVOKE.cVector3_MinusEqual__SWIG_1(swigCPtr, val), false);
return ret; return ret;
} }
public cVector3 Multiply(cVector3 other) { public cVector3 Multiply(cVector3 other) {
cVector3 ret = new cVector3(cAudioCSharpWrapperPINVOKE.cVector3_Multiply__SWIG_0(swigCPtr, cVector3.getCPtr(other)), true); cVector3 ret = new cVector3(cAudioCSharpWrapperPINVOKE.cVector3_Multiply__SWIG_0(swigCPtr, cVector3.getCPtr(other)), true);
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public cVector3 MultiplyEqual(cVector3 other) { public cVector3 MultiplyEqual(cVector3 other) {
cVector3 ret = new cVector3(cAudioCSharpWrapperPINVOKE.cVector3_MultiplyEqual__SWIG_0(swigCPtr, cVector3.getCPtr(other)), false); cVector3 ret = new cVector3(cAudioCSharpWrapperPINVOKE.cVector3_MultiplyEqual__SWIG_0(swigCPtr, cVector3.getCPtr(other)), false);
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public cVector3 Multiply(float v) { public cVector3 Multiply(float v) {
cVector3 ret = new cVector3(cAudioCSharpWrapperPINVOKE.cVector3_Multiply__SWIG_1(swigCPtr, v), true); cVector3 ret = new cVector3(cAudioCSharpWrapperPINVOKE.cVector3_Multiply__SWIG_1(swigCPtr, v), true);
return ret; return ret;
} }
public cVector3 MultiplyEqual(float v) { public cVector3 MultiplyEqual(float v) {
cVector3 ret = new cVector3(cAudioCSharpWrapperPINVOKE.cVector3_MultiplyEqual__SWIG_1(swigCPtr, v), false); cVector3 ret = new cVector3(cAudioCSharpWrapperPINVOKE.cVector3_MultiplyEqual__SWIG_1(swigCPtr, v), false);
return ret; return ret;
} }
public cVector3 Divide(cVector3 other) { public cVector3 Divide(cVector3 other) {
cVector3 ret = new cVector3(cAudioCSharpWrapperPINVOKE.cVector3_Divide__SWIG_0(swigCPtr, cVector3.getCPtr(other)), true); cVector3 ret = new cVector3(cAudioCSharpWrapperPINVOKE.cVector3_Divide__SWIG_0(swigCPtr, cVector3.getCPtr(other)), true);
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public cVector3 DivideEqual(cVector3 other) { public cVector3 DivideEqual(cVector3 other) {
cVector3 ret = new cVector3(cAudioCSharpWrapperPINVOKE.cVector3_DivideEqual__SWIG_0(swigCPtr, cVector3.getCPtr(other)), false); cVector3 ret = new cVector3(cAudioCSharpWrapperPINVOKE.cVector3_DivideEqual__SWIG_0(swigCPtr, cVector3.getCPtr(other)), false);
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public cVector3 Divide(float v) { public cVector3 Divide(float v) {
cVector3 ret = new cVector3(cAudioCSharpWrapperPINVOKE.cVector3_Divide__SWIG_1(swigCPtr, v), true); cVector3 ret = new cVector3(cAudioCSharpWrapperPINVOKE.cVector3_Divide__SWIG_1(swigCPtr, v), true);
return ret; return ret;
} }
public cVector3 DivideEqual(float v) { public cVector3 DivideEqual(float v) {
cVector3 ret = new cVector3(cAudioCSharpWrapperPINVOKE.cVector3_DivideEqual__SWIG_1(swigCPtr, v), false); cVector3 ret = new cVector3(cAudioCSharpWrapperPINVOKE.cVector3_DivideEqual__SWIG_1(swigCPtr, v), false);
return ret; return ret;
} }
public bool LessThanEqual(cVector3 other) { public bool LessThanEqual(cVector3 other) {
bool ret = cAudioCSharpWrapperPINVOKE.cVector3_LessThanEqual(swigCPtr, cVector3.getCPtr(other)); bool ret = cAudioCSharpWrapperPINVOKE.cVector3_LessThanEqual(swigCPtr, cVector3.getCPtr(other));
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public bool GreaterThanEqual(cVector3 other) { public bool GreaterThanEqual(cVector3 other) {
bool ret = cAudioCSharpWrapperPINVOKE.cVector3_GreaterThanEqual(swigCPtr, cVector3.getCPtr(other)); bool ret = cAudioCSharpWrapperPINVOKE.cVector3_GreaterThanEqual(swigCPtr, cVector3.getCPtr(other));
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public bool LessThan(cVector3 other) { public bool LessThan(cVector3 other) {
bool ret = cAudioCSharpWrapperPINVOKE.cVector3_LessThan(swigCPtr, cVector3.getCPtr(other)); bool ret = cAudioCSharpWrapperPINVOKE.cVector3_LessThan(swigCPtr, cVector3.getCPtr(other));
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public bool GreaterThan(cVector3 other) { public bool GreaterThan(cVector3 other) {
bool ret = cAudioCSharpWrapperPINVOKE.cVector3_GreaterThan(swigCPtr, cVector3.getCPtr(other)); bool ret = cAudioCSharpWrapperPINVOKE.cVector3_GreaterThan(swigCPtr, cVector3.getCPtr(other));
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public bool EqualEqual(cVector3 other) { public bool EqualEqual(cVector3 other) {
bool ret = cAudioCSharpWrapperPINVOKE.cVector3_EqualEqual(swigCPtr, cVector3.getCPtr(other)); bool ret = cAudioCSharpWrapperPINVOKE.cVector3_EqualEqual(swigCPtr, cVector3.getCPtr(other));
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public bool NotEqual(cVector3 other) { public bool NotEqual(cVector3 other) {
bool ret = cAudioCSharpWrapperPINVOKE.cVector3_NotEqual(swigCPtr, cVector3.getCPtr(other)); bool ret = cAudioCSharpWrapperPINVOKE.cVector3_NotEqual(swigCPtr, cVector3.getCPtr(other));
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public float length() { public float length() {
float ret = cAudioCSharpWrapperPINVOKE.cVector3_length(swigCPtr); float ret = cAudioCSharpWrapperPINVOKE.cVector3_length(swigCPtr);
return ret; return ret;
} }
public void normalize() { public void normalize() {
cAudioCSharpWrapperPINVOKE.cVector3_normalize(swigCPtr); cAudioCSharpWrapperPINVOKE.cVector3_normalize(swigCPtr);
} }
public float dot(cVector3 other) { public float dot(cVector3 other) {
float ret = cAudioCSharpWrapperPINVOKE.cVector3_dot(swigCPtr, cVector3.getCPtr(other)); float ret = cAudioCSharpWrapperPINVOKE.cVector3_dot(swigCPtr, cVector3.getCPtr(other));
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public cVector3 cross(cVector3 other) { public cVector3 cross(cVector3 other) {
cVector3 ret = new cVector3(cAudioCSharpWrapperPINVOKE.cVector3_cross(swigCPtr, cVector3.getCPtr(other)), true); cVector3 ret = new cVector3(cAudioCSharpWrapperPINVOKE.cVector3_cross(swigCPtr, cVector3.getCPtr(other)), true);
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public void set(float nx, float ny, float nz) { public void set(float nx, float ny, float nz) {
cAudioCSharpWrapperPINVOKE.cVector3_set__SWIG_0(swigCPtr, nx, ny, nz); cAudioCSharpWrapperPINVOKE.cVector3_set__SWIG_0(swigCPtr, nx, ny, nz);
} }
public void set(float n) { public void set(float n) {
cAudioCSharpWrapperPINVOKE.cVector3_set__SWIG_1(swigCPtr, n); cAudioCSharpWrapperPINVOKE.cVector3_set__SWIG_1(swigCPtr, n);
} }
public void set(cVector3 other) { public void set(cVector3 other) {
cAudioCSharpWrapperPINVOKE.cVector3_set__SWIG_2(swigCPtr, cVector3.getCPtr(other)); cAudioCSharpWrapperPINVOKE.cVector3_set__SWIG_2(swigCPtr, cVector3.getCPtr(other));
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve(); if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
} }
public void getAsArray(SWIGTYPE_p_float output) { public void getAsArray(SWIGTYPE_p_float output) {
cAudioCSharpWrapperPINVOKE.cVector3_getAsArray(swigCPtr, SWIGTYPE_p_float.getCPtr(output)); cAudioCSharpWrapperPINVOKE.cVector3_getAsArray(swigCPtr, SWIGTYPE_p_float.getCPtr(output));
} }
} }
} }

View File

@ -1,3 +1,3 @@
echo Invoking SWIG... echo Invoking SWIG...
del "..\cAudioCSharp\*.cs" del "..\cAudioCSharp\*.cs"
%SWIG_PATH%\swig.exe -outdir "..\cAudioCSharp" -namespace cAudio -c++ -csharp "%CD%/src/cAudioWrapped.i" swig.exe -outdir "..\cAudioCSharp" -namespace cAudio -c++ -csharp "%CD%/src/cAudioWrapped.i"

File diff suppressed because it is too large Load Diff

View File

@ -1,236 +1,236 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4 * Version 2.0.7
* *
* This file is not intended to be easily readable and contains a number of * This file is not intended to be easily readable and contains a number of
* coding conventions designed to improve portability and efficiency. Do not make * coding conventions designed to improve portability and efficiency. Do not make
* changes to this file unless you know what you are doing--modify the SWIG * changes to this file unless you know what you are doing--modify the SWIG
* interface file instead. * interface file instead.
* ----------------------------------------------------------------------------- */ * ----------------------------------------------------------------------------- */
#ifndef SWIG_cAudioCSharpWrapper_WRAP_H_ #ifndef SWIG_cAudioCSharpWrapper_WRAP_H_
#define SWIG_cAudioCSharpWrapper_WRAP_H_ #define SWIG_cAudioCSharpWrapper_WRAP_H_
class SwigDirector_IDataSource : public cAudio::IDataSource, public Swig::Director { class SwigDirector_IDataSource : public cAudio::IDataSource, public Swig::Director {
public: public:
SwigDirector_IDataSource(); SwigDirector_IDataSource();
virtual ~SwigDirector_IDataSource(); virtual ~SwigDirector_IDataSource();
virtual void grab(); virtual void grab();
virtual bool drop(); virtual bool drop();
virtual bool isValid(); virtual bool isValid();
virtual int getCurrentPos(); virtual int getCurrentPos();
virtual int getSize(); virtual int getSize();
virtual int read(void *output, int size); virtual int read(void *output, int size);
virtual bool seek(int amount, bool relative); virtual bool seek(int amount, bool relative);
typedef void (SWIGSTDCALL* SWIG_Callback0_t)(); typedef void (SWIGSTDCALL* SWIG_Callback0_t)();
typedef unsigned int (SWIGSTDCALL* SWIG_Callback1_t)(); typedef unsigned int (SWIGSTDCALL* SWIG_Callback1_t)();
typedef unsigned int (SWIGSTDCALL* SWIG_Callback2_t)(); typedef unsigned int (SWIGSTDCALL* SWIG_Callback2_t)();
typedef int (SWIGSTDCALL* SWIG_Callback3_t)(); typedef int (SWIGSTDCALL* SWIG_Callback3_t)();
typedef int (SWIGSTDCALL* SWIG_Callback4_t)(); typedef int (SWIGSTDCALL* SWIG_Callback4_t)();
typedef int (SWIGSTDCALL* SWIG_Callback5_t)(void *, int); typedef int (SWIGSTDCALL* SWIG_Callback5_t)(void *, int);
typedef unsigned int (SWIGSTDCALL* SWIG_Callback6_t)(int, unsigned int); typedef unsigned int (SWIGSTDCALL* SWIG_Callback6_t)(int, unsigned int);
void swig_connect_director(SWIG_Callback0_t callbackgrab, SWIG_Callback1_t callbackdrop, SWIG_Callback2_t callbackisValid, SWIG_Callback3_t callbackgetCurrentPos, SWIG_Callback4_t callbackgetSize, SWIG_Callback5_t callbackread, SWIG_Callback6_t callbackseek); void swig_connect_director(SWIG_Callback0_t callbackgrab, SWIG_Callback1_t callbackdrop, SWIG_Callback2_t callbackisValid, SWIG_Callback3_t callbackgetCurrentPos, SWIG_Callback4_t callbackgetSize, SWIG_Callback5_t callbackread, SWIG_Callback6_t callbackseek);
private: private:
SWIG_Callback0_t swig_callbackgrab; SWIG_Callback0_t swig_callbackgrab;
SWIG_Callback1_t swig_callbackdrop; SWIG_Callback1_t swig_callbackdrop;
SWIG_Callback2_t swig_callbackisValid; SWIG_Callback2_t swig_callbackisValid;
SWIG_Callback3_t swig_callbackgetCurrentPos; SWIG_Callback3_t swig_callbackgetCurrentPos;
SWIG_Callback4_t swig_callbackgetSize; SWIG_Callback4_t swig_callbackgetSize;
SWIG_Callback5_t swig_callbackread; SWIG_Callback5_t swig_callbackread;
SWIG_Callback6_t swig_callbackseek; SWIG_Callback6_t swig_callbackseek;
void swig_init_callbacks(); void swig_init_callbacks();
}; };
class SwigDirector_IDataSourceFactory : public cAudio::IDataSourceFactory, public Swig::Director { class SwigDirector_IDataSourceFactory : public cAudio::IDataSourceFactory, public Swig::Director {
public: public:
SwigDirector_IDataSourceFactory(); SwigDirector_IDataSourceFactory();
virtual ~SwigDirector_IDataSourceFactory(); virtual ~SwigDirector_IDataSourceFactory();
virtual cAudio::IDataSource *CreateDataSource(char const *filename, bool streamingRequested); virtual cAudio::IDataSource *CreateDataSource(char const *filename, bool streamingRequested);
typedef void * (SWIGSTDCALL* SWIG_Callback0_t)(char *, unsigned int); typedef void * (SWIGSTDCALL* SWIG_Callback0_t)(char *, unsigned int);
void swig_connect_director(SWIG_Callback0_t callbackCreateDataSource); void swig_connect_director(SWIG_Callback0_t callbackCreateDataSource);
private: private:
SWIG_Callback0_t swig_callbackCreateDataSource; SWIG_Callback0_t swig_callbackCreateDataSource;
void swig_init_callbacks(); void swig_init_callbacks();
}; };
class SwigDirector_ILogReceiver : public cAudio::ILogReceiver, public Swig::Director { class SwigDirector_ILogReceiver : public cAudio::ILogReceiver, public Swig::Director {
public: public:
SwigDirector_ILogReceiver(); SwigDirector_ILogReceiver();
virtual bool OnLogMessage(char const *sender, char const *message, cAudio::LogLevel level, float time); virtual bool OnLogMessage(char const *sender, char const *message, cAudio::LogLevel level, float time);
typedef unsigned int (SWIGSTDCALL* SWIG_Callback0_t)(char *, char *, int, float); typedef unsigned int (SWIGSTDCALL* SWIG_Callback0_t)(char *, char *, int, float);
void swig_connect_director(SWIG_Callback0_t callbackOnLogMessage); void swig_connect_director(SWIG_Callback0_t callbackOnLogMessage);
private: private:
SWIG_Callback0_t swig_callbackOnLogMessage; SWIG_Callback0_t swig_callbackOnLogMessage;
void swig_init_callbacks(); void swig_init_callbacks();
}; };
class SwigDirector_IManagerEventHandler : public cAudio::IManagerEventHandler, public Swig::Director { class SwigDirector_IManagerEventHandler : public cAudio::IManagerEventHandler, public Swig::Director {
public: public:
SwigDirector_IManagerEventHandler(); SwigDirector_IManagerEventHandler();
virtual void onInit(); virtual void onInit();
virtual void onUpdate(); virtual void onUpdate();
virtual void onRelease(); virtual void onRelease();
virtual void onSourceCreate(); virtual void onSourceCreate();
virtual void onDecoderRegister(); virtual void onDecoderRegister();
virtual void onDataSourceRegister(); virtual void onDataSourceRegister();
typedef void (SWIGSTDCALL* SWIG_Callback0_t)(); typedef void (SWIGSTDCALL* SWIG_Callback0_t)();
typedef void (SWIGSTDCALL* SWIG_Callback1_t)(); typedef void (SWIGSTDCALL* SWIG_Callback1_t)();
typedef void (SWIGSTDCALL* SWIG_Callback2_t)(); typedef void (SWIGSTDCALL* SWIG_Callback2_t)();
typedef void (SWIGSTDCALL* SWIG_Callback3_t)(); typedef void (SWIGSTDCALL* SWIG_Callback3_t)();
typedef void (SWIGSTDCALL* SWIG_Callback4_t)(); typedef void (SWIGSTDCALL* SWIG_Callback4_t)();
typedef void (SWIGSTDCALL* SWIG_Callback5_t)(); typedef void (SWIGSTDCALL* SWIG_Callback5_t)();
void swig_connect_director(SWIG_Callback0_t callbackonInit, SWIG_Callback1_t callbackonUpdate, SWIG_Callback2_t callbackonRelease, SWIG_Callback3_t callbackonSourceCreate, SWIG_Callback4_t callbackonDecoderRegister, SWIG_Callback5_t callbackonDataSourceRegister); void swig_connect_director(SWIG_Callback0_t callbackonInit, SWIG_Callback1_t callbackonUpdate, SWIG_Callback2_t callbackonRelease, SWIG_Callback3_t callbackonSourceCreate, SWIG_Callback4_t callbackonDecoderRegister, SWIG_Callback5_t callbackonDataSourceRegister);
private: private:
SWIG_Callback0_t swig_callbackonInit; SWIG_Callback0_t swig_callbackonInit;
SWIG_Callback1_t swig_callbackonUpdate; SWIG_Callback1_t swig_callbackonUpdate;
SWIG_Callback2_t swig_callbackonRelease; SWIG_Callback2_t swig_callbackonRelease;
SWIG_Callback3_t swig_callbackonSourceCreate; SWIG_Callback3_t swig_callbackonSourceCreate;
SWIG_Callback4_t swig_callbackonDecoderRegister; SWIG_Callback4_t swig_callbackonDecoderRegister;
SWIG_Callback5_t swig_callbackonDataSourceRegister; SWIG_Callback5_t swig_callbackonDataSourceRegister;
void swig_init_callbacks(); void swig_init_callbacks();
}; };
class SwigDirector_ISourceEventHandler : public cAudio::ISourceEventHandler, public Swig::Director { class SwigDirector_ISourceEventHandler : public cAudio::ISourceEventHandler, public Swig::Director {
public: public:
SwigDirector_ISourceEventHandler(); SwigDirector_ISourceEventHandler();
virtual void onUpdate(); virtual void onUpdate();
virtual void onRelease(); virtual void onRelease();
virtual void onPlay(); virtual void onPlay();
virtual void onStop(); virtual void onStop();
virtual void onPause(); virtual void onPause();
typedef void (SWIGSTDCALL* SWIG_Callback0_t)(); typedef void (SWIGSTDCALL* SWIG_Callback0_t)();
typedef void (SWIGSTDCALL* SWIG_Callback1_t)(); typedef void (SWIGSTDCALL* SWIG_Callback1_t)();
typedef void (SWIGSTDCALL* SWIG_Callback2_t)(); typedef void (SWIGSTDCALL* SWIG_Callback2_t)();
typedef void (SWIGSTDCALL* SWIG_Callback3_t)(); typedef void (SWIGSTDCALL* SWIG_Callback3_t)();
typedef void (SWIGSTDCALL* SWIG_Callback4_t)(); typedef void (SWIGSTDCALL* SWIG_Callback4_t)();
void swig_connect_director(SWIG_Callback0_t callbackonUpdate, SWIG_Callback1_t callbackonRelease, SWIG_Callback2_t callbackonPlay, SWIG_Callback3_t callbackonStop, SWIG_Callback4_t callbackonPause); void swig_connect_director(SWIG_Callback0_t callbackonUpdate, SWIG_Callback1_t callbackonRelease, SWIG_Callback2_t callbackonPlay, SWIG_Callback3_t callbackonStop, SWIG_Callback4_t callbackonPause);
private: private:
SWIG_Callback0_t swig_callbackonUpdate; SWIG_Callback0_t swig_callbackonUpdate;
SWIG_Callback1_t swig_callbackonRelease; SWIG_Callback1_t swig_callbackonRelease;
SWIG_Callback2_t swig_callbackonPlay; SWIG_Callback2_t swig_callbackonPlay;
SWIG_Callback3_t swig_callbackonStop; SWIG_Callback3_t swig_callbackonStop;
SWIG_Callback4_t swig_callbackonPause; SWIG_Callback4_t swig_callbackonPause;
void swig_init_callbacks(); void swig_init_callbacks();
}; };
class SwigDirector_ICaptureEventHandler : public cAudio::ICaptureEventHandler, public Swig::Director { class SwigDirector_ICaptureEventHandler : public cAudio::ICaptureEventHandler, public Swig::Director {
public: public:
SwigDirector_ICaptureEventHandler(); SwigDirector_ICaptureEventHandler();
virtual void onInit(); virtual void onInit();
virtual void onUpdate(); virtual void onUpdate();
virtual void onRelease(); virtual void onRelease();
virtual void onBeginCapture(); virtual void onBeginCapture();
virtual void onEndCapture(); virtual void onEndCapture();
virtual void onUserRequestBuffer(); virtual void onUserRequestBuffer();
typedef void (SWIGSTDCALL* SWIG_Callback0_t)(); typedef void (SWIGSTDCALL* SWIG_Callback0_t)();
typedef void (SWIGSTDCALL* SWIG_Callback1_t)(); typedef void (SWIGSTDCALL* SWIG_Callback1_t)();
typedef void (SWIGSTDCALL* SWIG_Callback2_t)(); typedef void (SWIGSTDCALL* SWIG_Callback2_t)();
typedef void (SWIGSTDCALL* SWIG_Callback3_t)(); typedef void (SWIGSTDCALL* SWIG_Callback3_t)();
typedef void (SWIGSTDCALL* SWIG_Callback4_t)(); typedef void (SWIGSTDCALL* SWIG_Callback4_t)();
typedef void (SWIGSTDCALL* SWIG_Callback5_t)(); typedef void (SWIGSTDCALL* SWIG_Callback5_t)();
void swig_connect_director(SWIG_Callback0_t callbackonInit, SWIG_Callback1_t callbackonUpdate, SWIG_Callback2_t callbackonRelease, SWIG_Callback3_t callbackonBeginCapture, SWIG_Callback4_t callbackonEndCapture, SWIG_Callback5_t callbackonUserRequestBuffer); void swig_connect_director(SWIG_Callback0_t callbackonInit, SWIG_Callback1_t callbackonUpdate, SWIG_Callback2_t callbackonRelease, SWIG_Callback3_t callbackonBeginCapture, SWIG_Callback4_t callbackonEndCapture, SWIG_Callback5_t callbackonUserRequestBuffer);
private: private:
SWIG_Callback0_t swig_callbackonInit; SWIG_Callback0_t swig_callbackonInit;
SWIG_Callback1_t swig_callbackonUpdate; SWIG_Callback1_t swig_callbackonUpdate;
SWIG_Callback2_t swig_callbackonRelease; SWIG_Callback2_t swig_callbackonRelease;
SWIG_Callback3_t swig_callbackonBeginCapture; SWIG_Callback3_t swig_callbackonBeginCapture;
SWIG_Callback4_t swig_callbackonEndCapture; SWIG_Callback4_t swig_callbackonEndCapture;
SWIG_Callback5_t swig_callbackonUserRequestBuffer; SWIG_Callback5_t swig_callbackonUserRequestBuffer;
void swig_init_callbacks(); void swig_init_callbacks();
}; };
class SwigDirector_IAudioDecoder : public cAudio::IAudioDecoder, public Swig::Director { class SwigDirector_IAudioDecoder : public cAudio::IAudioDecoder, public Swig::Director {
public: public:
SwigDirector_IAudioDecoder(cAudio::IDataSource *stream); SwigDirector_IAudioDecoder(cAudio::IDataSource *stream);
virtual ~SwigDirector_IAudioDecoder(); virtual ~SwigDirector_IAudioDecoder();
virtual void grab(); virtual void grab();
virtual bool drop(); virtual bool drop();
virtual cAudio::AudioFormats getFormat(); virtual cAudio::AudioFormats getFormat();
virtual int getFrequency(); virtual int getFrequency();
virtual bool isSeekingSupported(); virtual bool isSeekingSupported();
virtual bool isValid(); virtual bool isValid();
virtual int readAudioData(void *output, int amount); virtual int readAudioData(void *output, int amount);
virtual bool setPosition(int position, bool relative); virtual bool setPosition(int position, bool relative);
virtual bool seek(float seconds, bool relative); virtual bool seek(float seconds, bool relative);
virtual float getTotalTime(); virtual float getTotalTime();
virtual int getTotalSize(); virtual int getTotalSize();
virtual int getCompressedSize(); virtual int getCompressedSize();
virtual float getCurrentTime(); virtual float getCurrentTime();
virtual int getCurrentPosition(); virtual int getCurrentPosition();
virtual int getCurrentCompressedPosition(); virtual int getCurrentCompressedPosition();
virtual cAudio::cAudioString getType() const; virtual cAudio::cAudioString getType() const;
typedef void (SWIGSTDCALL* SWIG_Callback0_t)(); typedef void (SWIGSTDCALL* SWIG_Callback0_t)();
typedef unsigned int (SWIGSTDCALL* SWIG_Callback1_t)(); typedef unsigned int (SWIGSTDCALL* SWIG_Callback1_t)();
typedef int (SWIGSTDCALL* SWIG_Callback2_t)(); typedef int (SWIGSTDCALL* SWIG_Callback2_t)();
typedef int (SWIGSTDCALL* SWIG_Callback3_t)(); typedef int (SWIGSTDCALL* SWIG_Callback3_t)();
typedef unsigned int (SWIGSTDCALL* SWIG_Callback4_t)(); typedef unsigned int (SWIGSTDCALL* SWIG_Callback4_t)();
typedef unsigned int (SWIGSTDCALL* SWIG_Callback5_t)(); typedef unsigned int (SWIGSTDCALL* SWIG_Callback5_t)();
typedef int (SWIGSTDCALL* SWIG_Callback6_t)(void *, int); typedef int (SWIGSTDCALL* SWIG_Callback6_t)(void *, int);
typedef unsigned int (SWIGSTDCALL* SWIG_Callback7_t)(int, unsigned int); typedef unsigned int (SWIGSTDCALL* SWIG_Callback7_t)(int, unsigned int);
typedef unsigned int (SWIGSTDCALL* SWIG_Callback8_t)(float, unsigned int); typedef unsigned int (SWIGSTDCALL* SWIG_Callback8_t)(float, unsigned int);
typedef float (SWIGSTDCALL* SWIG_Callback9_t)(); typedef float (SWIGSTDCALL* SWIG_Callback9_t)();
typedef int (SWIGSTDCALL* SWIG_Callback10_t)(); typedef int (SWIGSTDCALL* SWIG_Callback10_t)();
typedef int (SWIGSTDCALL* SWIG_Callback11_t)(); typedef int (SWIGSTDCALL* SWIG_Callback11_t)();
typedef float (SWIGSTDCALL* SWIG_Callback12_t)(); typedef float (SWIGSTDCALL* SWIG_Callback12_t)();
typedef int (SWIGSTDCALL* SWIG_Callback13_t)(); typedef int (SWIGSTDCALL* SWIG_Callback13_t)();
typedef int (SWIGSTDCALL* SWIG_Callback14_t)(); typedef int (SWIGSTDCALL* SWIG_Callback14_t)();
typedef char * (SWIGSTDCALL* SWIG_Callback15_t)(); typedef char * (SWIGSTDCALL* SWIG_Callback15_t)();
void swig_connect_director(SWIG_Callback0_t callbackgrab, SWIG_Callback1_t callbackdrop, SWIG_Callback2_t callbackgetFormat, SWIG_Callback3_t callbackgetFrequency, SWIG_Callback4_t callbackisSeekingSupported, SWIG_Callback5_t callbackisValid, SWIG_Callback6_t callbackreadAudioData, SWIG_Callback7_t callbacksetPosition, SWIG_Callback8_t callbackseek, SWIG_Callback9_t callbackgetTotalTime, SWIG_Callback10_t callbackgetTotalSize, SWIG_Callback11_t callbackgetCompressedSize, SWIG_Callback12_t callbackgetCurrentTime, SWIG_Callback13_t callbackgetCurrentPosition, SWIG_Callback14_t callbackgetCurrentCompressedPosition, SWIG_Callback15_t callbackgetType); void swig_connect_director(SWIG_Callback0_t callbackgrab, SWIG_Callback1_t callbackdrop, SWIG_Callback2_t callbackgetFormat, SWIG_Callback3_t callbackgetFrequency, SWIG_Callback4_t callbackisSeekingSupported, SWIG_Callback5_t callbackisValid, SWIG_Callback6_t callbackreadAudioData, SWIG_Callback7_t callbacksetPosition, SWIG_Callback8_t callbackseek, SWIG_Callback9_t callbackgetTotalTime, SWIG_Callback10_t callbackgetTotalSize, SWIG_Callback11_t callbackgetCompressedSize, SWIG_Callback12_t callbackgetCurrentTime, SWIG_Callback13_t callbackgetCurrentPosition, SWIG_Callback14_t callbackgetCurrentCompressedPosition, SWIG_Callback15_t callbackgetType);
private: private:
SWIG_Callback0_t swig_callbackgrab; SWIG_Callback0_t swig_callbackgrab;
SWIG_Callback1_t swig_callbackdrop; SWIG_Callback1_t swig_callbackdrop;
SWIG_Callback2_t swig_callbackgetFormat; SWIG_Callback2_t swig_callbackgetFormat;
SWIG_Callback3_t swig_callbackgetFrequency; SWIG_Callback3_t swig_callbackgetFrequency;
SWIG_Callback4_t swig_callbackisSeekingSupported; SWIG_Callback4_t swig_callbackisSeekingSupported;
SWIG_Callback5_t swig_callbackisValid; SWIG_Callback5_t swig_callbackisValid;
SWIG_Callback6_t swig_callbackreadAudioData; SWIG_Callback6_t swig_callbackreadAudioData;
SWIG_Callback7_t swig_callbacksetPosition; SWIG_Callback7_t swig_callbacksetPosition;
SWIG_Callback8_t swig_callbackseek; SWIG_Callback8_t swig_callbackseek;
SWIG_Callback9_t swig_callbackgetTotalTime; SWIG_Callback9_t swig_callbackgetTotalTime;
SWIG_Callback10_t swig_callbackgetTotalSize; SWIG_Callback10_t swig_callbackgetTotalSize;
SWIG_Callback11_t swig_callbackgetCompressedSize; SWIG_Callback11_t swig_callbackgetCompressedSize;
SWIG_Callback12_t swig_callbackgetCurrentTime; SWIG_Callback12_t swig_callbackgetCurrentTime;
SWIG_Callback13_t swig_callbackgetCurrentPosition; SWIG_Callback13_t swig_callbackgetCurrentPosition;
SWIG_Callback14_t swig_callbackgetCurrentCompressedPosition; SWIG_Callback14_t swig_callbackgetCurrentCompressedPosition;
SWIG_Callback15_t swig_callbackgetType; SWIG_Callback15_t swig_callbackgetType;
void swig_init_callbacks(); void swig_init_callbacks();
}; };
class SwigDirector_IAudioDecoderFactory : public cAudio::IAudioDecoderFactory, public Swig::Director { class SwigDirector_IAudioDecoderFactory : public cAudio::IAudioDecoderFactory, public Swig::Director {
public: public:
SwigDirector_IAudioDecoderFactory(); SwigDirector_IAudioDecoderFactory();
virtual ~SwigDirector_IAudioDecoderFactory(); virtual ~SwigDirector_IAudioDecoderFactory();
virtual cAudio::IAudioDecoder *CreateAudioDecoder(cAudio::IDataSource *stream); virtual cAudio::IAudioDecoder *CreateAudioDecoder(cAudio::IDataSource *stream);
typedef void * (SWIGSTDCALL* SWIG_Callback0_t)(void *); typedef void * (SWIGSTDCALL* SWIG_Callback0_t)(void *);
void swig_connect_director(SWIG_Callback0_t callbackCreateAudioDecoder); void swig_connect_director(SWIG_Callback0_t callbackCreateAudioDecoder);
private: private:
SWIG_Callback0_t swig_callbackCreateAudioDecoder; SWIG_Callback0_t swig_callbackCreateAudioDecoder;
void swig_init_callbacks(); void swig_init_callbacks();
}; };
#endif #endif