Ejemplo n.º 1
0
        internal override void InitializeModule()
        {
            if (!TagsLibManager.Available)
            {
                throw new TagsLibNotLoadedException();
            }

            CreateFunction                   = new TagsLibFunction <Create>();
            FreeFunction                     = new TagsLibFunction <Free>();
            LoadTagsFunction                 = new TagsLibFunction <LoadTags>();
            LoadTagsFormMemoryFunction       = new TagsLibFunction <LoadTagsFormMemory>();
            LoadTagsFormBassFunction         = new TagsLibFunction <LoadTagsFormBass>();
            SaveTagsFunction                 = new TagsLibFunction <SaveTags>();
            SaveTagsExFunction               = new TagsLibFunction <SaveTagsEx>();
            SaveTagsToMemoryFunction         = new TagsLibFunction <SaveTagsToMemory>();
            SaveTagsToMemoryExFunction       = new TagsLibFunction <SaveTagsToMemoryEx>();
            FreeSaveHandleFunction           = new TagsLibFunction <FreeSaveHandle>();
            RemoveTagsFunction               = new TagsLibFunction <RemoveTags>();
            RemoveTagFromMemoryFunction      = new TagsLibFunction <RemoveTagFromMemory>();
            GetTagFunction                   = new TagsLibFunction <GetTag>();
            IsTagLoadedFunction              = new TagsLibFunction <IsTagLoaded>();
            GetTagExFunction                 = new TagsLibFunction <GetTagEx>();
            GetExTagByIndexFunction          = new TagsLibFunction <GetExTagByIndex>();
            GetSimpleTagByIndexFunction      = new TagsLibFunction <GetSimpleTagByIndex>();
            GetID3v2TagExByIndexFunction     = new TagsLibFunction <GetID3v2TagExByIndex>();
            GetMp4TagExByIndexFunction       = new TagsLibFunction <GetMp4TagExByIndex>();
            SetTagFunction                   = new TagsLibFunction <SetTag>();
            SetExTagFunction                 = new TagsLibFunction <SetExTag>();
            SetSimpleTagFunction             = new TagsLibFunction <SetSimpleTag>();
            SetID3v2TagFunction              = new TagsLibFunction <SetID3v2Tag>();
            SetMP4TagFunction                = new TagsLibFunction <SetMP4Tag>();
            AddTagFunction                   = new TagsLibFunction <AddTag>();
            AddExTagFunction                 = new TagsLibFunction <AddExTag>();
            AddSimpleTagFunction             = new TagsLibFunction <AddSimpleTag>();
            AddID3v2TagFunction              = new TagsLibFunction <AddID3v2Tag>();
            AddMP4TagFunction                = new TagsLibFunction <AddMP4Tag>();
            GetTagCountFunction              = new TagsLibFunction <GetTagCount>();
            DeleteTagFunction                = new TagsLibFunction <DeleteTag>();
            DeleteTagByIndexFunction         = new TagsLibFunction <DeleteTagByIndex>();
            GetCoverArtCountFunction         = new TagsLibFunction <GetCoverArtCount>();
            GetCoverArtFunction              = new TagsLibFunction <GetCoverArt>();
            GetCoverArtToFileFunction        = new TagsLibFunction <GetCoverArtToFile>();
            DeleteCoverArtFunction           = new TagsLibFunction <DeleteCoverArt>();
            SetCoverArtFunction              = new TagsLibFunction <SetCoverArt>();
            SetCoverArtFromFileFunction      = new TagsLibFunction <SetCoverArtFromFile>();
            AddCoverArtFunction              = new TagsLibFunction <AddCoverArt>();
            SetTagLoadPriorityFunction       = new TagsLibFunction <SetTagLoadPriority>();
            GetTagDataFunction               = new TagsLibFunction <GetTagData>();
            SetTagDataFunction               = new TagsLibFunction <SetTagData>();
            GetCartPostTimerFunction         = new TagsLibFunction <GetCartPostTimer>();
            SetCartPostTimerFunction         = new TagsLibFunction <SetCartPostTimer>();
            ClearCartPostTimerFunction       = new TagsLibFunction <ClearCartPostTimer>();
            GetConfigFunction                = new TagsLibFunction <GetConfig>();
            SetConfigFunction                = new TagsLibFunction <SetConfig>();
            GetVendorFunction                = new TagsLibFunction <GetVendor>();
            SetVendorFunction                = new TagsLibFunction <SetVendor>();
            GetMPEGAudioAttributesFunction   = new TagsLibFunction <GetMPEGAudioAttributes>();
            GetFlacAudioAttributesFunction   = new TagsLibFunction <GetFlacAudioAttributes>();
            GetDSFAudioAttributesFunction    = new TagsLibFunction <GetDSFAudioAttributes>();
            GetOpusAudioAttributesFunction   = new TagsLibFunction <GetOpusAudioAttributes>();
            GetVorbisAudioAttributesFunction = new TagsLibFunction <GetVorbisAudioAttributes>();
            GetWAVEAudioAttributesFunction   = new TagsLibFunction <GetWAVEAudioAttributes>();
            GetAiffAttributesFunction        = new TagsLibFunction <GetAiffAttributes>();
            GetMp4AudioAttributesFunction    = new TagsLibFunction <GetMp4AudioAttributes>();
            GetWMAAttributesFunction         = new TagsLibFunction <GetWMAAttributes>();
            GetAudioAttributesFunction       = new TagsLibFunction <GetAudioAttributes>();
            GetWAVPackAttributesFunction     = new TagsLibFunction <GetWAVPackAttributes>();
            GetMusePackAttributesFunction    = new TagsLibFunction <GetMusePackAttributes>();
            GetAudioAttributeFunction        = new TagsLibFunction <GetAudioAttribute>();
            GetTagSizeFunction               = new TagsLibFunction <GetTagSize>();
            GetAudioFormatFunction           = new TagsLibFunction <GetAudioFormat>();
            GetAudioFormatMemoryFunction     = new TagsLibFunction <GetAudioFormatMemory>();

            ModuleAvailable = true;
        }
