|
|
i am sorry i am not in good of english,so i want to use chinese to tell you my question: //下é¢è¿™æ®µä»£ç ,look this segment of code hr=mHeaderInfo3->GetAttributeIndices(0,pwszName,NULL,NULL,&indexCount); if(SUCCEEDED(hr) && indexCount>0) { WORD * pwIndex=new WORD[indexCount]; hr=mHeaderInfo3->GetAttributeIndices(0,pwszName,NULL,pwIndex,&indexCount); if(FAILED(hr)) { cout<<"fialed to get attribute index"<<endl; break; } hr=mHeaderInfo3->ModifyAttribute(0,pwIndex[0],Type,wLangIndex,pValue,dwLength); if(FAILED(hr)) { cout<<"failed to modify "<<(CString)pwszName<<endl; if(hr==NS_E_INVALID_REQUEST) cout<<"error"<<endl; break; } } else if(SUCCEEDED(hr) && indexCount==0) //attribute not exist {
hr=mHeaderInfo3->AddAttribute(0,pwszName,NULL,Type,wLangIndex,pValue,dwLength); if(FAILED(hr)) { cout<<"failed to add "<<(CString)pwszName<<endl; if(hr==NS_E_INVALID_REQUEST) cout<<"stream error"<<endl; break; } } 我用这段代ç å‘wmaæ–‡ä»¶é‡Œé¢æ·»åŠ æŒè¯ï¼Œè¯è¨€ä¸ºç®€ä½“䏿–‡(zh-cn),而å‘mp3æ–‡ä»¶é‡Œé¢æ·»åŠ æŒè¯çš„æ—¶å€™ï¼Œè¯è¨€ä¸ºè‹±è¯(en),有没有人能告诉我这是为什么呀 // I use this segment of code to add code to add lyric to .wma files,the language is chinese(simplified),zh-cn.but while i add lyric to .mp3 files,the language is english(en),is there anyone can tell me why????
thanks!!
|
|
thank you,i have solved this problem!
|
|
|