0 Members and 1 Guest are viewing this topic.
fi->SetValueAsObject(AIMP_FILEINFO_PROPID_LYRICS, str)
the instanse of IAimpFileInfo is updated correctly. but when view from simple tag editor, the lyrics tag is still old value. is there a problem of the sdk?
you mean SetValueAsObject function of IAimpFileInfo instance is not exactly able to set tags of audio file?? if not, is there any method to do this job?
what a pity to hear that. Is there any plan to add tag edit function for the sdk? I am updating a lyrics plugin for aimp3,writing lyrics to tag is wanted extremely.my software homepage is http://www.autolyric.com
thanks for your quick support.but when i use aimp3 3.6 beta3 and sdk,the code "aimp3_core_unit_->QueryInterface(IID_IAIMPServiceFileTagEditor, (void**)(&fts))" return E_NOINTERFACE error result.could you check that? thanks.
static const GUID IID_IAIMPFileTag = {0x41494D50, 0x4669, 0x6C65, 0x54, 0x61, 0x67, 0x00, 0x00, 0x00, 0x00, 0x00};static const GUID IID_IAIMPFileTagEditor = {0x41494D50, 0x4669, 0x6C65, 0x54, 0x61, 0x67, 0x45, 0x64, 0x69, 0x74, 0x00};static const GUID IID_IAIMPServiceFileTagEditor = {0x41494D50, 0x5372, 0x7654, 0x61, 0x67, 0x45, 0x64. 0x69, 0x74, 0x00, 0x00};
the QueryInterface for IID_IAIMPServiceFileTagEditor works now.but when i call EditFile or EditTag of IAIMPServiceFileTagEditor instance,runtime error showes up,part of the error message is :==============Module: AIMP.Runtime.dllClass: EAccessViolationMessage: Access violation at address 00866B05 in module 'AIMP.Runtime.dll'. Read of address 00000003==============
what I'm trying to edit is a file which is playing.i pass the file path as parameter to EditFile function.
class IAIMPServiceFileTagEditor: public IUnknown{ public: virtual HRESULT WINAPI EditFile(IUnknown *Source, REFIID IID, void **Obj) = 0; virtual HRESULT WINAPI EditTag(IUnknown *Source, int TagID, REFIID IID, void **Obj) = 0;};