Beispiel #1
0
        /// <summary>
        /// Initializes the device.
        /// </summary>
        private void InitializeDevice()
        {
            if (_deviceHandle != IntPtr.Zero)
            {
                return;
            }

            _disposing    = false;
            _deviceHandle = OpenAL.alcOpenDevice(Name);
            Context       = OpenALContext.CreateContext(_deviceHandle);
            SourcePool    = new OpenALSourcePool(Context);
        }
Beispiel #2
0
        /// <summary>
        /// Initializes the device.
        /// </summary>
        private void InitializeDevice()
        {
            if (_deviceHandle != IntPtr.Zero) return;

            _disposing = false;
            _deviceHandle = OpenAL.alcOpenDevice(Name);
            Context = OpenALContext.CreateContext(_deviceHandle);
            SourcePool = new OpenALSourcePool(Context);
        }