07-19-2010, 03:00 PM
yes, but in smg 2 loops correctly, and both, smg2 and ztp have sample format 9. hmm can you post a little bit after the last part where it show the afc thing?
(07-19-2010, 01:42 PM)Torin Wrote: [ -> ]after passing frame 07, the m_CurBuffer get equal to m_NumBuffers, so after this, the sync progress of all frames is done, so i think we must push a mail with m_rMailHandler.PushMail(DSP_DONE)
(07-19-2010, 03:34 PM)skid Wrote: [ -> ](07-19-2010, 01:42 PM)Torin Wrote: [ -> ]after passing frame 07, the m_CurBuffer get equal to m_NumBuffers, so after this, the sync progress of all frames is done, so i think we must push a mail with m_rMailHandler.PushMail(DSP_DONE)
This sounds logical. Can you code this and make a patch for others to test?
if (m_CurBuffer == m_NumBuffers)
{
if (!IsDMAVersion())
m_rMailHandler.PushMail(DSP_FRAME_END);
m_rMailHandler.PushMail(0xDCD10003)
DEBUG_LOG(DSPHLE, "Update the SoundThread to be in sync");
// soundStream->Update();
ExecuteList(); // to get new values
m_bListInProgress = false; // i think it must be changed to true
m_bSyncCmdPending = false;
}(07-19-2010, 03:57 PM)Torin Wrote: [ -> ](07-19-2010, 03:34 PM)skid Wrote: [ -> ](07-19-2010, 01:42 PM)Torin Wrote: [ -> ]after passing frame 07, the m_CurBuffer get equal to m_NumBuffers, so after this, the sync progress of all frames is done, so i think we must push a mail with m_rMailHandler.PushMail(DSP_DONE)
This sounds logical. Can you code this and make a patch for others to test?
Hmmm i think it should be kinda like this:
Code:
if (m_CurBuffer == m_NumBuffers)
{
if (!IsDMAVersion())
m_rMailHandler.PushMail(DSP_FRAME_END);
m_rMailHandler.PushMail(0xDCD10003)
DEBUG_LOG(DSPHLE, "Update the SoundThread to be in sync");
// soundStream->Update();
ExecuteList(); // to get new values
m_bListInProgress = false; // i think it must be changed to true
m_bSyncCmdPending = false;
}
