예제 #1
0
        public static bool Init()
        {
            if (_Playback != null)
            {
                return(false);
            }
            switch (CConfig.Config.Sound.PlayBackLib)
            {
            case EPlaybackLib.PortAudio:
                _Playback = new CPortAudioPlay();
                break;

            case EPlaybackLib.OpenAL:
                _Playback = new COpenALPlay();
                break;

            case EPlaybackLib.GstreamerSharp:
                _Playback = new CGstreamerSharpAudio();
                break;

            default:
                _Playback = new CPortAudioPlay();
                break;
            }
            return(_Playback.Init());
        }