Ejemplo n.º 2
0
        internal override void InitializeModule()
        {
            if (!TagsLibManager.Available) throw new TagsLibNotLoadedException();

            CreateFunction = new TagsLibFunction<Create>();
            FreeFunction = new TagsLibFunction<Free>();
            LoadTagsFunction = new TagsLibFunction<LoadTags>();
            LoadTagsFormMemoryFunction = new TagsLibFunction<LoadTagsFormMemory>();
            LoadTagsFormBassFunction = new TagsLibFunction<LoadTagsFormBass>();
            SaveTagsFunction = new TagsLibFunction<SaveTags>();
            SaveTagsExFunction = new TagsLibFunction<SaveTagsEx>();
            SaveTagsToMemoryFunction = new TagsLibFunction<SaveTagsToMemory>();
            SaveTagsToMemoryExFunction = new TagsLibFunction<SaveTagsToMemoryEx>();
            FreeSaveHandleFunction = new TagsLibFunction<FreeSaveHandle>();
            RemoveTagsFunction = new TagsLibFunction<RemoveTags>();
            RemoveTagFromMemoryFunction = new TagsLibFunction<RemoveTagFromMemory>();
            GetTagFunction = new TagsLibFunction<GetTag>();
            IsTagLoadedFunction = new TagsLibFunction<IsTagLoaded>();
            GetTagExFunction = new TagsLibFunction<GetTagEx>();
            GetExTagByIndexFunction = new TagsLibFunction<GetExTagByIndex>();
            GetSimpleTagByIndexFunction = new TagsLibFunction<GetSimpleTagByIndex>();
            GetID3v2TagExByIndexFunction = new TagsLibFunction<GetID3v2TagExByIndex>();
            GetMp4TagExByIndexFunction = new TagsLibFunction<GetMp4TagExByIndex>();
            SetTagFunction = new TagsLibFunction<SetTag>();
            SetExTagFunction = new TagsLibFunction<SetExTag>();
            SetSimpleTagFunction = new TagsLibFunction<SetSimpleTag>();
            SetID3v2TagFunction = new TagsLibFunction<SetID3v2Tag>();
            SetMP4TagFunction = new TagsLibFunction<SetMP4Tag>();
            AddTagFunction = new TagsLibFunction<AddTag>();
            AddExTagFunction = new TagsLibFunction<AddExTag>();
            AddSimpleTagFunction = new TagsLibFunction<AddSimpleTag>();
            AddID3v2TagFunction = new TagsLibFunction<AddID3v2Tag>();
            AddMP4TagFunction = new TagsLibFunction<AddMP4Tag>();
            GetTagCountFunction = new TagsLibFunction<GetTagCount>();
            DeleteTagFunction = new TagsLibFunction<DeleteTag>();
            DeleteTagByIndexFunction = new TagsLibFunction<DeleteTagByIndex>();
            GetCoverArtCountFunction = new TagsLibFunction<GetCoverArtCount>();
            GetCoverArtFunction = new TagsLibFunction<GetCoverArt>();
            GetCoverArtToFileFunction = new TagsLibFunction<GetCoverArtToFile>();
            DeleteCoverArtFunction = new TagsLibFunction<DeleteCoverArt>();
            SetCoverArtFunction = new TagsLibFunction<SetCoverArt>();
            SetCoverArtFromFileFunction = new TagsLibFunction<SetCoverArtFromFile>();
            AddCoverArtFunction = new TagsLibFunction<AddCoverArt>();
            SetTagLoadPriorityFunction = new TagsLibFunction<SetTagLoadPriority>();
            GetTagDataFunction = new TagsLibFunction<GetTagData>();
            SetTagDataFunction = new TagsLibFunction<SetTagData>();
            GetCartPostTimerFunction = new TagsLibFunction<GetCartPostTimer>();
            SetCartPostTimerFunction = new TagsLibFunction<SetCartPostTimer>();
            ClearCartPostTimerFunction = new TagsLibFunction<ClearCartPostTimer>();
            GetConfigFunction = new TagsLibFunction<GetConfig>();
            SetConfigFunction = new TagsLibFunction<SetConfig>();
            GetVendorFunction = new TagsLibFunction<GetVendor>();
            SetVendorFunction = new TagsLibFunction<SetVendor>();
            GetMPEGAudioAttributesFunction = new TagsLibFunction<GetMPEGAudioAttributes>();
            GetFlacAudioAttributesFunction = new TagsLibFunction<GetFlacAudioAttributes>();
            GetDSFAudioAttributesFunction = new TagsLibFunction<GetDSFAudioAttributes>();
            GetOpusAudioAttributesFunction = new TagsLibFunction<GetOpusAudioAttributes>();
            GetVorbisAudioAttributesFunction = new TagsLibFunction<GetVorbisAudioAttributes>();
            GetWAVEAudioAttributesFunction = new TagsLibFunction<GetWAVEAudioAttributes>();
            GetAiffAttributesFunction = new TagsLibFunction<GetAiffAttributes>();
            GetMp4AudioAttributesFunction = new TagsLibFunction<GetMp4AudioAttributes>();
            GetWMAAttributesFunction = new TagsLibFunction<GetWMAAttributes>();
            GetAudioAttributesFunction = new TagsLibFunction<GetAudioAttributes>();
            GetWAVPackAttributesFunction = new TagsLibFunction<GetWAVPackAttributes>();
            GetMusePackAttributesFunction = new TagsLibFunction<GetMusePackAttributes>();
            GetAudioAttributeFunction = new TagsLibFunction<GetAudioAttribute>();
            GetTagSizeFunction = new TagsLibFunction<GetTagSize>();
            GetAudioFormatFunction = new TagsLibFunction<GetAudioFormat>();
            GetAudioFormatMemoryFunction = new TagsLibFunction<GetAudioFormatMemory>();

            ModuleAvailable = true;
            
        }
