* Abstract away device detection now we have IAudioDeviceList (removed openAL code from capture/sound manager)

* Converted samples to use the devicelist object
* Enhanced C# binding
This commit is contained in:
Murat Suri 2011-06-05 17:02:47 +00:00
parent 43dfdb841c
commit dfcf4d5f62
75 changed files with 3432 additions and 3639 deletions

View File

@ -26,15 +26,16 @@ int main(int argc, char* argv[]) {
{
//Allow the user to choose a playback device
cout << "\nAvailable Playback Devices: \n";
unsigned int deviceCount = manager->getAvailableDeviceCount();
std::string defaultDeviceName = manager->getDefaultDeviceName();
cAudio::IAudioDeviceList* pDeviceList = cAudio::createAudioDeviceList();
unsigned int deviceCount = pDeviceList->getDeviceCount();
cAudio::cAudioString defaultDeviceName = pDeviceList->getDefaultDeviceName();
for(unsigned int i=0; i<deviceCount; ++i)
{
std::string deviceName = manager->getAvailableDeviceName(i);
cAudio::cAudioString deviceName = pDeviceList->getDeviceName(i);
if(deviceName.compare(defaultDeviceName) == 0)
cout << i << "): " << deviceName << " [DEFAULT] \n";
cout << i << "): " << deviceName.c_str() << " [DEFAULT] \n";
else
cout << i << "): " << deviceName << " \n";
cout << i << "): " << deviceName.c_str() << " \n";
}
cout << std::endl;
cout << "Choose a device by number: ";
@ -43,7 +44,9 @@ int main(int argc, char* argv[]) {
cout << std::endl;
//Initialize the manager with the user settings
manager->initialize(manager->getAvailableDeviceName(deviceSelection));
manager->initialize(pDeviceList->getDeviceName(deviceSelection).c_str());
CAUDIO_DELETE pDeviceList;
pDeviceList = 0;
//Create a IAudio object and load a sound from a file
#ifdef CAUDIO_PLATFORM_WIN

View File

@ -31,15 +31,16 @@ int main(int argc, char* argv[])
{
//Allow the user to choose a playback device
cout << "\nAvailable Playback Devices: \n";
unsigned int deviceCount = manager->getAvailableDeviceCount();
std::string defaultDeviceName = manager->getDefaultDeviceName();
cAudio::IAudioDeviceList* pDeviceList = cAudio::createAudioDeviceList();
unsigned int deviceCount = pDeviceList->getDeviceCount();
cAudio::cAudioString defaultDeviceName = pDeviceList->getDefaultDeviceName();
for(unsigned int i=0; i<deviceCount; ++i)
{
std::string deviceName = manager->getAvailableDeviceName(i);
cAudio::cAudioString deviceName = pDeviceList->getDeviceName(i);
if(deviceName.compare(defaultDeviceName) == 0)
cout << i << "): " << deviceName << " [DEFAULT] \n";
cout << i << "): " << deviceName.c_str() << " [DEFAULT] \n";
else
cout << i << "): " << deviceName << " \n";
cout << i << "): " << deviceName.c_str() << " \n";
}
cout << std::endl;
cout << "Choose a device by number: ";
@ -48,7 +49,9 @@ int main(int argc, char* argv[])
cout << std::endl;
//Initialize the manager with the user settings
manager->initialize(manager->getAvailableDeviceName(deviceSelection));
manager->initialize(pDeviceList->getDeviceName(deviceSelection).c_str());
CAUDIO_DELETE pDeviceList;
pDeviceList = 0;
//Grab the listener object, which allows us to manipulate where "we" are in the world
//It's useful to bind this to a camera if you are using a 3d graphics engine

View File

@ -31,15 +31,16 @@ int main(int argc, char* argv[])
{
//Allow the user to choose a playback device
cout << "\nAvailable Playback Devices: \n";
unsigned int deviceCount = manager->getAvailableDeviceCount();
std::string defaultDeviceName = manager->getDefaultDeviceName();
cAudio::IAudioDeviceList* pDeviceList = cAudio::createAudioDeviceList();
unsigned int deviceCount = pDeviceList->getDeviceCount();
cAudio::cAudioString defaultDeviceName = pDeviceList->getDefaultDeviceName();
for(unsigned int i=0; i<deviceCount; ++i)
{
std::string deviceName = manager->getAvailableDeviceName(i);
cAudio::cAudioString deviceName = pDeviceList->getDeviceName(i);
if(deviceName.compare(defaultDeviceName) == 0)
cout << i << "): " << deviceName << " [DEFAULT] \n";
cout << i << "): " << deviceName.c_str() << " [DEFAULT] \n";
else
cout << i << "): " << deviceName << " \n";
cout << i << "): " << deviceName.c_str() << " \n";
}
cout << std::endl;
cout << "Choose a device by number: ";
@ -48,7 +49,9 @@ int main(int argc, char* argv[])
cout << std::endl;
//Initialize the manager with the user settings
manager->initialize(manager->getAvailableDeviceName(deviceSelection));
manager->initialize(pDeviceList->getDeviceName(deviceSelection).c_str());
CAUDIO_DELETE pDeviceList;
pDeviceList = 0;
//Create a IAudio object and load a sound from memory. using the bling array and bling size generated by bin2h.
cAudio::IAudioSource* mysound = manager->createFromMemory("bling",(const char*)bling,bling_size,"wav");

View File

@ -43,22 +43,26 @@ int main(int argc, char* argv[])
//! The capture interface can be gotten at any time, and can even be used completely seperate from the manager
// Also it is possible to have more than one capture interface at the same time, useful for recording from multiple sources
cAudio::IAudioCapture* capture = cAudio::createAudioCapture(false);
if(capture)
// ! Here we enumerate different devices
cAudio::IAudioDeviceList* pAudioDeviceList = cAudio::createAudioDeviceList(cAudio::DT_RECORDING);
if(pAudioDeviceList)
{
bool captureReady = false;
cout << "Capturing Supported: " << std::boolalpha << capture->isSupported() << "\n \n";
if(capture->isSupported())
bool captureReady = pAudioDeviceList->isSupported();
cout << "Capturing Supported: " << std::boolalpha << captureReady << "\n \n";
if(captureReady)
{
cout << "Available Capture Devices: \n";
unsigned int deviceCount = capture->getAvailableDeviceCount();
std::string defaultDeviceName = capture->getDefaultDeviceName();
unsigned int deviceCount = pAudioDeviceList->getDeviceCount();
cAudio::cAudioString defaultDeviceName = pAudioDeviceList->getDefaultDeviceName();
for(unsigned int i=0; i<deviceCount; ++i)
{
std::string deviceName = capture->getAvailableDeviceName(i);
cAudio::cAudioString deviceName = pAudioDeviceList->getDeviceName(i);
if(deviceName.compare(defaultDeviceName) == 0)
cout << i << "): " << deviceName << " [DEFAULT] \n";
cout << i << "): " << deviceName.c_str() << " [DEFAULT] \n";
else
cout << i << "): " << deviceName << " \n";
cout << i << "): " << deviceName.c_str() << " \n";
}
cout << std::endl;
cout << "Choose a device by number: ";
@ -66,7 +70,10 @@ int main(int argc, char* argv[])
cin >> deviceSelection;
cout << std::endl;
captureReady = capture->initialize(capture->getAvailableDeviceName(deviceSelection), CAPTURE_FREQUENCY, CAPTURE_FORMAT);
captureReady = capture->initialize(pAudioDeviceList->getDeviceName(deviceSelection).c_str(), CAPTURE_FREQUENCY, CAPTURE_FORMAT);
CAUDIO_DELETE pAudioDeviceList; // Free up some memory
pAudioDeviceList = 0;
cout << "Ready to capture audio: " << std::boolalpha << captureReady << "\n \n";
//Quick math to figure out how large our data should be for the duration of the record time

View File

@ -28,15 +28,16 @@ int main(int argc, char* argv[])
{
//Allow the user to choose a playback device
cout << "\nAvailable Playback Devices: \n";
unsigned int deviceCount = manager->getAvailableDeviceCount();
std::string defaultDeviceName = manager->getDefaultDeviceName();
cAudio::IAudioDeviceList* pDeviceList = cAudio::createAudioDeviceList();
unsigned int deviceCount = pDeviceList->getDeviceCount();
cAudio::cAudioString defaultDeviceName = pDeviceList->getDefaultDeviceName();
for(unsigned int i=0; i<deviceCount; ++i)
{
std::string deviceName = manager->getAvailableDeviceName(i);
cAudio::cAudioString deviceName = pDeviceList->getDeviceName(i);
if(deviceName.compare(defaultDeviceName) == 0)
cout << i << "): " << deviceName << " [DEFAULT] \n";
cout << i << "): " << deviceName.c_str() << " [DEFAULT] \n";
else
cout << i << "): " << deviceName << " \n";
cout << i << "): " << deviceName.c_str() << " \n";
}
cout << std::endl;
cout << "Choose a device by number: ";
@ -45,7 +46,9 @@ int main(int argc, char* argv[])
cout << std::endl;
//Initialize the manager with the user settings
manager->initialize(manager->getAvailableDeviceName(deviceSelection));
manager->initialize(pDeviceList->getDeviceName(deviceSelection).c_str());
CAUDIO_DELETE pDeviceList;
pDeviceList = 0;
#ifdef CAUDIO_EFX_ENABLED
cAudio::IAudioEffects* effects = manager->getEffects();
@ -346,6 +349,7 @@ int main(int argc, char* argv[])
std::cout << "Equalizer effect not supported by this OpenAL device. \n";
}
}
manager->release(mysound);
filter->drop();
effect->drop();
}

View File

@ -34,15 +34,16 @@ int main(int argc, char* argv[])
{
//Allow the user to choose a playback device
cout << "\nAvailable Playback Devices: \n";
unsigned int deviceCount = manager->getAvailableDeviceCount();
std::string defaultDeviceName = manager->getDefaultDeviceName();
cAudio::IAudioDeviceList* pDeviceList = cAudio::createAudioDeviceList();
unsigned int deviceCount = pDeviceList->getDeviceCount();
cAudio::cAudioString defaultDeviceName = pDeviceList->getDefaultDeviceName();
for(unsigned int i=0; i<deviceCount; ++i)
{
std::string deviceName = manager->getAvailableDeviceName(i);
cAudio::cAudioString deviceName = pDeviceList->getDeviceName(i);
if(deviceName.compare(defaultDeviceName) == 0)
cout << i << "): " << deviceName << " [DEFAULT] \n";
cout << i << "): " << deviceName.c_str() << " [DEFAULT] \n";
else
cout << i << "): " << deviceName << " \n";
cout << i << "): " << deviceName.c_str() << " \n";
}
cout << std::endl;
cout << "Choose a device by number: ";
@ -51,7 +52,9 @@ int main(int argc, char* argv[])
cout << std::endl;
//Initialize the manager with the user settings
manager->initialize(manager->getAvailableDeviceName(deviceSelection));
manager->initialize(pDeviceList->getDeviceName(deviceSelection).c_str());
CAUDIO_DELETE pDeviceList;
pDeviceList = 0;
//Create a IAudio object and load a sound from a file
#ifdef CAUDIO_PLATFORM_WIN

View File

@ -41,15 +41,16 @@ int main(int argc, char* argv[])
{
//Allow the user to choose a playback device
cout << "\nAvailable Playback Devices: \n";
unsigned int deviceCount = manager->getAvailableDeviceCount();
std::string defaultDeviceName = manager->getDefaultDeviceName();
cAudio::IAudioDeviceList* pDeviceList = cAudio::createAudioDeviceList();
unsigned int deviceCount = pDeviceList->getDeviceCount();
cAudio::cAudioString defaultDeviceName = pDeviceList->getDefaultDeviceName();
for(unsigned int i=0; i<deviceCount; ++i)
{
std::string deviceName = manager->getAvailableDeviceName(i);
cAudio::cAudioString deviceName = pDeviceList->getDeviceName(i);
if(deviceName.compare(defaultDeviceName) == 0)
cout << i << "): " << deviceName << " [DEFAULT] \n";
cout << i << "): " << deviceName.c_str() << " [DEFAULT] \n";
else
cout << i << "): " << deviceName << " \n";
cout << i << "): " << deviceName.c_str() << " \n";
}
cout << std::endl;
cout << "Choose a device by number: ";
@ -58,7 +59,9 @@ int main(int argc, char* argv[])
cout << std::endl;
//Initialize the manager with the user settings
manager->initialize(manager->getAvailableDeviceName(deviceSelection));
manager->initialize(pDeviceList->getDeviceName(deviceSelection).c_str());
CAUDIO_DELETE pDeviceList;
pDeviceList = 0;
//Create a IAudio object and load a sound from a file
#ifdef CAUDIO_PLATFORM_WIN

View File

@ -31,11 +31,7 @@ namespace cAudio
cAudioCapture();
~cAudioCapture();
//! Checks to see if capturing audio is supported by OpenAL
bool checkCaptureExtension();
virtual bool initialize(const char* deviceName = 0x0, unsigned int frequency = 22050, AudioFormats format = EAF_16BIT_MONO, unsigned int internalBufferSize = 8192);
virtual bool isSupported() { return Supported; }
virtual bool isReady() { return Ready; }
virtual void updateCaptureBuffer(bool force = false);
virtual void shutdown();
@ -44,10 +40,6 @@ namespace cAudio
return (AudioThread != NULL && AudioThread->isRunning());
}
virtual const char* getAvailableDeviceName(unsigned int index);
virtual unsigned int getAvailableDeviceCount();
virtual const char* getDefaultDeviceName();
virtual const char* getDeviceName() { return toUTF8(DeviceName); }
virtual unsigned int getFrequency() { return Frequency; }
virtual AudioFormats getFormat() { return Format; }
@ -87,11 +79,8 @@ namespace cAudio
int SampleSize;
cAudioVector<char>::Type CaptureBuffer;
cAudioVector<cAudioString>::Type AvailableDevices;
cAudioString DefaultDevice;
cAudioList<ICaptureEventHandler*>::Type eventHandlerList;
bool Supported;
bool Ready;
bool Capturing;

View File

@ -44,10 +44,6 @@ namespace cAudio
virtual void releaseAllSources();
virtual void release(IAudioSource* source);
virtual const char* getAvailableDeviceName(unsigned int index);
virtual unsigned int getAvailableDeviceCount();
virtual const char* getDefaultDeviceName();
virtual IAudioSource* create(const char* name, const char* filename, bool stream = false);
virtual IAudioSource* createFromMemory(const char* name, const char* data, size_t length, const char* extension);
virtual IAudioSource* createFromRaw(const char* name, const char* data, size_t length, unsigned int frequency, AudioFormats format);
@ -68,9 +64,6 @@ namespace cAudio
virtual void unRegisterEventHandler(IManagerEventHandler* handler) ;
virtual void unRegisterAllEventHandlers();
//! Grabs a list of available devices, as well as the default system one
void getAvailableDevices();
virtual IListener* getListener() { return &initlistener; }
virtual bool isUpdateThreadRunning()
@ -126,9 +119,6 @@ namespace cAudio
//! Check for OpenAL errors
bool checkError();
cAudioVector<cAudioString>::Type AvailableDevices;
cAudioString DefaultDevice;
//! Signals a event to all event handlers
void signalEvent(Events sevent);

View File

@ -0,0 +1,29 @@
// Copyright (c) 2008-2011 Raynaldo (Wildicv) Rivera, Joshua (Dark_Kilauea) Jones, Murat (wolfmanfx) Sari
// This file is part of the "cAudio Engine"
// For conditions of distribution and use, see copyright notice in cAudio.h
#pragma once
#include "../include/IAudioDeviceList.h"
#include "../Headers/cMemoryOverride.h"
namespace cAudio
{
class cOpenALAudioDeviceList : public IAudioDeviceList, public cMemoryOverride
{
public:
cOpenALAudioDeviceList(IDeviceType deviceType = DT_PLAYBACK);
virtual ~cOpenALAudioDeviceList();
virtual unsigned int getDeviceCount();
virtual cAudioString getDeviceName(unsigned int idx);
virtual cAudioString getDeviceDescription(unsigned int idx);
virtual cAudioString getDefaultDeviceName();
virtual bool isSupported();
private:
cAudioVector<cAudioString>::Type AvailableDevices;
cAudioString DefaultDevice;
IDeviceType DeviceType;
};
}

View File

@ -23,6 +23,7 @@ set (file_root_header_files
Headers/cThread.h
Headers/cWavAudioDecoderFactory.h
Headers/cWavDecoder.h
Headers/cOpenALAudioDeviceList.h
)
set (file_root_include
include/cAudio.h
@ -34,6 +35,7 @@ set (file_root_include
include/cSTLAllocator.h
include/EAudioFormats.h
include/IThread.h
include/IAudioDeviceList.h
include/IAudioCapture.h
include/IAudioDecoder.h
include/IAudioDecoderFactory.h
@ -84,6 +86,7 @@ set (file_root_source_files
src/cWavAudioDecoderFactory.cpp
src/cWavDecoder.cpp
src/cAudio.cpp
src/cOpenALAudioDeviceList.cpp
)
if(CAUDIO_ENABLE_OGG)

View File

@ -26,8 +26,7 @@ namespace cAudio
\return True on success, False if the capture device failed to initialize.
*/
virtual bool initialize(const char* deviceName = 0x0, unsigned int frequency = 22050, AudioFormats format = EAF_16BIT_MONO, unsigned int internalBufferSize = 8192) = 0;
//! Returns true if the current OpenAL implementation supports capturing audio.
virtual bool isSupported() = 0;
//! Returns true if the capture device is ready to be used. False may indicate an error with the current settings.
virtual bool isReady() = 0;
//! Grabs samples from the OpenAL buffer into the capture buffer if the OpenAL buffer has reached half full. Should be run once every audio frame, unless threading is enabled.
@ -43,17 +42,6 @@ namespace cAudio
*/
virtual bool isUpdateThreadRunning() = 0;
//! Returns the name of an available capture device.
/** \param index: Specify which name to retrieve ( Range: 0 to getAvailableDeviceCount()-1 ).
\return Name of the selected device. */
virtual const char* getAvailableDeviceName(unsigned int index) = 0;
//! Returns the number of capture devices available for use.
/** \return Number of capture devices available. */
virtual unsigned int getAvailableDeviceCount() = 0;
//! Returns the name of the default system playback device.
/** \return Name of the default capture device. */
virtual const char* getDefaultDeviceName() = 0;
//! Returns the name of the audio device being used to capture audio.
virtual const char* getDeviceName() = 0;
//! Returns the frequency that the captured audio will be at.

View File

@ -0,0 +1,26 @@
// Copyright (c) 2008-2011 Raynaldo (Wildicv) Rivera, Joshua (Dark_Kilauea) Jones, Murat (wolfmanfx) Sari
// This file is part of the "cAudio Engine"
// For conditions of distribution and use, see copyright notice in cAudio.h
#pragma once
#include "cAudioString.h"
namespace cAudio
{
enum IDeviceType
{
DT_PLAYBACK = 0,
DT_RECORDING = 2
};
class IAudioDeviceList
{
public:
virtual unsigned int getDeviceCount() = 0;
virtual cAudioString getDeviceName(unsigned int idx) = 0;
virtual cAudioString getDeviceDescription(unsigned int idx) = 0;
virtual cAudioString getDefaultDeviceName() = 0;
virtual bool isSupported() = 0;
};
}

View File

@ -58,19 +58,6 @@ namespace cAudio
/** \param source: Pointer to the source to release. */
virtual void release(IAudioSource* source) = 0;
//! Returns the name of an available playback device.
/** \param index: Specify which name to retrieve ( Range: 0 to getAvailableDeviceCount()-1 )
\return Name of the selected device. */
virtual const char* getAvailableDeviceName(unsigned int index) = 0;
//! Returns the number of playback devices available for use.
/** \return Number of playback devices available. */
virtual unsigned int getAvailableDeviceCount() = 0;
//! Returns the name of the default system playback device.
/** \return Name of the default playback device. */
virtual const char* getDefaultDeviceName() = 0;
//! Creates an Audio Source object using the highest priority data source that has the referenced filename
/**
\param name: Name of the audio source.
@ -105,7 +92,7 @@ namespace cAudio
/**
\param factory: Pointer to the factory instance to use.
\param extension: Extension of the audio codec to register this decoder under. For example, .wav for a RIFF/wav decoder.
\return True on seccess, False if registration failed. */
\return True on success, False if registration failed. */
virtual bool registerAudioDecoder(IAudioDecoderFactory* factory, const char* extension) = 0;
//! Unregister a previously registered Audio Decoder.

View File

@ -44,6 +44,7 @@
#include "ILogReceiver.h"
#include "IPluginManager.h"
#include "IRefCounted.h"
#include "IAudioDeviceList.h"
/*! \mainpage cAudio 2.2.0 API documentation
*
@ -140,4 +141,7 @@ namespace cAudio {
\return A pointer to the logger interface.
*/
CAUDIO_API ILogger* getLogger();
//! Creates an interface to an IAudioDeviceList object
CAUDIO_API IAudioDeviceList* createAudioDeviceList(IDeviceType deviceType = DT_PLAYBACK);
};

View File

@ -25,6 +25,7 @@
#include "../Headers/cLogger.h"
#include "../Headers/cConsoleLogReceiver.h"
#include "../Headers/cFileLogReceiver.h"
#include "../Headers/cOpenALAudioDeviceList.h"
namespace cAudio
{
@ -51,11 +52,9 @@ namespace cAudio
cAudioManager* manager = CAUDIO_NEW cAudioManager;
if(manager)
{
if(initializeDefault)
if(initializeDefault)
manager->initialize();
manager->getAvailableDevices();
#if CAUDIO_COMPILE_WITH_OGG_DECODER == 1
manager->registerAudioDecoder(&OggDecoderFactory, "ogg");
#endif
@ -112,7 +111,7 @@ namespace cAudio
if(capture)
{
if(initializeDefault)
capture->initialize();
capture->initialize();
#ifdef CAUDIO_COMPILE_WITH_PLUGIN_SUPPORT
cAudioVector<IAudioPlugin*>::Type plugins = cPluginManager::Instance()->getPluginList();
@ -170,4 +169,12 @@ namespace cAudio
}
return &Logger;
}
//---------------------------------------------------------------------------------------
// IAudioDeviceList section
//---------------------------------------------------------------------------------------
CAUDIO_API IAudioDeviceList* createAudioDeviceList(IDeviceType deviceType)
{
return CAUDIO_NEW cOpenALAudioDeviceList(deviceType);
}
}

View File

@ -15,11 +15,10 @@
namespace cAudio
{
cAudioCapture::cAudioCapture() : Frequency(22050), Format(EAF_16BIT_MONO), InternalBufferSize(8192),
SampleSize(2), Supported(false), Ready(false), Capturing(false),
SampleSize(2), Ready(false), Capturing(false),
CaptureDevice(NULL), AudioThread(NULL)
{
checkCaptureExtension();
getAvailableDevices();
}
cAudioCapture::~cAudioCapture()
{
@ -31,59 +30,46 @@ namespace cAudio
updateCaptureBuffer();
cAudioSleep(1);
}
bool cAudioCapture::checkCaptureExtension()
{
cAudioMutexBasicLock lock(Mutex);
// Check for Capture Extension support
Supported = ( alcIsExtensionPresent(NULL, "ALC_EXT_CAPTURE") == AL_TRUE );
return Supported;
}
bool cAudioCapture::initOpenALDevice()
{
cAudioMutexBasicLock lock(Mutex);
if(Supported)
if(CaptureDevice)
shutdownOpenALDevice();
if(DeviceName.empty())
CaptureDevice = alcCaptureOpenDevice(NULL, Frequency, convertAudioFormatEnum(Format), InternalBufferSize / SampleSize);
else
CaptureDevice = alcCaptureOpenDevice(DeviceName.c_str(), Frequency, convertAudioFormatEnum(Format), InternalBufferSize / SampleSize);
if(CaptureDevice)
{
if(CaptureDevice)
shutdownOpenALDevice();
if(DeviceName.empty())
CaptureDevice = alcCaptureOpenDevice(NULL, Frequency, convertAudioFormatEnum(Format), InternalBufferSize / SampleSize);
else
CaptureDevice = alcCaptureOpenDevice(DeviceName.c_str(), Frequency, convertAudioFormatEnum(Format), InternalBufferSize / SampleSize);
if(CaptureDevice)
{
DeviceName = alcGetString(CaptureDevice, ALC_CAPTURE_DEVICE_SPECIFIER);
Ready = true;
checkError();
getLogger()->logDebug("AudioCapture", "OpenAL Capture Device Opened.");
DeviceName = alcGetString(CaptureDevice, ALC_CAPTURE_DEVICE_SPECIFIER);
Ready = true;
checkError();
getLogger()->logDebug("AudioCapture", "OpenAL Capture Device Opened.");
return true;
}
return true;
}
checkError();
return false;
}
void cAudioCapture::shutdownOpenALDevice()
{
cAudioMutexBasicLock lock(Mutex);
if(Supported)
{
if(Capturing)
stopCapture();
if(Capturing)
stopCapture();
if(CaptureDevice)
{
alcCaptureCloseDevice(CaptureDevice);
CaptureDevice = NULL;
Ready = false;
getLogger()->logDebug("AudioCapture", "OpenAL Capture Device Closed.");
signalEvent(ON_RELEASE);
}
checkError();
CaptureBuffer.clear();
if(CaptureDevice)
{
alcCaptureCloseDevice(CaptureDevice);
CaptureDevice = NULL;
Ready = false;
getLogger()->logDebug("AudioCapture", "OpenAL Capture Device Closed.");
signalEvent(ON_RELEASE);
}
checkError();
CaptureBuffer.clear();
}
void cAudioCapture::shutdown()
@ -101,53 +87,6 @@ namespace cAudio
signalEvent(ON_RELEASE);
}
void cAudioCapture::getAvailableDevices()
{
// Get list of available Capture Devices
cAudioMutexBasicLock lock(Mutex);
if( alcIsExtensionPresent(NULL, "ALC_ENUMERATION_EXT") == AL_TRUE )
{
const char* deviceList = alcGetString(NULL, ALC_CAPTURE_DEVICE_SPECIFIER);
if (deviceList)
{
while(*deviceList)
{
cAudioString device(deviceList);
AvailableDevices.push_back(device);
deviceList += strlen(deviceList) + 1;
}
}
// Get the name of the 'default' capture device
DefaultDevice = alcGetString(NULL, ALC_CAPTURE_DEFAULT_DEVICE_SPECIFIER);
}
}
const char* cAudioCapture::getAvailableDeviceName(unsigned int index)
{
cAudioMutexBasicLock lock(Mutex);
if(!AvailableDevices.empty())
{
//Bounds check
if( index > (AvailableDevices.size()-1) ) index = (AvailableDevices.size()-1);
const char* deviceName = AvailableDevices[index].c_str();
return deviceName;
}
return "";
}
unsigned int cAudioCapture::getAvailableDeviceCount()
{
cAudioMutexBasicLock lock(Mutex);
return AvailableDevices.size();
}
const char* cAudioCapture::getDefaultDeviceName()
{
cAudioMutexBasicLock lock(Mutex);
return DefaultDevice.empty() ? "" : DefaultDevice.c_str();
}
void cAudioCapture::updateCaptureBuffer(bool force)
{
cAudioMutexBasicLock lock(Mutex);

View File

@ -574,69 +574,6 @@ namespace cAudio
return false;
}
void cAudioManager::getAvailableDevices()
{
// Get list of available Playback Devices
cAudioMutexBasicLock lock(Mutex);
if( alcIsExtensionPresent(NULL, "ALC_ENUMERATE_ALL_EXT") == AL_TRUE )
{
const char* deviceList = alcGetString(NULL, ALC_ALL_DEVICES_SPECIFIER);
if (deviceList)
{
while(*deviceList)
{
cAudioString device(deviceList);
AvailableDevices.push_back(device);
deviceList += strlen(deviceList) + 1;
}
}
// Get the name of the 'default' capture device
DefaultDevice = alcGetString(NULL, ALC_DEFAULT_ALL_DEVICES_SPECIFIER);
}
else if( alcIsExtensionPresent(NULL, "ALC_ENUMERATION_EXT") == AL_TRUE )
{
const char* deviceList = alcGetString(NULL, ALC_DEVICE_SPECIFIER);
if (deviceList)
{
while(*deviceList)
{
cAudioString device(deviceList);
AvailableDevices.push_back(device);
deviceList += strlen(deviceList) + 1;
}
}
// Get the name of the 'default' capture device
DefaultDevice = alcGetString(NULL, ALC_DEFAULT_DEVICE_SPECIFIER);
}
}
const char* cAudioManager::getAvailableDeviceName(unsigned int index)
{
cAudioMutexBasicLock lock(Mutex);
if(!AvailableDevices.empty())
{
//Bounds check
if( index > (AvailableDevices.size()-1) ) index = (AvailableDevices.size()-1);
const char* deviceName = AvailableDevices[index].c_str();
return deviceName;
}
return "";
}
unsigned int cAudioManager::getAvailableDeviceCount()
{
cAudioMutexBasicLock lock(Mutex);
return AvailableDevices.size();
}
const char* cAudioManager::getDefaultDeviceName()
{
cAudioMutexBasicLock lock(Mutex);
return DefaultDevice.empty() ? "" : DefaultDevice.c_str();
}
void cAudioManager::run()
{
update();

View File

@ -0,0 +1,90 @@
// Copyright (c) 2008-2011 Raynaldo (Wildicv) Rivera, Joshua (Dark_Kilauea) Jones, Murat (wolfmanfx) Sari
// This file is part of the "cAudio Engine"
// For conditions of distribution and use, see copyright notice in cAudio.h
#pragma once
#include "../Headers/cOpenALAudioDeviceList.h"
#include <al.h>
#include <alc.h>
namespace cAudio
{
cOpenALAudioDeviceList::cOpenALAudioDeviceList(IDeviceType deviceType)
{
DeviceType = deviceType;
ALCenum specifier = 0;
ALCenum defaultDevice = 0;
if(DeviceType == DT_RECORDING)
{
specifier = ALC_CAPTURE_DEVICE_SPECIFIER;
defaultDevice = ALC_CAPTURE_DEFAULT_DEVICE_SPECIFIER;
}
else
{
if( alcIsExtensionPresent(NULL, "ALC_ENUMERATE_ALL_EXT") == AL_TRUE )
{
specifier = ALC_ALL_DEVICES_SPECIFIER;
defaultDevice = ALC_DEFAULT_ALL_DEVICES_SPECIFIER;
}
else if( alcIsExtensionPresent(NULL, "ALC_ENUMERATION_EXT") == AL_TRUE )
{
specifier = ALC_DEVICE_SPECIFIER;
defaultDevice = ALC_DEFAULT_DEVICE_SPECIFIER;
}
}
if (specifier != 0 && defaultDevice != 0)
{
const char* deviceList = alcGetString(NULL, specifier);
if (deviceList)
{
while(*deviceList)
{
cAudioString device(deviceList);
AvailableDevices.push_back(device);
deviceList += strlen(deviceList) + 1;
}
}
// Get the name of the 'default' capture device
DefaultDevice = alcGetString(NULL, defaultDevice);
}
}
cOpenALAudioDeviceList::~cOpenALAudioDeviceList() {}
cAudioString cOpenALAudioDeviceList::getDefaultDeviceName()
{
return DefaultDevice;
}
unsigned int cOpenALAudioDeviceList::getDeviceCount()
{
return (unsigned int)AvailableDevices.size();
}
cAudioString cOpenALAudioDeviceList::getDeviceName(unsigned int idx)
{
if (AvailableDevices.size() > idx)
{
return AvailableDevices[idx];
}
return cAudioString("");
}
cAudioString cOpenALAudioDeviceList::getDeviceDescription(unsigned int idx)
{
return getDeviceName(idx); // In OpenAL deviceName is human readable
}
bool cOpenALAudioDeviceList::isSupported()
{
if(DeviceType == DT_RECORDING)
{
return alcIsExtensionPresent(NULL, "ALC_EXT_CAPTURE") == AL_TRUE && AvailableDevices.size() > 0;
}
return AvailableDevices.size() > 0;
}
}

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.1
* Version 2.0.4
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.1
* Version 2.0.4
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.1
* Version 2.0.4
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
@ -66,11 +66,6 @@ public class IAudioCapture : IDisposable {
return ret;
}
public virtual bool isSupported() {
bool ret = cAudioCSharpWrapperPINVOKE.IAudioCapture_isSupported(swigCPtr);
return ret;
}
public virtual bool isReady() {
bool ret = cAudioCSharpWrapperPINVOKE.IAudioCapture_isReady(swigCPtr);
return ret;
@ -93,21 +88,6 @@ public class IAudioCapture : IDisposable {
return ret;
}
public virtual string getAvailableDeviceName(uint index) {
string ret = cAudioCSharpWrapperPINVOKE.IAudioCapture_getAvailableDeviceName(swigCPtr, index);
return ret;
}
public virtual uint getAvailableDeviceCount() {
uint ret = cAudioCSharpWrapperPINVOKE.IAudioCapture_getAvailableDeviceCount(swigCPtr);
return ret;
}
public virtual string getDefaultDeviceName() {
string ret = cAudioCSharpWrapperPINVOKE.IAudioCapture_getDefaultDeviceName(swigCPtr);
return ret;
}
public virtual string getDeviceName() {
string ret = cAudioCSharpWrapperPINVOKE.IAudioCapture_getDeviceName(swigCPtr);
return ret;

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.1
* Version 2.0.4
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
@ -109,6 +109,11 @@ public class IAudioDecoder : IRefCounted {
return ret;
}
public virtual SWIGTYPE_p_std__basic_stringT_char_t getType() {
SWIGTYPE_p_std__basic_stringT_char_t ret = new SWIGTYPE_p_std__basic_stringT_char_t(cAudioCSharpWrapperPINVOKE.IAudioDecoder_getType(swigCPtr), true);
return ret;
}
private void SwigDirectorConnect() {
if (SwigDerivedClassHasMethod("getFormat", swigMethodTypes0))
swigDelegate0 = new SwigDelegateIAudioDecoder_0(SwigDirectorgetFormat);
@ -136,7 +141,9 @@ public class IAudioDecoder : IRefCounted {
swigDelegate11 = new SwigDelegateIAudioDecoder_11(SwigDirectorgetCurrentPosition);
if (SwigDerivedClassHasMethod("getCurrentCompressedPosition", swigMethodTypes12))
swigDelegate12 = new SwigDelegateIAudioDecoder_12(SwigDirectorgetCurrentCompressedPosition);
cAudioCSharpWrapperPINVOKE.IAudioDecoder_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4, swigDelegate5, swigDelegate6, swigDelegate7, swigDelegate8, swigDelegate9, swigDelegate10, swigDelegate11, swigDelegate12);
if (SwigDerivedClassHasMethod("getType", swigMethodTypes13))
swigDelegate13 = new SwigDelegateIAudioDecoder_13(SwigDirectorgetType);
cAudioCSharpWrapperPINVOKE.IAudioDecoder_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4, swigDelegate5, swigDelegate6, swigDelegate7, swigDelegate8, swigDelegate9, swigDelegate10, swigDelegate11, swigDelegate12, swigDelegate13);
}
private bool SwigDerivedClassHasMethod(string methodName, Type[] methodTypes) {
@ -197,6 +204,10 @@ public class IAudioDecoder : IRefCounted {
return getCurrentCompressedPosition();
}
private IntPtr SwigDirectorgetType() {
return SWIGTYPE_p_std__basic_stringT_char_t.getCPtr(getType()).Handle;
}
public delegate int SwigDelegateIAudioDecoder_0();
public delegate int SwigDelegateIAudioDecoder_1();
public delegate bool SwigDelegateIAudioDecoder_2();
@ -210,6 +221,7 @@ public class IAudioDecoder : IRefCounted {
public delegate float SwigDelegateIAudioDecoder_10();
public delegate int SwigDelegateIAudioDecoder_11();
public delegate int SwigDelegateIAudioDecoder_12();
public delegate IntPtr SwigDelegateIAudioDecoder_13();
private SwigDelegateIAudioDecoder_0 swigDelegate0;
private SwigDelegateIAudioDecoder_1 swigDelegate1;
@ -224,6 +236,7 @@ public class IAudioDecoder : IRefCounted {
private SwigDelegateIAudioDecoder_10 swigDelegate10;
private SwigDelegateIAudioDecoder_11 swigDelegate11;
private SwigDelegateIAudioDecoder_12 swigDelegate12;
private SwigDelegateIAudioDecoder_13 swigDelegate13;
private static Type[] swigMethodTypes0 = new Type[] { };
private static Type[] swigMethodTypes1 = new Type[] { };
@ -238,6 +251,7 @@ public class IAudioDecoder : IRefCounted {
private static Type[] swigMethodTypes10 = new Type[] { };
private static Type[] swigMethodTypes11 = new Type[] { };
private static Type[] swigMethodTypes12 = new Type[] { };
private static Type[] swigMethodTypes13 = new Type[] { };
}
}

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.1
* Version 2.0.4
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

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

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.1
* Version 2.0.4
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
@ -88,21 +88,6 @@ public class IAudioManager : IDisposable {
cAudioCSharpWrapperPINVOKE.IAudioManager_release(swigCPtr, IAudioSource.getCPtr(source));
}
public virtual string getAvailableDeviceName(uint index) {
string ret = cAudioCSharpWrapperPINVOKE.IAudioManager_getAvailableDeviceName(swigCPtr, index);
return ret;
}
public virtual uint getAvailableDeviceCount() {
uint ret = cAudioCSharpWrapperPINVOKE.IAudioManager_getAvailableDeviceCount(swigCPtr);
return ret;
}
public virtual string getDefaultDeviceName() {
string ret = cAudioCSharpWrapperPINVOKE.IAudioManager_getDefaultDeviceName(swigCPtr);
return ret;
}
public virtual IAudioSource create(string name, string filename, bool stream) {
IntPtr cPtr = cAudioCSharpWrapperPINVOKE.IAudioManager_create__SWIG_0(swigCPtr, name, filename, stream);
IAudioSource ret = (cPtr == IntPtr.Zero) ? null : new IAudioSource(cPtr, false);
@ -121,10 +106,9 @@ public class IAudioManager : IDisposable {
return ret;
}
public virtual IAudioSource createFromRaw(string name, string data, uint length, uint frequency, SWIGTYPE_p_AudioFormats format) {
IntPtr cPtr = cAudioCSharpWrapperPINVOKE.IAudioManager_createFromRaw(swigCPtr, name, data, length, frequency, SWIGTYPE_p_AudioFormats.getCPtr(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);
IAudioSource ret = (cPtr == IntPtr.Zero) ? null : new IAudioSource(cPtr, false);
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
@ -152,8 +136,8 @@ public class IAudioManager : IDisposable {
cAudioCSharpWrapperPINVOKE.IAudioManager_unRegisterAllAudioDecoders(swigCPtr);
}
public virtual bool registerDataSource(SWIGTYPE_p_IDataSourceFactory factory, string name, int priority) {
bool ret = cAudioCSharpWrapperPINVOKE.IAudioManager_registerDataSource(swigCPtr, SWIGTYPE_p_IDataSourceFactory.getCPtr(factory), name, priority);
public virtual bool registerDataSource(IDataSourceFactory factory, string name, int priority) {
bool ret = cAudioCSharpWrapperPINVOKE.IAudioManager_registerDataSource(swigCPtr, IDataSourceFactory.getCPtr(factory), name, priority);
return ret;
}
@ -166,9 +150,9 @@ public class IAudioManager : IDisposable {
return ret;
}
public virtual SWIGTYPE_p_IDataSourceFactory getDataSourceFactory(string name) {
public virtual IDataSourceFactory getDataSourceFactory(string name) {
IntPtr cPtr = cAudioCSharpWrapperPINVOKE.IAudioManager_getDataSourceFactory(swigCPtr, name);
SWIGTYPE_p_IDataSourceFactory ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_IDataSourceFactory(cPtr, false);
IDataSourceFactory ret = (cPtr == IntPtr.Zero) ? null : new IDataSourceFactory(cPtr, false);
return ret;
}
@ -176,21 +160,21 @@ public class IAudioManager : IDisposable {
cAudioCSharpWrapperPINVOKE.IAudioManager_unRegisterAllDataSources(swigCPtr);
}
public virtual void registerEventHandler(SWIGTYPE_p_IManagerEventHandler handler) {
cAudioCSharpWrapperPINVOKE.IAudioManager_registerEventHandler(swigCPtr, SWIGTYPE_p_IManagerEventHandler.getCPtr(handler));
public virtual void registerEventHandler(IManagerEventHandler handler) {
cAudioCSharpWrapperPINVOKE.IAudioManager_registerEventHandler(swigCPtr, IManagerEventHandler.getCPtr(handler));
}
public virtual void unRegisterEventHandler(SWIGTYPE_p_IManagerEventHandler handler) {
cAudioCSharpWrapperPINVOKE.IAudioManager_unRegisterEventHandler(swigCPtr, SWIGTYPE_p_IManagerEventHandler.getCPtr(handler));
public virtual void unRegisterEventHandler(IManagerEventHandler handler) {
cAudioCSharpWrapperPINVOKE.IAudioManager_unRegisterEventHandler(swigCPtr, IManagerEventHandler.getCPtr(handler));
}
public virtual void unRegisterAllEventHandlers() {
cAudioCSharpWrapperPINVOKE.IAudioManager_unRegisterAllEventHandlers(swigCPtr);
}
public virtual SWIGTYPE_p_IListener getListener() {
public virtual IListener getListener() {
IntPtr cPtr = cAudioCSharpWrapperPINVOKE.IAudioManager_getListener(swigCPtr);
SWIGTYPE_p_IListener ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_IListener(cPtr, false);
IListener ret = (cPtr == IntPtr.Zero) ? null : new IListener(cPtr, false);
return ret;
}

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.1
* Version 2.0.4
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
@ -40,8 +40,8 @@ public class IAudioPlugin : IRefCounted {
}
}
public virtual bool installPlugin(SWIGTYPE_p_ILogger logger) {
bool ret = cAudioCSharpWrapperPINVOKE.IAudioPlugin_installPlugin(swigCPtr, SWIGTYPE_p_ILogger.getCPtr(logger));
public virtual bool installPlugin(ILogger logger) {
bool ret = cAudioCSharpWrapperPINVOKE.IAudioPlugin_installPlugin(swigCPtr, ILogger.getCPtr(logger));
return ret;
}
@ -58,16 +58,16 @@ public class IAudioPlugin : IRefCounted {
cAudioCSharpWrapperPINVOKE.IAudioPlugin_onCreateAudioManager(swigCPtr, IAudioManager.getCPtr(manager));
}
public virtual void onCreateAudioCapture(SWIGTYPE_p_IAudioCapture capture) {
cAudioCSharpWrapperPINVOKE.IAudioPlugin_onCreateAudioCapture(swigCPtr, SWIGTYPE_p_IAudioCapture.getCPtr(capture));
public virtual void onCreateAudioCapture(IAudioCapture capture) {
cAudioCSharpWrapperPINVOKE.IAudioPlugin_onCreateAudioCapture(swigCPtr, IAudioCapture.getCPtr(capture));
}
public virtual void onDestroyAudioManager(IAudioManager manager) {
cAudioCSharpWrapperPINVOKE.IAudioPlugin_onDestroyAudioManager(swigCPtr, IAudioManager.getCPtr(manager));
}
public virtual void onDestoryAudioCapture(SWIGTYPE_p_IAudioCapture capture) {
cAudioCSharpWrapperPINVOKE.IAudioPlugin_onDestoryAudioCapture(swigCPtr, SWIGTYPE_p_IAudioCapture.getCPtr(capture));
public virtual void onDestoryAudioCapture(IAudioCapture capture) {
cAudioCSharpWrapperPINVOKE.IAudioPlugin_onDestoryAudioCapture(swigCPtr, IAudioCapture.getCPtr(capture));
}
}

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.1
* Version 2.0.4
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
@ -55,20 +55,20 @@ public class IAudioSource : IRefCounted {
return ret;
}
public virtual bool play3d(SWIGTYPE_p_cVector3 position, float soundstr, bool toLoop) {
bool ret = cAudioCSharpWrapperPINVOKE.IAudioSource_play3d__SWIG_0(swigCPtr, SWIGTYPE_p_cVector3.getCPtr(position), soundstr, toLoop);
public virtual bool play3d(cVector3 position, float soundstr, bool toLoop) {
bool ret = cAudioCSharpWrapperPINVOKE.IAudioSource_play3d__SWIG_0(swigCPtr, cVector3.getCPtr(position), soundstr, toLoop);
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public virtual bool play3d(SWIGTYPE_p_cVector3 position, float soundstr) {
bool ret = cAudioCSharpWrapperPINVOKE.IAudioSource_play3d__SWIG_1(swigCPtr, SWIGTYPE_p_cVector3.getCPtr(position), soundstr);
public virtual bool play3d(cVector3 position, float soundstr) {
bool ret = cAudioCSharpWrapperPINVOKE.IAudioSource_play3d__SWIG_1(swigCPtr, cVector3.getCPtr(position), soundstr);
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public virtual bool play3d(SWIGTYPE_p_cVector3 position) {
bool ret = cAudioCSharpWrapperPINVOKE.IAudioSource_play3d__SWIG_2(swigCPtr, SWIGTYPE_p_cVector3.getCPtr(position));
public virtual bool play3d(cVector3 position) {
bool ret = cAudioCSharpWrapperPINVOKE.IAudioSource_play3d__SWIG_2(swigCPtr, cVector3.getCPtr(position));
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
@ -130,10 +130,6 @@ public class IAudioSource : IRefCounted {
return ret;
}
public virtual void release() {
cAudioCSharpWrapperPINVOKE.IAudioSource_release(swigCPtr);
}
public virtual bool isValid() {
bool ret = cAudioCSharpWrapperPINVOKE.IAudioSource_isValid(swigCPtr);
return ret;
@ -159,18 +155,18 @@ public class IAudioSource : IRefCounted {
return ret;
}
public virtual void setPosition(SWIGTYPE_p_cVector3 position) {
cAudioCSharpWrapperPINVOKE.IAudioSource_setPosition(swigCPtr, SWIGTYPE_p_cVector3.getCPtr(position));
public virtual void setPosition(cVector3 position) {
cAudioCSharpWrapperPINVOKE.IAudioSource_setPosition(swigCPtr, cVector3.getCPtr(position));
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
}
public virtual void setVelocity(SWIGTYPE_p_cVector3 velocity) {
cAudioCSharpWrapperPINVOKE.IAudioSource_setVelocity(swigCPtr, SWIGTYPE_p_cVector3.getCPtr(velocity));
public virtual void setVelocity(cVector3 velocity) {
cAudioCSharpWrapperPINVOKE.IAudioSource_setVelocity(swigCPtr, cVector3.getCPtr(velocity));
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
}
public virtual void setDirection(SWIGTYPE_p_cVector3 direction) {
cAudioCSharpWrapperPINVOKE.IAudioSource_setDirection(swigCPtr, SWIGTYPE_p_cVector3.getCPtr(direction));
public virtual void setDirection(cVector3 direction) {
cAudioCSharpWrapperPINVOKE.IAudioSource_setDirection(swigCPtr, cVector3.getCPtr(direction));
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
}
@ -222,28 +218,28 @@ public class IAudioSource : IRefCounted {
cAudioCSharpWrapperPINVOKE.IAudioSource_setDopplerStrength(swigCPtr, dstrength);
}
public virtual void setDopplerVelocity(SWIGTYPE_p_cVector3 dvelocity) {
cAudioCSharpWrapperPINVOKE.IAudioSource_setDopplerVelocity(swigCPtr, SWIGTYPE_p_cVector3.getCPtr(dvelocity));
public virtual void setDopplerVelocity(cVector3 dvelocity) {
cAudioCSharpWrapperPINVOKE.IAudioSource_setDopplerVelocity(swigCPtr, cVector3.getCPtr(dvelocity));
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
}
public virtual void move(SWIGTYPE_p_cVector3 position) {
cAudioCSharpWrapperPINVOKE.IAudioSource_move(swigCPtr, SWIGTYPE_p_cVector3.getCPtr(position));
public virtual void move(cVector3 position) {
cAudioCSharpWrapperPINVOKE.IAudioSource_move(swigCPtr, cVector3.getCPtr(position));
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
}
public virtual SWIGTYPE_p_cVector3 getPosition() {
SWIGTYPE_p_cVector3 ret = new SWIGTYPE_p_cVector3(cAudioCSharpWrapperPINVOKE.IAudioSource_getPosition(swigCPtr), true);
public virtual cVector3 getPosition() {
cVector3 ret = new cVector3(cAudioCSharpWrapperPINVOKE.IAudioSource_getPosition(swigCPtr), true);
return ret;
}
public virtual SWIGTYPE_p_cVector3 getVelocity() {
SWIGTYPE_p_cVector3 ret = new SWIGTYPE_p_cVector3(cAudioCSharpWrapperPINVOKE.IAudioSource_getVelocity(swigCPtr), true);
public virtual cVector3 getVelocity() {
cVector3 ret = new cVector3(cAudioCSharpWrapperPINVOKE.IAudioSource_getVelocity(swigCPtr), true);
return ret;
}
public virtual SWIGTYPE_p_cVector3 getDirection() {
SWIGTYPE_p_cVector3 ret = new SWIGTYPE_p_cVector3(cAudioCSharpWrapperPINVOKE.IAudioSource_getDirection(swigCPtr), true);
public virtual cVector3 getDirection() {
cVector3 ret = new cVector3(cAudioCSharpWrapperPINVOKE.IAudioSource_getDirection(swigCPtr), true);
return ret;
}
@ -307,27 +303,17 @@ public class IAudioSource : IRefCounted {
return ret;
}
public virtual SWIGTYPE_p_cVector3 getDopplerVelocity() {
SWIGTYPE_p_cVector3 ret = new SWIGTYPE_p_cVector3(cAudioCSharpWrapperPINVOKE.IAudioSource_getDopplerVelocity(swigCPtr), true);
public virtual cVector3 getDopplerVelocity() {
cVector3 ret = new cVector3(cAudioCSharpWrapperPINVOKE.IAudioSource_getDopplerVelocity(swigCPtr), true);
return ret;
}
public virtual void registerEventHandler(ISourceEventHandler handler)
{
cAudioCSharpWrapperPINVOKE.IAudioSource_registerEventHandler(swigCPtr, ISourceEventHandler.getCPtr(handler));
public virtual void registerEventHandler(ISourceEventHandler handler) {
cAudioCSharpWrapperPINVOKE.IAudioSource_registerEventHandler(swigCPtr, ISourceEventHandler.getCPtr(handler));
}
public virtual void unRegisterEventHandler(ISourceEventHandler handler)
{
cAudioCSharpWrapperPINVOKE.IAudioSource_unRegisterEventHandler(swigCPtr, ISourceEventHandler.getCPtr(handler));
}
public virtual void registerEventHandler(SWIGTYPE_p_ISourceEventHandler handler) {
cAudioCSharpWrapperPINVOKE.IAudioSource_registerEventHandler(swigCPtr, SWIGTYPE_p_ISourceEventHandler.getCPtr(handler));
}
public virtual void unRegisterEventHandler(SWIGTYPE_p_ISourceEventHandler handler) {
cAudioCSharpWrapperPINVOKE.IAudioSource_unRegisterEventHandler(swigCPtr, SWIGTYPE_p_ISourceEventHandler.getCPtr(handler));
public virtual void unRegisterEventHandler(ISourceEventHandler handler) {
cAudioCSharpWrapperPINVOKE.IAudioSource_unRegisterEventHandler(swigCPtr, ISourceEventHandler.getCPtr(handler));
}
public virtual void unRegisterAllEventHandlers() {

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.1
* Version 2.0.4
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.1
* Version 2.0.4
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.1
* Version 2.0.4
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

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

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.1
* Version 2.0.4
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
@ -41,23 +41,23 @@ public class IListener : IDisposable {
}
}
public virtual void setPosition(SWIGTYPE_p_cVector3 pos) {
cAudioCSharpWrapperPINVOKE.IListener_setPosition(swigCPtr, SWIGTYPE_p_cVector3.getCPtr(pos));
public virtual void setPosition(cVector3 pos) {
cAudioCSharpWrapperPINVOKE.IListener_setPosition(swigCPtr, cVector3.getCPtr(pos));
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
}
public virtual void setDirection(SWIGTYPE_p_cVector3 dir) {
cAudioCSharpWrapperPINVOKE.IListener_setDirection(swigCPtr, SWIGTYPE_p_cVector3.getCPtr(dir));
public virtual void setDirection(cVector3 dir) {
cAudioCSharpWrapperPINVOKE.IListener_setDirection(swigCPtr, cVector3.getCPtr(dir));
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
}
public virtual void setUpVector(SWIGTYPE_p_cVector3 up) {
cAudioCSharpWrapperPINVOKE.IListener_setUpVector(swigCPtr, SWIGTYPE_p_cVector3.getCPtr(up));
public virtual void setUpVector(cVector3 up) {
cAudioCSharpWrapperPINVOKE.IListener_setUpVector(swigCPtr, cVector3.getCPtr(up));
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
}
public virtual void setVelocity(SWIGTYPE_p_cVector3 vel) {
cAudioCSharpWrapperPINVOKE.IListener_setVelocity(swigCPtr, SWIGTYPE_p_cVector3.getCPtr(vel));
public virtual void setVelocity(cVector3 vel) {
cAudioCSharpWrapperPINVOKE.IListener_setVelocity(swigCPtr, cVector3.getCPtr(vel));
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
}
@ -65,28 +65,28 @@ public class IListener : IDisposable {
cAudioCSharpWrapperPINVOKE.IListener_setMasterVolume(swigCPtr, volume);
}
public virtual void move(SWIGTYPE_p_cVector3 pos) {
cAudioCSharpWrapperPINVOKE.IListener_move(swigCPtr, SWIGTYPE_p_cVector3.getCPtr(pos));
public virtual void move(cVector3 pos) {
cAudioCSharpWrapperPINVOKE.IListener_move(swigCPtr, cVector3.getCPtr(pos));
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
}
public virtual SWIGTYPE_p_cVector3 getPosition() {
SWIGTYPE_p_cVector3 ret = new SWIGTYPE_p_cVector3(cAudioCSharpWrapperPINVOKE.IListener_getPosition(swigCPtr), true);
public virtual cVector3 getPosition() {
cVector3 ret = new cVector3(cAudioCSharpWrapperPINVOKE.IListener_getPosition(swigCPtr), true);
return ret;
}
public virtual SWIGTYPE_p_cVector3 getDirection() {
SWIGTYPE_p_cVector3 ret = new SWIGTYPE_p_cVector3(cAudioCSharpWrapperPINVOKE.IListener_getDirection(swigCPtr), true);
public virtual cVector3 getDirection() {
cVector3 ret = new cVector3(cAudioCSharpWrapperPINVOKE.IListener_getDirection(swigCPtr), true);
return ret;
}
public virtual SWIGTYPE_p_cVector3 getUpVector() {
SWIGTYPE_p_cVector3 ret = new SWIGTYPE_p_cVector3(cAudioCSharpWrapperPINVOKE.IListener_getUpVector(swigCPtr), true);
public virtual cVector3 getUpVector() {
cVector3 ret = new cVector3(cAudioCSharpWrapperPINVOKE.IListener_getUpVector(swigCPtr), true);
return ret;
}
public virtual SWIGTYPE_p_cVector3 getVelocity() {
SWIGTYPE_p_cVector3 ret = new SWIGTYPE_p_cVector3(cAudioCSharpWrapperPINVOKE.IListener_getVelocity(swigCPtr), true);
public virtual cVector3 getVelocity() {
cVector3 ret = new cVector3(cAudioCSharpWrapperPINVOKE.IListener_getVelocity(swigCPtr), true);
return ret;
}

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.1
* Version 2.0.4
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.1
* Version 2.0.4
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
@ -61,18 +61,17 @@ public class ILogger : IDisposable {
cAudioCSharpWrapperPINVOKE.ILogger_logDebug(swigCPtr, sender, msg);
}
public virtual SWIGTYPE_p_LogLevel getLogLevel() {
SWIGTYPE_p_LogLevel ret = new SWIGTYPE_p_LogLevel(cAudioCSharpWrapperPINVOKE.ILogger_getLogLevel(swigCPtr), false);
public virtual LogLevel getLogLevel() {
LogLevel ret = (LogLevel)cAudioCSharpWrapperPINVOKE.ILogger_getLogLevel(swigCPtr);
return ret;
}
public virtual void setLogLevel(SWIGTYPE_p_LogLevel logLevel) {
cAudioCSharpWrapperPINVOKE.ILogger_setLogLevel(swigCPtr, SWIGTYPE_p_LogLevel.getCPtr(logLevel));
if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending) throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
public virtual void setLogLevel(LogLevel logLevel) {
cAudioCSharpWrapperPINVOKE.ILogger_setLogLevel(swigCPtr, (int)logLevel);
}
public virtual bool registerLogReceiver(SWIGTYPE_p_ILogReceiver receiver, string name) {
bool ret = cAudioCSharpWrapperPINVOKE.ILogger_registerLogReceiver(swigCPtr, SWIGTYPE_p_ILogReceiver.getCPtr(receiver), name);
public virtual bool registerLogReceiver(ILogReceiver receiver, string name) {
bool ret = cAudioCSharpWrapperPINVOKE.ILogger_registerLogReceiver(swigCPtr, ILogReceiver.getCPtr(receiver), name);
return ret;
}
@ -85,9 +84,9 @@ public class ILogger : IDisposable {
return ret;
}
public virtual SWIGTYPE_p_ILogReceiver getLogReceiver(string name) {
public virtual ILogReceiver getLogReceiver(string name) {
IntPtr cPtr = cAudioCSharpWrapperPINVOKE.ILogger_getLogReceiver(swigCPtr, name);
SWIGTYPE_p_ILogReceiver ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_ILogReceiver(cPtr, false);
ILogReceiver ret = (cPtr == IntPtr.Zero) ? null : new ILogReceiver(cPtr, false);
return ret;
}

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.1
* Version 2.0.4
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.1
* Version 2.0.4
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.1
* Version 2.0.4
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.1
* Version 2.0.4
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.1
* Version 2.0.4
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.1
* Version 2.0.4
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.1
* Version 2.0.4
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.1
* Version 2.0.4
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.1
* Version 2.0.4
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.1
* Version 2.0.4
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.1
* Version 2.0.4
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.1
* Version 2.0.4
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.1
* Version 2.0.4
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.1
* Version 2.0.4
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -39,12 +39,14 @@
<Compile Include="IAudioCapture.cs" />
<Compile Include="IAudioDecoder.cs" />
<Compile Include="IAudioDecoderFactory.cs" />
<Compile Include="IAudioDeviceList.cs" />
<Compile Include="IAudioManager.cs" />
<Compile Include="IAudioPlugin.cs" />
<Compile Include="IAudioSource.cs" />
<Compile Include="ICaptureEventHandler.cs" />
<Compile Include="IDataSource.cs" />
<Compile Include="IDataSourceFactory.cs" />
<Compile Include="IDeviceType.cs" />
<Compile Include="IListener.cs" />
<Compile Include="ILogger.cs" />
<Compile Include="ILogReceiver.cs" />
@ -59,17 +61,7 @@
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="StringMap.cs" />
<Compile Include="StringVector.cs" />
<Compile Include="SWIGTYPE_p_AudioFormats.cs" />
<Compile Include="SWIGTYPE_p_cVector3.cs" />
<Compile Include="SWIGTYPE_p_float.cs" />
<Compile Include="SWIGTYPE_p_IAudioCapture.cs" />
<Compile Include="SWIGTYPE_p_IDataSourceFactory.cs" />
<Compile Include="SWIGTYPE_p_IListener.cs" />
<Compile Include="SWIGTYPE_p_ILogger.cs" />
<Compile Include="SWIGTYPE_p_ILogReceiver.cs" />
<Compile Include="SWIGTYPE_p_IManagerEventHandler.cs" />
<Compile Include="SWIGTYPE_p_ISourceEventHandler.cs" />
<Compile Include="SWIGTYPE_p_LogLevel.cs" />
<Compile Include="SWIGTYPE_p_p_char.cs" />
<Compile Include="SWIGTYPE_p_std__basic_stringT_char_t.cs" />
<Compile Include="SWIGTYPE_p_void.cs" />

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.1
* Version 2.0.4
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
@ -12,62 +12,6 @@ using System;
using System.Runtime.InteropServices;
public class cAudioCSharpWrapper {
public static SWIGTYPE_p_p_char LogLevelStrings {
get {
IntPtr cPtr = cAudioCSharpWrapperPINVOKE.LogLevelStrings_get();
SWIGTYPE_p_p_char ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_p_char(cPtr, false);
return ret;
}
}
public static IAudioManager createAudioManager(bool initializeDefault) {
IntPtr cPtr = cAudioCSharpWrapperPINVOKE.createAudioManager__SWIG_0(initializeDefault);
IAudioManager ret = (cPtr == IntPtr.Zero) ? null : new IAudioManager(cPtr, false);
return ret;
}
public static IAudioManager createAudioManager() {
IntPtr cPtr = cAudioCSharpWrapperPINVOKE.createAudioManager__SWIG_1();
IAudioManager ret = (cPtr == IntPtr.Zero) ? null : new IAudioManager(cPtr, false);
return ret;
}
public static void destroyAudioManager(IAudioManager manager) {
cAudioCSharpWrapperPINVOKE.destroyAudioManager(IAudioManager.getCPtr(manager));
}
public static SWIGTYPE_p_IAudioCapture createAudioCapture(bool initializeDefault) {
IntPtr cPtr = cAudioCSharpWrapperPINVOKE.createAudioCapture__SWIG_0(initializeDefault);
SWIGTYPE_p_IAudioCapture ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_IAudioCapture(cPtr, false);
return ret;
}
public static SWIGTYPE_p_IAudioCapture createAudioCapture() {
IntPtr cPtr = cAudioCSharpWrapperPINVOKE.createAudioCapture__SWIG_1();
SWIGTYPE_p_IAudioCapture ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_IAudioCapture(cPtr, false);
return ret;
}
public static void destroyAudioCapture(SWIGTYPE_p_IAudioCapture capture) {
cAudioCSharpWrapperPINVOKE.destroyAudioCapture(SWIGTYPE_p_IAudioCapture.getCPtr(capture));
}
public static ILogger getLogger() {
IntPtr cPtr = cAudioCSharpWrapperPINVOKE.getLogger();
ILogger ret = (cPtr == IntPtr.Zero) ? null : new ILogger(cPtr, false);
return ret;
}
public static IMemoryProvider getMemoryProvider() {
IntPtr cPtr = cAudioCSharpWrapperPINVOKE.getMemoryProvider();
IMemoryProvider ret = (cPtr == IntPtr.Zero) ? null : new IMemoryProvider(cPtr, false);
return ret;
}
public static void cAudioSleep(uint ms) {
cAudioCSharpWrapperPINVOKE.cAudioSleep(ms);
}
public static string toWINSTR(string str) {
string ret = cAudioCSharpWrapperPINVOKE.toWINSTR(str);
return ret;
@ -96,6 +40,74 @@ public class cAudioCSharpWrapper {
return ret;
}
public static SWIGTYPE_p_p_char LogLevelStrings {
get {
IntPtr cPtr = cAudioCSharpWrapperPINVOKE.LogLevelStrings_get();
SWIGTYPE_p_p_char ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_p_char(cPtr, false);
return ret;
}
}
public static IAudioManager createAudioManager(bool initializeDefault) {
IntPtr cPtr = cAudioCSharpWrapperPINVOKE.createAudioManager__SWIG_0(initializeDefault);
IAudioManager ret = (cPtr == IntPtr.Zero) ? null : new IAudioManager(cPtr, false);
return ret;
}
public static IAudioManager createAudioManager() {
IntPtr cPtr = cAudioCSharpWrapperPINVOKE.createAudioManager__SWIG_1();
IAudioManager ret = (cPtr == IntPtr.Zero) ? null : new IAudioManager(cPtr, false);
return ret;
}
public static void destroyAudioManager(IAudioManager manager) {
cAudioCSharpWrapperPINVOKE.destroyAudioManager(IAudioManager.getCPtr(manager));
}
public static IAudioCapture createAudioCapture(bool initializeDefault) {
IntPtr cPtr = cAudioCSharpWrapperPINVOKE.createAudioCapture__SWIG_0(initializeDefault);
IAudioCapture ret = (cPtr == IntPtr.Zero) ? null : new IAudioCapture(cPtr, false);
return ret;
}
public static IAudioCapture createAudioCapture() {
IntPtr cPtr = cAudioCSharpWrapperPINVOKE.createAudioCapture__SWIG_1();
IAudioCapture ret = (cPtr == IntPtr.Zero) ? null : new IAudioCapture(cPtr, false);
return ret;
}
public static void destroyAudioCapture(IAudioCapture capture) {
cAudioCSharpWrapperPINVOKE.destroyAudioCapture(IAudioCapture.getCPtr(capture));
}
public static ILogger getLogger() {
IntPtr cPtr = cAudioCSharpWrapperPINVOKE.getLogger();
ILogger ret = (cPtr == IntPtr.Zero) ? null : new ILogger(cPtr, false);
return ret;
}
public static IAudioDeviceList createAudioDeviceList(IDeviceType deviceType) {
IntPtr cPtr = cAudioCSharpWrapperPINVOKE.createAudioDeviceList__SWIG_0((int)deviceType);
IAudioDeviceList ret = (cPtr == IntPtr.Zero) ? null : new IAudioDeviceList(cPtr, false);
return ret;
}
public static IAudioDeviceList createAudioDeviceList() {
IntPtr cPtr = cAudioCSharpWrapperPINVOKE.createAudioDeviceList__SWIG_1();
IAudioDeviceList ret = (cPtr == IntPtr.Zero) ? null : new IAudioDeviceList(cPtr, false);
return ret;
}
public static IMemoryProvider getMemoryProvider() {
IntPtr cPtr = cAudioCSharpWrapperPINVOKE.getMemoryProvider();
IMemoryProvider ret = (cPtr == IntPtr.Zero) ? null : new IMemoryProvider(cPtr, false);
return ret;
}
public static void cAudioSleep(uint ms) {
cAudioCSharpWrapperPINVOKE.cAudioSleep(ms);
}
public static SWIGTYPE_p_float new_floatp() {
IntPtr cPtr = cAudioCSharpWrapperPINVOKE.new_floatp();
SWIGTYPE_p_float ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_float(cPtr, false);

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.1
* Version 2.0.4
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -38,6 +38,7 @@
#include "IAudioCapture.h"
#include "IAudioDecoder.h"
#include "IAudioDecoderFactory.h"
#include "IAudioDeviceList.h"
%}
#if !defined(SWIGLUA) && !defined(SWIGR)
@ -140,36 +141,38 @@
%feature("director") cAudio::IAudioDecoderFactory;
%feature("director") cAudio::IAudioDecoder;
%include "..\cAudio\include\cAudioString.h"
%include "..\cAudio\include\IAudioDeviceList.h"
%include "..\cAudio\include\EAudioFormats.h"
%include "..\cAudio\include\IRefCounted.h"
%include "..\cAudio\include\IDataSource.h"
%include "..\cAudio\include\IDataSourceFactory.h"
%include "..\cAudio\include\cVector3.h"
%include "..\cAudio\include\IListener.h"
%include "..\cAudio\include\ILogReceiver.h"
%include "..\cAudio\include\ILogger.h"
%include "..\cAudio\include\IManagerEventHandler.h"
%include "..\cAudio\include\ISourceEventHandler.h"
%include "..\cAudio\include\ICaptureEventHandler.h"
%include "..\cAudio\include\IAudioCapture.h"
%include "..\cAudio\include\IAudioDecoder.h"
%include "..\cAudio\include\IAudioDecoderFactory.h"
%include "..\cAudio\include\IAudioEffects.h"
%include "..\cAudio\include\IAudioManager.h"
%include "..\cAudio\include\IAudioPlugin.h"
%include "..\cAudio\include\IAudioSource.h"
%include "..\cAudio\include\ICaptureEventHandler.h"
%include "..\cAudio\include\IDataSource.h"
%include "..\cAudio\include\IDataSourceFactory.h"
%include "..\cAudio\include\IEffect.h"
%include "..\cAudio\include\IEffectParameters.h"
%include "..\cAudio\include\IFilter.h"
%include "..\cAudio\include\IListener.h"
%include "..\cAudio\include\ILogger.h"
%include "..\cAudio\include\ILogReceiver.h"
%include "..\cAudio\include\IManagerEventHandler.h"
%include "..\cAudio\include\IMemoryProvider.h"
%include "..\cAudio\include\IPluginManager.h"
%include "..\cAudio\include\ISourceEventHandler.h"
%include "..\cAudio\include\IThread.h"
%include "..\cAudio\include\cAudio.h"
%include "..\cAudio\include\cAudioDefines.h"
%include "..\cAudio\include\cAudioMemory.h"
%include "..\cAudio\include\cAudioPlatform.h"
%include "..\cAudio\include\cAudioSleep.h"
%include "..\cAudio\include\cAudioString.h"
%include "..\cAudio\include\cVector3.h"
%include "..\cAudio\include\EAudioFormats.h"
%include "..\cAudio\include\IAudioCapture.h"
%include "..\cAudio\include\IAudioDecoder.h"
%include "..\cAudio\include\IAudioDecoderFactory.h"
namespace std {
%template(IntVector) vector<int>;

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.1
* Version 2.0.4
*
* 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
@ -11,35 +11,6 @@
#ifndef SWIG_cAudioCSharpWrapper_WRAP_H_
#define SWIG_cAudioCSharpWrapper_WRAP_H_
class SwigDirector_ICaptureEventHandler : public cAudio::ICaptureEventHandler, public Swig::Director {
public:
SwigDirector_ICaptureEventHandler();
virtual void onInit();
virtual void onUpdate();
virtual void onRelease();
virtual void onBeginCapture();
virtual void onEndCapture();
virtual void onUserRequestBuffer();
typedef void (SWIGSTDCALL* SWIG_Callback0_t)();
typedef void (SWIGSTDCALL* SWIG_Callback1_t)();
typedef void (SWIGSTDCALL* SWIG_Callback2_t)();
typedef void (SWIGSTDCALL* SWIG_Callback3_t)();
typedef void (SWIGSTDCALL* SWIG_Callback4_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);
private:
SWIG_Callback0_t swig_callbackonInit;
SWIG_Callback1_t swig_callbackonUpdate;
SWIG_Callback2_t swig_callbackonRelease;
SWIG_Callback3_t swig_callbackonBeginCapture;
SWIG_Callback4_t swig_callbackonEndCapture;
SWIG_Callback5_t swig_callbackonUserRequestBuffer;
void swig_init_callbacks();
};
class SwigDirector_IDataSource : public cAudio::IDataSource, public Swig::Director {
public:
@ -151,6 +122,35 @@ private:
void swig_init_callbacks();
};
class SwigDirector_ICaptureEventHandler : public cAudio::ICaptureEventHandler, public Swig::Director {
public:
SwigDirector_ICaptureEventHandler();
virtual void onInit();
virtual void onUpdate();
virtual void onRelease();
virtual void onBeginCapture();
virtual void onEndCapture();
virtual void onUserRequestBuffer();
typedef void (SWIGSTDCALL* SWIG_Callback0_t)();
typedef void (SWIGSTDCALL* SWIG_Callback1_t)();
typedef void (SWIGSTDCALL* SWIG_Callback2_t)();
typedef void (SWIGSTDCALL* SWIG_Callback3_t)();
typedef void (SWIGSTDCALL* SWIG_Callback4_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);
private:
SWIG_Callback0_t swig_callbackonInit;
SWIG_Callback1_t swig_callbackonUpdate;
SWIG_Callback2_t swig_callbackonRelease;
SWIG_Callback3_t swig_callbackonBeginCapture;
SWIG_Callback4_t swig_callbackonEndCapture;
SWIG_Callback5_t swig_callbackonUserRequestBuffer;
void swig_init_callbacks();
};
class SwigDirector_IAudioDecoder : public cAudio::IAudioDecoder, public Swig::Director {
public:
@ -169,7 +169,7 @@ public:
virtual float getCurrentTime();
virtual int getCurrentPosition();
virtual int getCurrentCompressedPosition();
virtual cAudioString getType() const;
virtual cAudio::cAudioString getType() const;
typedef int (SWIGSTDCALL* SWIG_Callback0_t)();
typedef int (SWIGSTDCALL* SWIG_Callback1_t)();
@ -184,7 +184,8 @@ public:
typedef float (SWIGSTDCALL* SWIG_Callback10_t)();
typedef int (SWIGSTDCALL* SWIG_Callback11_t)();
typedef int (SWIGSTDCALL* SWIG_Callback12_t)();
void swig_connect_director(SWIG_Callback0_t callbackgetFormat, SWIG_Callback1_t callbackgetFrequency, SWIG_Callback2_t callbackisSeekingSupported, SWIG_Callback3_t callbackisValid, SWIG_Callback4_t callbackreadAudioData, SWIG_Callback5_t callbacksetPosition, SWIG_Callback6_t callbackseek, SWIG_Callback7_t callbackgetTotalTime, SWIG_Callback8_t callbackgetTotalSize, SWIG_Callback9_t callbackgetCompressedSize, SWIG_Callback10_t callbackgetCurrentTime, SWIG_Callback11_t callbackgetCurrentPosition, SWIG_Callback12_t callbackgetCurrentCompressedPosition);
typedef void * (SWIGSTDCALL* SWIG_Callback13_t)();
void swig_connect_director(SWIG_Callback0_t callbackgetFormat, SWIG_Callback1_t callbackgetFrequency, SWIG_Callback2_t callbackisSeekingSupported, SWIG_Callback3_t callbackisValid, SWIG_Callback4_t callbackreadAudioData, SWIG_Callback5_t callbacksetPosition, SWIG_Callback6_t callbackseek, SWIG_Callback7_t callbackgetTotalTime, SWIG_Callback8_t callbackgetTotalSize, SWIG_Callback9_t callbackgetCompressedSize, SWIG_Callback10_t callbackgetCurrentTime, SWIG_Callback11_t callbackgetCurrentPosition, SWIG_Callback12_t callbackgetCurrentCompressedPosition, SWIG_Callback13_t callbackgetType);
private:
SWIG_Callback0_t swig_callbackgetFormat;
@ -200,6 +201,7 @@ private:
SWIG_Callback10_t swig_callbackgetCurrentTime;
SWIG_Callback11_t swig_callbackgetCurrentPosition;
SWIG_Callback12_t swig_callbackgetCurrentCompressedPosition;
SWIG_Callback13_t swig_callbackgetType;
void swig_init_callbacks();
};