BitOrchestra.Sound._CreateDirectSound C# (CSharp) Method

_CreateDirectSound() private static method

Tries creating a directsound interface.
private static _CreateDirectSound ( IWavePlayer &Player ) : bool
Player IWavePlayer
return bool
        private static bool _CreateDirectSound(out IWavePlayer Player)
        {
            try
            {
                Player = new DirectSoundOut();
                return true;
            }
            catch
            {
                Player = null;
                return false;
            }
        }