Beispiel #1
0
 /// <summary>
 /// Opens the default playback device if not open and returns it.
 /// </summary>
 public static AlDevice GetDefault()
 {
     if (_defaultDevice == null || _defaultDevice._disposed)
     {
         _defaultDevice = new AlDevice(null);
     }
     return(_defaultDevice);
 }
Beispiel #2
0
 internal AlContext(AlDevice device, IntPtr handle)
 {
     Device   = device;
     Handle   = handle;
     _sources = new List <AlSource>();
 }