Commit 02ddcc6d authored by Maurice Tayeb Andreas's avatar Maurice Tayeb Andreas

Added some functions to VACS.cs

parent ba06a774
......@@ -158,6 +158,30 @@ namespace VA
NativeSetSoundSourceMuted(_NetClient, iSoundSourceID, bMuted);
}
public int LoadDirectivity(string sFileName, string sName)
{
return NativeLoadDirectivity(_NetClient, sFileName, sName);
}
public bool FreeDirectivity(int iDirID)
{
return NativeFreeDirectivity(_NetClient, iDirID);
}
public int LoadSound(string sFileName, string sName)
{
return NativeLoadSound(_NetClient, sFileName, sName);
}
public bool FreeSound(int iSoundID)
{
return NativeFreeSound(_NetClient, iSoundID);
}
public void SetSoundSourceEnabled(int iSoundSourceID, bool bEnabled)
{
NativeSetSoundSourceEnabled(_NetClient, iSoundSourceID, bEnabled);
}
public void SetListenerEnabled(, int iListenerID, bool bEnabled)
{
NativeSetListenerEnabled(_NetClient, iListenerID, bEnabled);
}
/*
* Native imported functions from C++ unmanaged library declared private, so they can not be accessed
* directly through C# class method
......@@ -224,7 +248,7 @@ namespace VA
//[ DllImport( "VANetCSWrapper" ) ] private static extern void NativeSetSoundSourceParameters( IntPtr pClient, int iID, CVAStruct oParams, CVAStruct& oResult );
[ DllImport( "VANetCSWrapper" ) ] private static extern int NativeGetSoundSourceDirectivity( IntPtr pClient, int iSoundSourceID );
[ DllImport( "VANetCSWrapper" ) ] private static extern void NativeSetSoundSourceDirectivity( IntPtr pClient, int iSoundSourceID, int iDirectivityID );
[ DllImport( "VANetCSWrapper" ) ] private static extern double GetSoundSourceVolume( IntPtr pClient, int iSoundSourceID );
[ DllImport( "VANetCSWrapper" ) ] private static extern double NativeGetSoundSourceVolume( IntPtr pClient, int iSoundSourceID );
[ DllImport( "VANetCSWrapper" ) ] private static extern void NativeSetSoundSourceVolume( IntPtr pClient, int iSoundSourceID, int dGain );
[ DllImport( "VANetCSWrapper" ) ] private static extern bool NativeIsSoundSourceMuted( IntPtr pClient, int iSoundSourceID );
[ DllImport( "VANetCSWrapper" ) ] private static extern void NativeSetSoundSourceMuted( IntPtr pClient, int iSoundSourceID, bool bMuted );
......
......@@ -25,10 +25,10 @@ public class VAUListener : MonoBehaviour {
_VA.SetListenerOrientationYPR(Listener, -t.transform.rotation.eulerAngles.x, -t.transform.rotation.eulerAngles.y, t.transform.rotation.eulerAngles.z);
}
//void OnDestroy()
//{
// _VA.DeleteListener(Listener);
//}
void OnDestroy()
{
_VA.DeleteListener(Listener);
}
}
......@@ -44,10 +44,10 @@ public class VAUSoundSource : MonoBehaviour {
}
//void OnDestroy()
//{
// _VA.DeleteSignalSource(SignalSource);
// _VA.DeleteSoundSource(SoundSource);
//}
void OnDestroy()
{
//_VA.DeleteSoundSource(SoundSource);
//_VA.DeleteSignalSource(SignalSource);
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment