예제 #1
0
        /// <exception cref="BassNotLoadedException">
        ///     Bass DLL not loaded, you must use <see cref="BassManager.Initialize" /> to
        ///     load Bass DLL first.
        /// </exception>
        internal override void FreeModule()
        {
            if (!BassManager.Available) throw new BassNotLoadedException();

            MusicLoadFunction = null;
            MusicFreeFunction = null;

            ModuleAvailable = false;
        }
예제 #2
0
        /// <exception cref="NoBassFunctionAttributeException">
        ///     Can't find <see cref="T:xZune.Bass.Interop.BassFunctionAttribute" />
        ///     in this Bass function.
        /// </exception>
        /// <exception cref="FunctionNotFoundException">Can't find this function in Bass DLL.</exception>
        /// <exception cref="TypeLoadException">A custom attribute type cannot be loaded. </exception>
        /// <exception cref="BassNotLoadedException">
        ///     Bass DLL not loaded, you must use <see cref="BassManager.Initialize" /> to
        ///     load Bass DLL first.
        /// </exception>
        internal override void InitializeModule()
        {
            if (!BassManager.Available) throw new BassNotLoadedException();

            MusicLoadFunction = new BassFunction<MusicLoad>();
            MusicFreeFunction = new BassFunction<MusicFree>();

            ModuleAvailable = true;
        }
예제 #3
0
        internal override void InitializeModule()
        {
            if (!BassManager.Available) throw new BassNotLoadedException();

            TtaStreamCreateFileFunction = new BassFunction<TtaStreamCreateFile>();
            TtaStreamCreateFileUserFunction = new BassFunction<TtaStreamCreateFileUser>();

            ModuleAvailable = true;
        }
예제 #4
0
        internal override void FreeModule()
        {
            if (!BassManager.Available) throw new BassNotLoadedException();

            WmaStreamCreateFileFunction = null;
            WmaStreamCreateFileUserFunction = null;

            ModuleAvailable = false;
        }
예제 #5
0
        internal override void InitializeModule()
        {
            if (!BassManager.Available) throw new BassNotLoadedException();

            PluginFreeFunction = new BassFunction<PluginFree>();
            PluginLoadFunction = new BassFunction<PluginLoad>();
            PluginGetInfoFunction = new BassFunction<PluginGetInfo>();

            ModuleAvailable = true;
        }
예제 #6
0
        internal override void FreeModule()
        {
            if (!BassManager.Available) throw new BassNotLoadedException();

            FXResetFunction = null;
            FXGetParametersFunction = null;
            FXSetParametersFunction = null;

            ModuleAvailable = false;
        }
예제 #7
0
        internal override void FreeModule()
        {
            if (!BassManager.Available) throw new BassNotLoadedException();

            PluginFreeFunction = null;
            PluginLoadFunction = null;
            PluginGetInfoFunction = null;

            ModuleAvailable = false;
        }
예제 #8
0
        internal override void InitializeModule()
        {
            if (!BassManager.Available) throw new BassNotLoadedException();

            FXResetFunction = new BassFunction<FXReset>();
            FXGetParametersFunction = new BassFunction<FXGetParameters>();
            FXSetParametersFunction = new BassFunction<FXSetParameters>();

            ModuleAvailable = true;
        }
예제 #9
0
        /// <exception cref="NoBassFunctionAttributeException">
        ///     Can't find <see cref="T:xZune.Bass.Interop.BassFunctionAttribute" />
        ///     in this Bass function.
        /// </exception>
        /// <exception cref="FunctionNotFoundException">Can't find this function in Bass DLL.</exception>
        /// <exception cref="TypeLoadException">A custom attribute type cannot be loaded. </exception>
        /// <exception cref="BassNotLoadedException">
        ///     Bass DLL not loaded, you must use <see cref="BassManager.Initialize" /> to
        ///     load Bass DLL first.
        /// </exception>
        internal override void InitializeModule()
        {
            if (!BassManager.Available)
            {
                throw new BassNotLoadedException();
            }

            MusicLoadFunction = new BassFunction <MusicLoad>();
            MusicFreeFunction = new BassFunction <MusicFree>();

            ModuleAvailable = true;
        }
예제 #10
0
        internal override void FreeModule()
        {
            if (!BassManager.Available)
            {
                throw new BassNotLoadedException();
            }

            ApeStreamCreateFileFunction     = null;
            ApeStreamCreateFileUserFunction = null;

            ModuleAvailable = false;
        }