Ejemplo n.º 3
0
        /// <exception cref="TagsLibNotLoadedException">
        ///     TagsLib DLL not loaded, you must use TagsLib to load TagsLib DLL
        ///     first.
        /// </exception>
        internal override void FreeModule()
        {
            if (!TagsLibManager.Available)
            {
                throw new TagsLibNotLoadedException();
            }

            CreateFunction                   = null;
            FreeFunction                     = null;
            LoadTagsFunction                 = null;
            LoadTagsFormMemoryFunction       = null;
            LoadTagsFormBassFunction         = null;
            SaveTagsFunction                 = null;
            SaveTagsExFunction               = null;
            SaveTagsToMemoryFunction         = null;
            SaveTagsToMemoryExFunction       = null;
            FreeSaveHandleFunction           = null;
            RemoveTagsFunction               = null;
            RemoveTagFromMemoryFunction      = null;
            GetTagFunction                   = null;
            IsTagLoadedFunction              = null;
            GetTagExFunction                 = null;
            GetExTagByIndexFunction          = null;
            GetSimpleTagByIndexFunction      = null;
            GetID3v2TagExByIndexFunction     = null;
            GetMp4TagExByIndexFunction       = null;
            SetTagFunction                   = null;
            SetExTagFunction                 = null;
            SetSimpleTagFunction             = null;
            SetID3v2TagFunction              = null;
            SetMP4TagFunction                = null;
            AddTagFunction                   = null;
            AddExTagFunction                 = null;
            AddSimpleTagFunction             = null;
            AddID3v2TagFunction              = null;
            AddMP4TagFunction                = null;
            GetTagCountFunction              = null;
            DeleteTagFunction                = null;
            DeleteTagByIndexFunction         = null;
            GetCoverArtCountFunction         = null;
            GetCoverArtFunction              = null;
            GetCoverArtToFileFunction        = null;
            DeleteCoverArtFunction           = null;
            SetCoverArtFunction              = null;
            SetCoverArtFromFileFunction      = null;
            AddCoverArtFunction              = null;
            SetTagLoadPriorityFunction       = null;
            GetTagDataFunction               = null;
            SetTagDataFunction               = null;
            GetCartPostTimerFunction         = null;
            SetCartPostTimerFunction         = null;
            ClearCartPostTimerFunction       = null;
            GetConfigFunction                = null;
            SetConfigFunction                = null;
            GetVendorFunction                = null;
            SetVendorFunction                = null;
            GetMPEGAudioAttributesFunction   = null;
            GetFlacAudioAttributesFunction   = null;
            GetDSFAudioAttributesFunction    = null;
            GetOpusAudioAttributesFunction   = null;
            GetVorbisAudioAttributesFunction = null;
            GetWAVEAudioAttributesFunction   = null;
            GetAiffAttributesFunction        = null;
            GetMp4AudioAttributesFunction    = null;
            GetWMAAttributesFunction         = null;
            GetAudioAttributesFunction       = null;
            GetWAVPackAttributesFunction     = null;
            GetMusePackAttributesFunction    = null;
            GetAudioAttributeFunction        = null;
            GetTagSizeFunction               = null;
            GetAudioFormatFunction           = null;
            GetAudioFormatMemoryFunction     = null;

            ModuleAvailable = false;
        }
