|
- Context_Init((tchar_t*)T("TCPMP"),(tchar_t*)T("0.72SRC"),3,NULL,NULL);
-
- //上下文创建
-
- context* p=Context();
- //播放模块的初始化
- player* myplayer = NULL;
- if(p) myplayer = (player*)(p->Player);
- //关联窗体
- Context_Wnd(this->m_hWnd);
- //错误处理函数设定
- // p->Error.This=myplayer;
- // p->Error.Func=DoError;
- int n = 1;
- int vol = 50;
-
- CString s;
- int err = PlayerAdd(myplayer,0, L"\\Storage Card\\MP3\\xinrudaoge.mp3", NULL);
- s.Format(L"%d",err);
- MessageBox(s);//err = 1
- err = myplayer->Set(myplayer,PLAYER_VOLUME,&vol,sizeof(int));
- s.Format(L"%d",err);
- MessageBox(s);//err = 0
- err = myplayer->Set(myplayer,PLAYER_PLAY,&n,sizeof(int));
- s.Format(L"%d",err);
- MessageBox(s);//err = -3
复制代码
err = myplayer->Set(myplayer,PLAYER_PLAY,&n,sizeof(int));
s.Format(L"%d",err);
MessageBox(s);//err = ERR_FFFFFFF3 这个错误是什么意思?
然后在第2个和第3个MessageBox之间,有一个报错对话框,ERR_FFFFFFF3,这个又是什么意思呢?
|
|