예제 #11
0
        internal override void InitializeModule()
        {
            if (!BassManager.Available)
            {
                throw new BassNotLoadedException();
            }

            ApeStreamCreateFileFunction     = new BassFunction <ApeStreamCreateFile>();
            ApeStreamCreateFileUserFunction = new BassFunction <ApeStreamCreateFileUser>();

            ModuleAvailable = true;
        }
예제 #12
0
        /// <exception cref="BassNotLoadedException">
        ///     Bass DLL not loaded, you must use <see cref="BassManager.Initialize" /> to
        ///     load Bass DLL first.
        /// </exception>
        internal override void FreeModule()
        {
            if (!BassManager.Available)
            {
                throw new BassNotLoadedException();
            }

            MusicLoadFunction = null;
            MusicFreeFunction = null;

            ModuleAvailable = false;
        }
예제 #13
0
        internal override void InitializeModule()
        {
            if (!BassManager.Available)
            {
                throw new BassNotLoadedException();
            }

            PluginFreeFunction    = new BassFunction <PluginFree>();
            PluginLoadFunction    = new BassFunction <PluginLoad>();
            PluginGetInfoFunction = new BassFunction <PluginGetInfo>();

            ModuleAvailable = true;
        }
예제 #14
0
        internal override void FreeModule()
        {
            if (!BassManager.Available)
            {
                throw new BassNotLoadedException();
            }

            PluginFreeFunction    = null;
            PluginLoadFunction    = null;
            PluginGetInfoFunction = null;

            ModuleAvailable = false;
        }
예제 #15
0
        internal override void InitializeModule()
        {
            if (!BassManager.Available)
            {
                throw new BassNotLoadedException();
            }

            FXResetFunction         = new BassFunction <FXReset>();
            FXGetParametersFunction = new BassFunction <FXGetParameters>();
            FXSetParametersFunction = new BassFunction <FXSetParameters>();

            ModuleAvailable = true;
        }
예제 #16
0
        internal override void FreeModule()
        {
            if (!BassManager.Available)
            {
                throw new BassNotLoadedException();
            }

            FXResetFunction         = null;
            FXGetParametersFunction = null;
            FXSetParametersFunction = null;

            ModuleAvailable = false;
        }
예제 #17
0
        /// <exception cref="BassNotLoadedException">
        ///     Bass DLL not loaded, you must use Bass to load Bass DLL
        ///     first.
        /// </exception>
        internal override void FreeModule()
        {
            if (!BassManager.Available) throw new BassNotLoadedException();

            StreamCreateFunction = null;
            StreamCreateFileFunction = null;
            StreamCreateFileUserFunction = null;
            StreamCreateUrlFunction = null;
            StreamFreeFunction = null;
            StreamGetFilePositionFunction = null;
            StreamPutDataFunction = null;
            StreamPutFileDataFunction = null;

            ModuleAvailable = false;
        }
예제 #18
0
        /// <exception cref="NoBassFunctionAttributeException">
        ///     Can't find <see cref="T:xZune.Bass.Interop.BassFunctionAttribute" />
        ///     in this Bass function.
        /// </exception>
        /// <exception cref="FunctionNotFoundException">Can't find this function in Bass DLL.</exception>
        /// <exception cref="TypeLoadException">A custom attribute type cannot be loaded. </exception>
        /// <exception cref="BassNotLoadedException">
        ///     Bass DLL not loaded, you must use <see cref="!:BassManager.Initialize" /> to
        ///     load Bass DLL first.
        /// </exception>
        internal override void InitializeModule()
        {
            if (!BassManager.Available) throw new BassNotLoadedException();

            StreamCreateFunction = new BassFunction<StreamCreate>();
            StreamCreateFileFunction = new BassFunction<StreamCreateFile>();
            StreamCreateFileUserFunction = new BassFunction<StreamCreateFileUser>();
            StreamCreateUrlFunction = new BassFunction<StreamCreateUrl>();
            StreamFreeFunction = new BassFunction<StreamFree>();
            StreamGetFilePositionFunction = new BassFunction<StreamGetFilePosition>();
            StreamPutDataFunction = new BassFunction<StreamPutData>();
            StreamPutFileDataFunction = new BassFunction<StreamPutFileData>();

            ModuleAvailable = true;
        }
예제 #19
0
        /// <exception cref="NoBassFunctionAttributeException">Can't find <see cref="BassFunctionAttribute" /> in this Bass function.</exception>
        /// <exception cref="BassNotLoadedException">Bass DLL not loaded, you must use <see cref="BassManager.Initialize" /> to load Bass DLL first.</exception>
        /// <exception cref="TypeLoadException">A custom attribute type cannot be loaded. </exception>
        /// <exception cref="FunctionNotFoundException">Can't find this function in Bass DLL.</exception>
        internal override void InitializeModule()
        {
            if (!BassManager.Available)
            {
                throw new BassNotLoadedException();
            }

            ChannelBytes2SecondsFunction   = new BassFunction <ChannelBytes2Seconds>();
            ChannelFlagsFunction           = new BassFunction <ChannelFlags>();
            ChannelGet3DAttributesFunction = new BassFunction <ChannelGet3DAttributes>();
            ChannelGetAttributeFunction    = new BassFunction <ChannelGetAttribute>();
            ChannelGetAttributeExFunction  = new BassFunction <ChannelGetAttributeEx>();
            ChannelGetDataFunction         = new BassFunction <ChannelGetData>();
            ChannelGetDeviceFunction       = new BassFunction <ChannelGetDevice>();
            ChannelGetInfoFunction         = new BassFunction <ChannelGetInfo>();
            ChannelGetLengthFunction       = new BassFunction <ChannelGetLength>();
            ChannelGetLevelFunction        = new BassFunction <ChannelGetLevel>();
            ChannelGetLevelExFunction      = new BassFunction <ChannelGetLevelEx>();
            ChannelGetPositionFunction     = new BassFunction <ChannelGetPosition>();
            ChannelGetTagsFunction         = new BassFunction <ChannelGetTags>();
            ChannelIsActiveFunction        = new BassFunction <ChannelIsActive>();
            ChannelIsSlidingFunction       = new BassFunction <ChannelIsSliding>();
            ChannelLockFunction            = new BassFunction <ChannelLock>();
            ChannelPauseFunction           = new BassFunction <ChannelPause>();
            ChannelPlayFunction            = new BassFunction <ChannelPlay>();
            ChannelRemoveDSPFunction       = new BassFunction <ChannelRemoveDSP>();
            ChannelRemoveFXFunction        = new BassFunction <ChannelRemoveFX>();
            ChannelRemoveLinkFunction      = new BassFunction <ChannelRemoveLink>();
            ChannelRemoveSyncFunction      = new BassFunction <ChannelRemoveSync>();
            ChannelSeconds2BytesFunction   = new BassFunction <ChannelSeconds2Bytes>();
            ChannelSet3DAttributesFunction = new BassFunction <ChannelSet3DAttributes>();
            ChannelSetAttributeFunction    = new BassFunction <ChannelSetAttribute>();
            ChannelSetAttributeExFunction  = new BassFunction <ChannelSetAttributeEx>();
            ChannelSetDeviceFunction       = new BassFunction <ChannelSetDevice>();
            ChannelSetDSPFunction          = new BassFunction <ChannelSetDSP>();
            ChannelSetFXFunction           = new BassFunction <ChannelSetFX>();
            ChannelSetLinkFunction         = new BassFunction <ChannelSetLink>();
            ChannelSetPositionFunction     = new BassFunction <ChannelSetPosition>();
            ChannelSetSyncFunction         = new BassFunction <ChannelSetSync>();
            ChannelStopFunction            = new BassFunction <ChannelStop>();
            ChannelUpdateFunction          = new BassFunction <ChannelUpdate>();
            ChannelSlideAttributeFunction  = new BassFunction <ChannelSlideAttribute>();
            ChannelGet3DPositionFunction   = new BassFunction <ChannelGet3DPosition>();
            ChannelSet3DPositionFunction   = new BassFunction <ChannelSet3DPosition>();

            ModuleAvailable = true;
        }
예제 #20
0
        internal override void FreeModule()
        {
            if (!BassManager.Available) throw new BassNotLoadedException();

            RecordFreeFunction = null;
            RecordGetDeviceFunction = null;
            RecordGetDeviceInfoFunction = null;
            RecordGetInfoFunction = null;
            RecordGetInputFunction = null;
            RecordGetInputNameFunction = null;
            RecordInitFunction = null;
            RecordSetDeviceFunction = null;
            RecordSetInputFunction = null;
            RecordStartFunction = null;

            ModuleAvailable = false;
        }
예제 #21
0
        /// <exception cref="BassNotLoadedException">
        ///     Bass DLL not loaded, you must use Bass to load Bass DLL
        ///     first.
        /// </exception>
        internal override void FreeModule()
        {
            if (!BassManager.Available)
            {
                throw new BassNotLoadedException();
            }

            GetErrorCodeFunction     = null;
            FreeFunction             = null;
            InitializeFunction       = null;
            GetVersionFunction       = null;
            GetInfoFunction          = null;
            GetDeviceInfoFunction    = null;
            GetDeviceFunction        = null;
            GetCpuUsageFunction      = null;
            GetDSoundObjectFunction  = null;
            GetVolumeFunction        = null;
            PauseFunction            = null;
            SetDeviceFunction        = null;
            SetVolumeFunction        = null;
            StartFunction            = null;
            StopFunction             = null;
            UpdateFunction           = null;
            GetConfigFunction        = null;
            GetConfigPtrFunction     = null;
            SetConfigFunction        = null;
            SetConfigPtrFunction     = null;
            Apply3DFunction          = null;
            Get3DFactorsFunction     = null;
            Get3DPositionFunction    = null;
            Set3DFactorsFunction     = null;
            Set3DPositionFunction    = null;
            GetEaxParametersFunction = null;
            SetEaxParametersFunction = null;

            ModuleAvailable = false;

            // Other module releasing.
            ChannelModule.Current.FreeModule();
            AudioStreamModule.Current.FreeModule();
            AudioSampleModule.Current.FreeModule();
            ModMusicModule.Current.FreeModule();
            RecordModule.Current.FreeModule();
            EffectModule.Current.FreeModule();
            PluginModule.Current.FreeModule();
        }
예제 #22
0
        internal override void InitializeModule()
        {
            if (!BassManager.Available) throw new BassNotLoadedException();

            RecordFreeFunction = new BassFunction<RecordFree>();
            RecordGetDeviceFunction = new BassFunction<RecordGetDevice>();
            RecordGetDeviceInfoFunction = new BassFunction<RecordGetDeviceInfo>();
            RecordGetInfoFunction = new BassFunction<RecordGetInfo>();
            RecordGetInputFunction = new BassFunction<RecordGetInput>();
            RecordGetInputNameFunction = new BassFunction<RecordGetInputName>();
            RecordInitFunction = new BassFunction<RecordInit>();
            RecordSetDeviceFunction = new BassFunction<RecordSetDevice>();
            RecordSetInputFunction = new BassFunction<RecordSetInput>();
            RecordStartFunction = new BassFunction<RecordStart>();

            ModuleAvailable = true;
        }
예제 #23
0
        /// <exception cref="BassNotLoadedException">Bass DLL not loaded, you must use <see cref="BassManager.Initialize" /> to load Bass DLL first.</exception>
        internal override void FreeModule()
        {
            if (!BassManager.Available)
            {
                throw new BassNotLoadedException();
            }

            ChannelBytes2SecondsFunction   = null;
            ChannelFlagsFunction           = null;
            ChannelGet3DAttributesFunction = null;
            ChannelGetAttributeFunction    = null;
            ChannelGetAttributeExFunction  = null;
            ChannelGetDataFunction         = null;
            ChannelGetDeviceFunction       = null;
            ChannelGetInfoFunction         = null;
            ChannelGetLengthFunction       = null;
            ChannelGetLevelFunction        = null;
            ChannelGetLevelExFunction      = null;
            ChannelGetPositionFunction     = null;
            ChannelGetTagsFunction         = null;
            ChannelIsActiveFunction        = null;
            ChannelIsSlidingFunction       = null;
            ChannelLockFunction            = null;
            ChannelPauseFunction           = null;
            ChannelPlayFunction            = null;
            ChannelRemoveDSPFunction       = null;
            ChannelRemoveFXFunction        = null;
            ChannelRemoveLinkFunction      = null;
            ChannelRemoveSyncFunction      = null;
            ChannelSeconds2BytesFunction   = null;
            ChannelSet3DAttributesFunction = null;
            ChannelSetAttributeFunction    = null;
            ChannelSetAttributeExFunction  = null;
            ChannelSetDeviceFunction       = null;
            ChannelSetDSPFunction          = null;
            ChannelSetFXFunction           = null;
            ChannelSetLinkFunction         = null;
            ChannelSetPositionFunction     = null;
            ChannelSetSyncFunction         = null;
            ChannelStopFunction            = null;
            ChannelUpdateFunction          = null;
            ChannelSlideAttributeFunction  = null;
            ChannelGet3DPositionFunction   = null;
            ChannelSet3DPositionFunction   = null;
            ModuleAvailable = false;
        }