Ejemplo n.º 4
0
        /// <exception cref="TagsLibNotLoadedException">
        ///     TagsLib DLL not loaded, you must use TagsLib to load TagsLib DLL
        ///     first.
        /// </exception>
        internal override void FreeModule()
        {
            if (!TagsLibManager.Available) throw new TagsLibNotLoadedException();

            CreateFunction = null;
            FreeFunction = null;
            LoadTagsFunction = null;
            LoadTagsFormMemoryFunction = null;
            LoadTagsFormBassFunction = null;
            SaveTagsFunction = null;
            SaveTagsExFunction = null;
            SaveTagsToMemoryFunction = null;
            SaveTagsToMemoryExFunction = null;
            FreeSaveHandleFunction = null;
            RemoveTagsFunction = null;
            RemoveTagFromMemoryFunction = null;
            GetTagFunction = null;
            IsTagLoadedFunction = null;
            GetTagExFunction = null;
            GetExTagByIndexFunction = null;
            GetSimpleTagByIndexFunction = null;
            GetID3v2TagExByIndexFunction = null;
            GetMp4TagExByIndexFunction = null;
            SetTagFunction = null;
            SetExTagFunction = null;
            SetSimpleTagFunction = null;
            SetID3v2TagFunction = null;
            SetMP4TagFunction = null;
            AddTagFunction = null;
            AddExTagFunction = null;
            AddSimpleTagFunction = null;
            AddID3v2TagFunction = null;
            AddMP4TagFunction = null;
            GetTagCountFunction = null;
            DeleteTagFunction = null;
            DeleteTagByIndexFunction = null;
            GetCoverArtCountFunction = null;
            GetCoverArtFunction = null;
            GetCoverArtToFileFunction = null;
            DeleteCoverArtFunction = null;
            SetCoverArtFunction = null;
            SetCoverArtFromFileFunction = null;
            AddCoverArtFunction = null;
            SetTagLoadPriorityFunction = null;
            GetTagDataFunction = null;
            SetTagDataFunction = null;
            GetCartPostTimerFunction = null;
            SetCartPostTimerFunction = null;
            ClearCartPostTimerFunction = null;
            GetConfigFunction = null;
            SetConfigFunction = null;
            GetVendorFunction = null;
            SetVendorFunction = null;
            GetMPEGAudioAttributesFunction = null;
            GetFlacAudioAttributesFunction = null;
            GetDSFAudioAttributesFunction = null;
            GetOpusAudioAttributesFunction = null;
            GetVorbisAudioAttributesFunction = null;
            GetWAVEAudioAttributesFunction = null;
            GetAiffAttributesFunction = null;
            GetMp4AudioAttributesFunction = null;
            GetWMAAttributesFunction = null;
            GetAudioAttributesFunction = null;
            GetWAVPackAttributesFunction = null;
            GetMusePackAttributesFunction = null;
            GetAudioAttributeFunction = null;
            GetTagSizeFunction = null;
            GetAudioFormatFunction = null;
            GetAudioFormatMemoryFunction = null;

            ModuleAvailable = false;
            
        }