当前位置:编程学习 > wap >>

子腾兄 请帮助一下 通话背景音乐

各位高手请指教:
     以下是我的来电通话背景音乐的部分代码:
   CTalkManageCallWatcher 类的部分代码:            
     void CTalkManageCallWatcher::StartL()
{
log.Write(_L("startL()"));
iLine.NotifyIncomingCall(iStatus, iCallName);
log.Write(_L("NotifyIncomingCall"));
                      SetActive();
log.Write(_L("set active success"));
}

        void CTalkManageCallWatcher::RunL()
{
log.Write(_L("run"));
         User::LeaveIfError(iCall.OpenExistingCall(iLine, iCallName)); 
                 log.Write(_L("OpenExistingCall"));
         Call.AnswerIncomingCall();
         iPlayerAdapter=CPlayerAdapter::NewL(KSoundSampleFile,0);
iPlayerAdapter->PlayL();
}
StartL();
}
播放音乐时所用到的类部分代码:

void CPlayerAdapter::PlayL()
{   CMdaAudioRecorderUtility* AudioRecorder;
   AudioRecorder->SetAudioDeviceMode(CMdaAudioRecorderUtility::ETelephonyMixed);
    AudioRecorder->PlayL();
    iState = EPlaying;
}
我想请问一下各位高手 我上面的代码对吗??  那位高手有这方面的代 --------------------编程问答-------------------- 不知道。

试试就知道对不对了吧。 --------------------编程问答-------------------- mark --------------------编程问答-------------------- 不知道,可以试试,
补充:移动开发 ,  Symbian
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,