예제 #24
0
        /// <exception cref="BassNotLoadedException">
        ///     Bass DLL not loaded, you must use <see cref="BassManager.Initialize" /> to
        ///     load Bass DLL first.
        /// </exception>
        internal override void FreeModule()
        {
            if (!BassManager.Available) throw new BassNotLoadedException();

            SampleCreateFunction = null;
            SampleFreeFunction = null;
            SampleGetChannelFunction = null;
            SampleGetChannelsFunction = null;
            SampleGetDataFunction = null;
            SampleGetInfoFunction = null;
            SampleLoadFunction = null;
            SampleSetDataFunction = null;
            SampleSetInfoFunction = null;
            SampleStopFunction = null;

            ModuleAvailable = false;
        }
예제 #25
0
        /// <exception cref="NoBassFunctionAttributeException">
        ///     Can't find <see cref="T:xZune.Bass.Interop.BassFunctionAttribute" />
        ///     in this Bass function.
        /// </exception>
        /// <exception cref="FunctionNotFoundException">Can't find this function in Bass DLL.</exception>
        /// <exception cref="TypeLoadException">A custom attribute type cannot be loaded. </exception>
        /// <exception cref="BassNotLoadedException">
        ///     Bass DLL not loaded, you must use <see cref="BassManager.Initialize" /> to
        ///     load Bass DLL first.
        /// </exception>
        internal override void InitializeModule()
        {
            if (!BassManager.Available) throw new BassNotLoadedException();

            SampleCreateFunction = new BassFunction<SampleCreate>();
            SampleFreeFunction = new BassFunction<SampleFree>();
            SampleGetChannelFunction = new BassFunction<SampleGetChannel>();
            SampleGetChannelsFunction = new BassFunction<SampleGetChannels>();
            SampleGetDataFunction = new BassFunction<SampleGetData>();
            SampleGetInfoFunction = new BassFunction<SampleGetInfo>();
            SampleLoadFunction = new BassFunction<SampleLoad>();
            SampleSetDataFunction = new BassFunction<SampleSetData>();
            SampleSetInfoFunction = new BassFunction<SampleSetInfo>();
            SampleStopFunction = new BassFunction<SampleStop>();

            ModuleAvailable = true;
        }
예제 #26
0
        /// <exception cref="BassNotLoadedException">
        ///     Bass DLL not loaded, you must use Bass to load Bass DLL
        ///     first.
        /// </exception>
        /// <exception cref="NoBassFunctionAttributeException">
        ///     Can't find <see cref="T:xZune.Bass.Interop.BassFunctionAttribute" />
        ///     in this Bass function.
        /// </exception>
        /// <exception cref="TypeLoadException">A custom attribute type cannot be loaded. </exception>
        /// <exception cref="FunctionNotFoundException">Can't find this function in Bass DLL.</exception>
        internal override void InitializeModule()
        {
            if (!BassManager.Available)
            {
                throw new BassNotLoadedException();
            }

            GetErrorCodeFunction     = new BassFunction <GetErrorCode>();
            FreeFunction             = new BassFunction <Free>();
            InitializeFunction       = new BassFunction <Initialize>();
            GetVersionFunction       = new BassFunction <GetVersion>();
            GetInfoFunction          = new BassFunction <GetInfo>();
            GetDeviceInfoFunction    = new BassFunction <GetDeviceInfo>();
            GetDeviceFunction        = new BassFunction <GetDevice>();
            GetCpuUsageFunction      = new BassFunction <GetCpuUsage>();
            GetDSoundObjectFunction  = new BassFunction <GetDSoundObject>();
            GetVolumeFunction        = new BassFunction <GetVolume>();
            PauseFunction            = new BassFunction <Pause>();
            SetDeviceFunction        = new BassFunction <SetDevice>();
            SetVolumeFunction        = new BassFunction <SetVolume>();
            StartFunction            = new BassFunction <Start>();
            StopFunction             = new BassFunction <Stop>();
            UpdateFunction           = new BassFunction <Update>();
            GetConfigFunction        = new BassFunction <GetConfig>();
            GetConfigPtrFunction     = new BassFunction <GetConfigPtr>();
            SetConfigFunction        = new BassFunction <SetConfig>();
            SetConfigPtrFunction     = new BassFunction <SetConfigPtr>();
            Apply3DFunction          = new BassFunction <Apply3D>();
            Get3DFactorsFunction     = new BassFunction <Get3DFactors>();
            Get3DPositionFunction    = new BassFunction <Get3DPosition>();
            Set3DFactorsFunction     = new BassFunction <Set3DFactors>();
            Set3DPositionFunction    = new BassFunction <Set3DPosition>();
            GetEaxParametersFunction = new BassFunction <GetEaxParameters>();
            SetEaxParametersFunction = new BassFunction <SetEaxParameters>();

            ModuleAvailable = true;

            ChannelModule.Current.InitializeModule();
            AudioStreamModule.Current.InitializeModule();
            AudioSampleModule.Current.InitializeModule();
            ModMusicModule.Current.InitializeModule();
            RecordModule.Current.InitializeModule();
            EffectModule.Current.InitializeModule();
            PluginModule.Current.InitializeModule();
        }
