Пример #1
0
 public AudioDevice(string device_name)
 {
     m_Handle   = IntPtr.Zero;
     m_Name     = device_name;
     m_Context  = null;
     m_Listener = null;
 }
Пример #2
0
 public virtual void CloseContext()
 {
     if (m_Context != null)
     {
         m_Context.Dispose();
         m_Context = null;
     }
 }
Пример #3
0
 public virtual bool CreateContext()
 {
     if (m_Handle == IntPtr.Zero)
     {
         return(false);
     }
     if (m_Context != null)
     {
         m_Context.Dispose();
     }
     m_Context = new OpenALContext(this);
     return(m_Context.Exists);
 }
Пример #4
0
 public OpenALExternals(OpenALContext context)
 {
     IGE.Platform.API.RuntimeImport(this, GetProcAddressInternal, null);
 }