wince tcpmp移植相关

 

tcpmp:移植:
————————————————————————————————————
TCPMP停止播放:
Player->Set(Player,PLAYER_STOP,NULL,0);   
而不是:
// b = 1;
//Player->Set(Player,PLAYER_STOP,&b,sizeof(b));
——————————————————————————————————————————————————————————————————

if(Context_Init((tchar_t*)T("TCPMP"),(tchar_t*)T("0.72SRC"),3,NULL, NULL))
{

//player* Player = (player *)Context()->Player;
//bool_t b = 0;
//Player->Set(Player,PLAYER_PLAY,&b,sizeof(b));

//int n = 0;
//Player->Set(Player,PLAYER_LIST_COUNT,&n,sizeof(n));

Context_Wnd((void*)(::GetDlgItem(m_hWnd, IDC_STATICPLAYER)));//必须要的

}
player* Player = (player *)Context()->Player;
bool_t b = 0;
//Player->Set(Player,PLAYER_PLAY,&b,sizeof(b));
//int n = 0;
//Player->Set(Player,PLAYER_LIST_COUNT,&n,sizeof(n));


LPCTSTR pszFileName = _T("//sdmmc//mp3//nocturne.mp3 ");
PlayerAdd(Player, 0, (const tchar_t *)pszFileName, NULL);


//int vol = 50;
//Player->Set(Player,PLAYER_VOLUME,&vol,sizeof(int));//可以不要

b = 1;
Player->Set(Player,PLAYER_PLAY,&b,sizeof(b));



大家谁编译过TCPMP
在网上下载了一个TCPMP0.72的源码,evc4.0编译,在emulator环境下可以运行。
但是到了ARMV4I下,common目录编译总是出错,以下是出错信息,各位谁编译
成功过,指点一下

Linking...
   Creating library ARMV4IDbg/common.lib and object ARMV4IDbg/common.exp
platform.obj : error LNK2019: unresolved external symbol CPUSpeedClk referenced in function CPUSpeed
block_c.obj : error LNK2019: unresolved external symbol CopyBlock8x8 referenced in function Copy420
block_half.obj : error LNK2019: unresolved external symbol CopyBlock8x8 referenced in function Copy420Half
block_wmmx.obj : error LNK2001: unresolved external symbol CopyBlock8x8
idct_c.obj : error LNK2001: unresolved external symbol CopyBlock8x8
block_c.obj : error LNK2019: unresolved external symbol CopyBlock16x16 referenced in function Copy420
block_c.obj : error LNK2019: unresolved external symbol IDCT_Block8x8 referenced in function Intra8x8
block_wmmx.obj : error LNK2001: unresolved external symbol IDCT_Block8x8
block_c.obj : error LNK2019: unresolved external symbol IDCT_Block4x8 referenced in function Intra8x8
block_wmmx.obj : error LNK2001: unresolved external symbol IDCT_Block4x8
block_c.obj : error LNK2019: unresolved external symbol IDCT_Block8x8Swap referenced in function Intra8x8Swap
block_wmmx.obj : error LNK2001: unresolved external symbol IDCT_Block8x8Swap
block_c.obj : error LNK2019: unresolved external symbol IDCT_Block4x8Swap referenced in function Intra8x8Swap
block_wmmx.obj : error LNK2001: unresolved external symbol IDCT_Block4x8Swap
block_wmmx.obj : error LNK2019: unresolved external symbol WMMXIDCT_Const8x8 referenced in function WMMXInter8x8BackFwd
softidct.obj : error LNK2001: unresolved external symbol CopyBlockHorVerRound
zhoupeng1979 2009-1-6 11:45
问题解决了,是汇编的问题
xiechuxin 2009-1-8 17:25
请教:如何解决
我也遇到同样的问题,请教下如何解决
zhoupeng1979 2009-1-14 11:35
在几个汇编文件上加上编译选项:
armasm -32 -cpu xscale "$(InputPath)" "$(IntDir)/$(InputName).obj" -list "$(IntDir)/$(InputName).lst"
输出增加:
$(IntDir)/$(InputName).obj

阅读更多
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

关闭
关闭
关闭