예제 #27
0
        /// <exception cref="BassNotLoadedException">
        ///     Bass DLL not loaded, you must use Bass to load Bass DLL
        ///     first.
        /// </exception>
        internal override void FreeModule()
        {
            if (!BassManager.Available)
            {
                throw new BassNotLoadedException();
            }

            StreamCreateFunction          = null;
            StreamCreateFileFunction      = null;
            StreamCreateFileUserFunction  = null;
            StreamCreateUrlFunction       = null;
            StreamFreeFunction            = null;
            StreamGetFilePositionFunction = null;
            StreamPutDataFunction         = null;
            StreamPutFileDataFunction     = null;

            ModuleAvailable = false;
        }
예제 #28
0
        /// <exception cref="NoBassFunctionAttributeException">
        ///     Can't find <see cref="T:xZune.Bass.Interop.BassFunctionAttribute" />
        ///     in this Bass function.
        /// </exception>
        /// <exception cref="FunctionNotFoundException">Can't find this function in Bass DLL.</exception>
        /// <exception cref="TypeLoadException">A custom attribute type cannot be loaded. </exception>
        /// <exception cref="BassNotLoadedException">
        ///     Bass DLL not loaded, you must use <see cref="!:BassManager.Initialize" /> to
        ///     load Bass DLL first.
        /// </exception>
        internal override void InitializeModule()
        {
            if (!BassManager.Available)
            {
                throw new BassNotLoadedException();
            }

            StreamCreateFunction          = new BassFunction <StreamCreate>();
            StreamCreateFileFunction      = new BassFunction <StreamCreateFile>();
            StreamCreateFileUserFunction  = new BassFunction <StreamCreateFileUser>();
            StreamCreateUrlFunction       = new BassFunction <StreamCreateUrl>();
            StreamFreeFunction            = new BassFunction <StreamFree>();
            StreamGetFilePositionFunction = new BassFunction <StreamGetFilePosition>();
            StreamPutDataFunction         = new BassFunction <StreamPutData>();
            StreamPutFileDataFunction     = new BassFunction <StreamPutFileData>();

            ModuleAvailable = true;
        }
