Gablarski.OpenAL.PlaybackDevice.Open C# (CSharp) Méthode

Open() public méthode

Opens the device.
public Open ( ) : PlaybackDevice
Résultat PlaybackDevice
        public PlaybackDevice Open()
        {
            ThrowIfDisposed();

            OpenAL.DebugFormat ("Opening playback device {0}", Name);

            this.Handle = alcOpenDevice (this.Name);

            if (this.Handle == IntPtr.Zero)
                throw new Exception ("Device failed to open for an unknown reason.");
            else
                OpenAL.ErrorCheck (this);

            return this;
        }