コード例 #1
0
            private void LoadBassLibraries(string targetPath)
            {
                if (!proxy.BassLoadMe(targetPath))
                {
                    throw new BassAudioServiceException("Could not load bass native libraries from the following path: " + targetPath);
                }

                if (!proxy.BassMixLoadMe(targetPath))
                {
                    throw new BassAudioServiceException("Could not load bassmix library from the following path: " + targetPath);
                }

                if (!proxy.BassFxLoadMe(targetPath))
                {
                    throw new BassAudioServiceException("Could not load bassfx library from the following path: " + targetPath);
                }

                DummyCallToLoadBassLibraries();
            }
コード例 #2
0
        private void LoadBassLibraries(string targetPath)
        {
            if (!bassServiceProxy.BassLoadMe(targetPath))
            {
                throw new BassAudioServiceException("Could not load bass native libraries from the following path: " + targetPath);
            }

            if (!bassServiceProxy.BassMixLoadMe(targetPath))
            {
                throw new BassAudioServiceException("Could not load bassmix library from the following path: " + targetPath);
            }

            if (!bassServiceProxy.BassFxLoadMe(targetPath))
            {
                throw new BassAudioServiceException("Could not load bassfx library from the following path: " + targetPath);
            }

            // dummy calls to load bass libraries
            bassServiceProxy.GetVersion();
            bassServiceProxy.GetMixerVersion();
            bassServiceProxy.GetFxVersion();
        }