예제 #29
0
        /// <exception cref="NoBassFunctionAttributeException">Can't find <see cref="BassFunctionAttribute" /> in this Bass function.</exception>
        /// <exception cref="BassNotLoadedException">Bass DLL not loaded, you must use <see cref="BassManager.Initialize" /> to load Bass DLL first.</exception>
        /// <exception cref="TypeLoadException">A custom attribute type cannot be loaded. </exception>
        /// <exception cref="FunctionNotFoundException">Can't find this function in Bass DLL.</exception>
        internal override void InitializeModule()
        {
            if (!BassManager.Available) throw new BassNotLoadedException();

            ChannelBytes2SecondsFunction = new BassFunction<ChannelBytes2Seconds>();
            ChannelFlagsFunction = new BassFunction<ChannelFlags>();
            ChannelGet3DAttributesFunction = new BassFunction<ChannelGet3DAttributes>();
            ChannelGetAttributeFunction = new BassFunction<ChannelGetAttribute>();
            ChannelGetAttributeExFunction = new BassFunction<ChannelGetAttributeEx>();
            ChannelGetDataFunction = new BassFunction<ChannelGetData>();
            ChannelGetDeviceFunction = new BassFunction<ChannelGetDevice>();
            ChannelGetInfoFunction = new BassFunction<ChannelGetInfo>();
            ChannelGetLengthFunction = new BassFunction<ChannelGetLength>();
            ChannelGetLevelFunction = new BassFunction<ChannelGetLevel>();
            ChannelGetLevelExFunction = new BassFunction<ChannelGetLevelEx>();
            ChannelGetPositionFunction = new BassFunction<ChannelGetPosition>();
            ChannelGetTagsFunction = new BassFunction<ChannelGetTags>();
            ChannelIsActiveFunction = new BassFunction<ChannelIsActive>();
            ChannelIsSlidingFunction = new BassFunction<ChannelIsSliding>();
            ChannelLockFunction = new BassFunction<ChannelLock>();
            ChannelPauseFunction = new BassFunction<ChannelPause>();
            ChannelPlayFunction = new BassFunction<ChannelPlay>();
            ChannelRemoveDSPFunction = new BassFunction<ChannelRemoveDSP>();
            ChannelRemoveFXFunction = new BassFunction<ChannelRemoveFX>();
            ChannelRemoveLinkFunction = new BassFunction<ChannelRemoveLink>();
            ChannelRemoveSyncFunction = new BassFunction<ChannelRemoveSync>();
            ChannelSeconds2BytesFunction = new BassFunction<ChannelSeconds2Bytes>();
            ChannelSet3DAttributesFunction = new BassFunction<ChannelSet3DAttributes>();
            ChannelSetAttributeFunction = new BassFunction<ChannelSetAttribute>();
            ChannelSetAttributeExFunction = new BassFunction<ChannelSetAttributeEx>();
            ChannelSetDeviceFunction = new BassFunction<ChannelSetDevice>();
            ChannelSetDSPFunction = new BassFunction<ChannelSetDSP>();
            ChannelSetFXFunction = new BassFunction<ChannelSetFX>();
            ChannelSetLinkFunction = new BassFunction<ChannelSetLink>();
            ChannelSetPositionFunction = new BassFunction<ChannelSetPosition>();
            ChannelSetSyncFunction = new BassFunction<ChannelSetSync>();
            ChannelStopFunction = new BassFunction<ChannelStop>();
            ChannelUpdateFunction = new BassFunction<ChannelUpdate>();
            ChannelSlideAttributeFunction = new BassFunction<ChannelSlideAttribute>();
            ChannelGet3DPositionFunction = new BassFunction<ChannelGet3DPosition>();
            ChannelSet3DPositionFunction = new BassFunction<ChannelSet3DPosition>();

            ModuleAvailable = true;
        }
예제 #30
0
        /// <exception cref="NoBassFunctionAttributeException">
        ///     Can't find <see cref="T:xZune.Bass.Interop.BassFunctionAttribute" />
        ///     in this Bass function.
        /// </exception>
        /// <exception cref="FunctionNotFoundException">Can't find this function in Bass DLL.</exception>
        /// <exception cref="TypeLoadException">A custom attribute type cannot be loaded. </exception>
        /// <exception cref="BassNotLoadedException">
        ///     Bass DLL not loaded, you must use <see cref="BassManager.Initialize" /> to
        ///     load Bass DLL first.
        /// </exception>
        internal override void InitializeModule()
        {
            if (!BassManager.Available)
            {
                throw new BassNotLoadedException();
            }

            SampleCreateFunction      = new BassFunction <SampleCreate>();
            SampleFreeFunction        = new BassFunction <SampleFree>();
            SampleGetChannelFunction  = new BassFunction <SampleGetChannel>();
            SampleGetChannelsFunction = new BassFunction <SampleGetChannels>();
            SampleGetDataFunction     = new BassFunction <SampleGetData>();
            SampleGetInfoFunction     = new BassFunction <SampleGetInfo>();
            SampleLoadFunction        = new BassFunction <SampleLoad>();
            SampleSetDataFunction     = new BassFunction <SampleSetData>();
            SampleSetInfoFunction     = new BassFunction <SampleSetInfo>();
            SampleStopFunction        = new BassFunction <SampleStop>();

            ModuleAvailable = true;
        }
예제 #31
0
        /// <exception cref="BassNotLoadedException">
        ///     Bass DLL not loaded, you must use <see cref="BassManager.Initialize" /> to
        ///     load Bass DLL first.
        /// </exception>
        internal override void FreeModule()
        {
            if (!BassManager.Available)
            {
                throw new BassNotLoadedException();
            }

            SampleCreateFunction      = null;
            SampleFreeFunction        = null;
            SampleGetChannelFunction  = null;
            SampleGetChannelsFunction = null;
            SampleGetDataFunction     = null;
            SampleGetInfoFunction     = null;
            SampleLoadFunction        = null;
            SampleSetDataFunction     = null;
            SampleSetInfoFunction     = null;
            SampleStopFunction        = null;

            ModuleAvailable = false;
        }
예제 #32
0
        internal override void InitializeModule()
        {
            if (!BassManager.Available)
            {
                throw new BassNotLoadedException();
            }

            RecordFreeFunction          = new BassFunction <RecordFree>();
            RecordGetDeviceFunction     = new BassFunction <RecordGetDevice>();
            RecordGetDeviceInfoFunction = new BassFunction <RecordGetDeviceInfo>();
            RecordGetInfoFunction       = new BassFunction <RecordGetInfo>();
            RecordGetInputFunction      = new BassFunction <RecordGetInput>();
            RecordGetInputNameFunction  = new BassFunction <RecordGetInputName>();
            RecordInitFunction          = new BassFunction <RecordInit>();
            RecordSetDeviceFunction     = new BassFunction <RecordSetDevice>();
            RecordSetInputFunction      = new BassFunction <RecordSetInput>();
            RecordStartFunction         = new BassFunction <RecordStart>();

            ModuleAvailable = true;
        }
예제 #33
0
        internal override void FreeModule()
        {
            if (!BassManager.Available)
            {
                throw new BassNotLoadedException();
            }

            RecordFreeFunction          = null;
            RecordGetDeviceFunction     = null;
            RecordGetDeviceInfoFunction = null;
            RecordGetInfoFunction       = null;
            RecordGetInputFunction      = null;
            RecordGetInputNameFunction  = null;
            RecordInitFunction          = null;
            RecordSetDeviceFunction     = null;
            RecordSetInputFunction      = null;
            RecordStartFunction         = null;

            ModuleAvailable = false;
        }
예제 #34
0
        /// <exception cref="BassNotLoadedException">Bass DLL not loaded, you must use <see cref="BassManager.Initialize" /> to load Bass DLL first.</exception>
        internal override void FreeModule()
        {
            if (!BassManager.Available) throw new BassNotLoadedException();

            ChannelBytes2SecondsFunction = null;
            ChannelFlagsFunction = null;
            ChannelGet3DAttributesFunction = null;
            ChannelGetAttributeFunction = null;
            ChannelGetAttributeExFunction = null;
            ChannelGetDataFunction = null;
            ChannelGetDeviceFunction = null;
            ChannelGetInfoFunction = null;
            ChannelGetLengthFunction = null;
            ChannelGetLevelFunction = null;
            ChannelGetLevelExFunction = null;
            ChannelGetPositionFunction = null;
            ChannelGetTagsFunction = null;
            ChannelIsActiveFunction = null;
            ChannelIsSlidingFunction = null;
            ChannelLockFunction = null;
            ChannelPauseFunction = null;
            ChannelPlayFunction = null;
            ChannelRemoveDSPFunction = null;
            ChannelRemoveFXFunction = null;
            ChannelRemoveLinkFunction = null;
            ChannelRemoveSyncFunction = null;
            ChannelSeconds2BytesFunction = null;
            ChannelSet3DAttributesFunction = null;
            ChannelSetAttributeFunction = null;
            ChannelSetAttributeExFunction = null;
            ChannelSetDeviceFunction = null;
            ChannelSetDSPFunction = null;
            ChannelSetFXFunction = null;
            ChannelSetLinkFunction = null;
            ChannelSetPositionFunction = null;
            ChannelSetSyncFunction = null;
            ChannelStopFunction = null;
            ChannelUpdateFunction = null;
            ChannelSlideAttributeFunction = null;
            ChannelGet3DPositionFunction = null;
            ChannelSet3DPositionFunction = null;
            ModuleAvailable = false;
        }