07-20-2010, 01:33 PM
MixVoice was never defined , and I mean never. Even in r3570 ( the revision that piece of code was committed ) there is no clue about that function
(07-20-2010, 11:44 AM)Torin Wrote: [ -> ]mmm you mean making buffer more shorter and not the same size of the remaining length of the sample?Could be, but how much shorter? I don't know how buffers are working in Dolphin (or a real Wii). What I'm trying to figure out is how exactly the music loop mixing is occuring by manually mixing them with my audio software. So far it is clear (by this approach) that music is not looping exactly from the beginning of the audio stream.
if (m_CurBuffer == m_NumBuffers)
{
if (IsDMAVersion()) // this is a hack... without it Pikmin 1 Wii/ Zelda TP Wii mail-s stopped
m_rMailHandler.PushMail(DSP_FRAME_END);
soundStream->Update(); // do it in this thread to avoid sync problems
m_rMailHandler.PushMail(0xCDD10003);
soundStream->GetMixer()->SetHLEReady(true);
DEBUG_LOG(DSPHLE, "Update the SoundThread to be in sync");
m_bSyncCmdPending = false;
}(07-20-2010, 01:33 PM)James333 Wrote: [ -> ]MixVoice was never defined , and I mean never. Even in r3570 ( the revision that piece of code was committed ) there is no clue about that function
Quote:m_rMailHandler.PushMail(0xCDD10003);
(07-20-2010, 01:54 PM)Xtreme2damax Wrote: [ -> ]So if I wanted to define that bit of code, how would I define it so I can compile with that enabled?
(07-20-2010, 01:54 PM)Xtreme2damax Wrote: [ -> ]You can't. The function never existed so we don't know what it did. You can try to use other functions as jumb said(07-20-2010, 01:33 PM)James333 Wrote: [ -> ]MixVoice was never defined , and I mean never. Even in r3570 ( the revision that piece of code was committed ) there is no clue about that function
So if I wanted to define that bit of code, how would I define it so I can compile with that enabled?
(07-20-2010, 01:54 PM)Xtreme2damax Wrote: [ -> ]All that does is cause Zelda Ucode games such as Mario Galaxy to go silent, perhaps you are adding the code in the wrong spot. I would talk to a developer who is familiar with the DSP such as nakee, Lord Mark, or Luigi, link them to this thread and perhaps they might be able to give some ideas.
(07-20-2010, 01:54 PM)Xtreme2damax Wrote: [ -> ](07-20-2010, 01:33 PM)James333 Wrote: [ -> ]MixVoice was never defined , and I mean never. Even in r3570 ( the revision that piece of code was committed ) there is no clue about that function
So if I wanted to define that bit of code, how would I define it so I can compile with that enabled?
Quote:m_rMailHandler.PushMail(0xCDD10003);
All that does is cause Zelda Ucode games such as Mario Galaxy to go silent, perhaps you are adding the code in the wrong spot. I would talk to a developer who is familiar with the DSP such as nakee, Lord Mark, or Luigi, link them to this thread and perhaps they might be able to give some ideas.

Quote:21:49:487 .\Src\UCodes\UCode_Zelda_Voice.cpp:239 D[DSPHLE]: AFC PB: 10000 0000 FD00800 0000 0000 0000 0000 0000 61004800 0000 003F00 0000 6000D00 0000 0000 0000 C000D00 8E008000 0000 0000 2000E00 DC002700 0000 0000 0000 F0003F00 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 1A00400 1A00400 10000 0000 0000 0000 001400 0000 0000 0000 E900200 0000 0000 0000 6B002000 A20000 1A008500 0000 7D00A00 1F001400 4E00F00 B600900 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 C100D00 3A00F00 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 90000 FF0000 D800F200 D800F200 200000 0000 0000 0000 E900200 0000 4E009000 10000 20008A00 A10000 8A009100 10000 FF007F00 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 FF007F00 0000 0000 0000 0000 0000 008000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0
21:49:487 .\Src\UCodes\UCode_Zelda_Voice.cpp:239 D[DSPHLE]: AFC PB: 10000 0000 300B00 0000 0000 0000 0000 0000 61004800 0000 003F00 0000 6000D00 0000 0000 0000 C000D00 8E008000 0000 0000 2000E00 DC002700 0000 0000 0000 F0003F00 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 003D00 0000 5000D00 5300D00 10000 0000 0000 0000 008C00 0000 0000 0000 0000 0000 0000 0000 8300FA00 110000 8A005B00 0000 8F001400 7A00C400 EB009700 7100BB00 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 7100D300 EB008F00 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 90000 0000 9400F600 9400400 200000 0000 0000 0000 D60000 0000 40008200 0000 C000E400 110000 40008200 0000 FF007F00 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 FF007F00 0000 0000 0000 0000 0000 008000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
21:49:487 .\Src\UCodes\UCode_Zelda_Voice.cpp:239 D[DSPHLE]: AFC PB: 10000 0000 9D00C00 0000 0000 0000 0000 0000 61004800 0000 003F00 0000 6000D00 0000 0000 0000 C000D00 8E008000 0000 0000 2000E00 DC002700 0000 0000 0000 F0003F00 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 003D00 0000 D001200 D001200 10000 0000 0000 0000 00A400 0000 0000 0000 3F00600 0000 0000 0000 EB006100 5A0000 670000 0000 C000EF00 2000F800 F0001300 800EA00 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 6000E000 A0002700 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 90000 FF0000 3800E600 6200B700 200000 0000 0000 0000 3F00600 0000 A200700 0000 E0005D00 5A0000 4500800 0000 FF007F00 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 FF007F00 0000 0000 0000 0000 0000 008000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0
21:49:487 .\Src\UCodes\UCode_Zelda_Voice.cpp:239 D[DSPHLE]: AFC PB: 10000 0000 FD00800 0000 0000 0000 0000 0000 61004800 0000 003F00 0000 6000D00 0000 0000 0000 C000D00 8E008000 0000 0000 2000E00 DC002700 0000 0000 0000 F0003F00 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 007F00 0000 1A00400 1A00400 10000 0000 0000 0000 001400 0000 0000 0000 E900200 0000 0000 0000 AB00100 A30000 1A008500 0000 6F001700 F9001C00 20002100 3D002800 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 6100D00 4E00500 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 90000 FF0000 3900F300 3900300 200000 0000 0000 0000 E900200 0000 4E009000 10000 60006B00 A20000 8A009100 10000 FF007F00 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 FF007F00 0000 0000 0000 0000 0000 008000 0000 0000 0000 0000 0000 0000 0000 0000 000
21:49:487 .\Src\UCodes\UCode_Zelda_Voice.cpp:239 D[DSPHLE]: AFC PB: 10000 0000 BC00800 0000 0000 0000 0000 0000 61004800 0000 003F00 0000 6000D00 0000 0000 0000 C000D00 8E008000 0000 0000 2000E00 DC002700 0000 0000 0000 F0003F00 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 003D00 0000 9F00E00 9F00E00 10000 0000 0000 0000 008400 0000 0000 0000 3F00600 0000 0000 0000 18006200 5A0000 1A0000 0000 00AB00 8000FA00 C000C200 A000CE00 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 00C000 00C000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 90000 FF0000 3800E600 6200B700 200000 0000 0000 0000 3F00600 0000 A200700 0000 E0005D00 5A0000 4500800 0000 FF007F00 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 FF007F00 0000 0000 0000 0000 0000 008000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0
21:49:487 .\Src\UCodes\UCode_Zelda_Voice.cpp:239 D[DSPHLE]: AFC PB: 10000 0000 B400E00 0000 0000 0000 0000 0000 61004800 0000 003F00 0000 6000D00 0000 0000 0000 C000D00 8E008000 0000 0000 2000E00 DC002700 0000 0000 0000 F0003F00 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 001600 0000 5900100 5800100 10000 0000 0000 0000 001000 0000 0000 0000 9B00400 0000 0000 0000 71008700 880000 6600A500 0000 9F00E400 8B00EB00 1500F000 D000DD00 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 CD00E100 2000D800 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 90000 FF0000 B900F700 B900F300 200000 0000 0000 0000 9B00400 0000 FF00DF00 0000 80006600 880000 7500FA00 0000 FF007F00 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 FF007F00 0000 0000 0000 0000 0000 008000 0000 0000 0000 0000 0000 0000 0000 0000 0
21:49:488 .\Src\UCodes\UCode_Zelda_Voice.cpp:239 D[DSPHLE]: AFC PB: 10000 0000 B400E00 0000 0000 0000 0000 0000 61004800 0000 77008000 0000 6000D00 0000 FC00BC00 0000 C000D00 8E008000 0000 0000 2000E00 DC002700 20000 0000 0000 F0003F00 77008000 0000 0000 0000 7000BF00 0000 0000 0000 0000 0000 0000 0000 0000 0000 003D00 0000 AB001700 AB001700 10000 0000 0000 0000 00E000 0000 0000 0000 0000 0000 0000 0000 B500C600 110000 4E003500 0000 BD00FC00 4000FC00 300FC00 600FC00 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 8400FE00 100FF00 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 90000 0000 1E00F700 1800F300 200000 0000 0000 0000 004400 0000 24006A00 0000 00A900 110000 24006A00 0000 FF007F00 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 FF007F00 0000 0000 0000 0000 0000 008000 0000 0000 0000 0000 0000 0000 0000
21:49:488 .\Src\UCodes\UCode_Zelda_Voice.cpp:239 D[DSPHLE]: AFC PB: 10000 0000 FD00800 0000 0000 0000 0000 0000 61004800 0000 003F00 0000 6000D00 0000 0000 0000 C000D00 8E008000 0000 0000 2000E00 DC002700 0000 0000 0000 F0003F00 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 1A00400 1A00400 10000 0000 0000 0000 00D800 0000 0000 0000 E900200 0000 0000 0000 CE002000 A20000 67008400 0000 5E001700 4B001900 BC001400 50001900 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 8A003400 6004100 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 90000 FF0000 D800F200 D800F200 200000 0000 0000 0000 E900200 0000 4E009000 10000 20008A00 A10000 8A009100 10000 FF007F00 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 FF007F00 0000 0000 0000 0000 0000 008000 0000 0000 0000 0000 0000 0000 0000 0000 00
21:49:488 .\Src\UCodes\UCode_Zelda_Voice.cpp:239 D[DSPHLE]: AFC PB: 10000 0000 300B00 0000 0000 0000 0000 0000 61004800 0000 003F00 0000 6000D00 0000 0000 0000 C000D00 8E008000 0000 0000 2000E00 DC002700 0000 0000 0000 F0003F00 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 003D00 0000 5300D00 5300D00 10000 0000 0000 0000 00C800 0000 0000 0000 0000 0000 0000 0000 100FB00 110000 AE005A00 0000 6800900 A100DF00 3900BE00 9800CE00 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 A100DF00 6800900 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 90000 0000 9400F600 9400400 200000 0000 0000 0000 D60000 0000 40008200 0000 C000E400 110000 40008200 0000 FF007F00 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 FF007F00 0000 0000 0000 0000 0000 008000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 00
21:49:494 .\Src\UCodes\UCode_Zelda_Voice.cpp:239 D[DSPHLE]: AFC PB: 10000 0000 9D00C00 0000 0000 0000 0000 0000 61004800 0000 003F00 0000 6000D00 0000 0000 0000 C000D00 8E008000 0000 0000 2000E00 DC002700 0000 0000 0000 F0003F00 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 003D00 0000 D001200 D001200 10000 0000 0000 0000 00E800 0000 0000 0000 3F00600 0000 0000 0000 B5006100 5A0000 CE0000 0000 00EC00 003200 00DF00 800000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 00E800 003800 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 90000 FF0000 3800E600 6200B700 200000 0000 0000 0000 3F00600 0000 A200700 0000 E0005D00 5A0000 4500800 0000 FF007F00 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 FF007F00 0000 0000 0000 0000 0000 008000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 00
21:49:494 .\Src\UCodes\UCode_Zelda_Voice.cpp:239 D[DSPHLE]: AFC PB: 10000 0000 FD00800 0000 0000 0000 0000 0000 61004800 0000 003F00 0000 6000D00 0000 0000 0000 C000D00 8E008000 0000 0000 2000E00 DC002700 0000 0000 0000 F0003F00 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 007F00 0000 1A00400 1A00400 10000 0000 0000 0000 00D800 0000 0000 0000 E900200 0000 0000 0000 E00200 A30000 67008400 0000 C900300 FB00FF00 2D00FE00 5F0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 100D00 CF00E00 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 90000 FF0000 3900F300 3900300 200000 0000 0000 0000 E900200 0000 4E009000 10000 60006B00 A20000 8A009100 10000 FF007F00 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 FF007F00 0000 0000 0000 0000 0000 008000 0000 0000 0000 0000 0000 0000 0000 0000 0000 000
21:49:495 .\Src\UCodes\UCode_Zelda_Voice.cpp:239 D[DSPHLE]: AFC PB: 10000 0000 BC00800 0000 0000 0000 0000 0000 61004800 0000 003F00 0000 6000D00 0000 0000 0000 C000D00 8E008000 0000 0000 2000E00 DC002700 0000 0000 0000 F0003F00 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 003D00 0000 9F00E00 9F00E00 10000 0000 0000 0000 003400 0000 0000 0000 3F00600 0000 0000 0000 B5006100 5A0000 CE0000 0000 00EC00 003200 00DF00 800000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 00E800 003800 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 90000 FF0000 3800E600 6200B700 200000 0000 0000 0000 3F00600 0000 A200700 0000 E0005D00 5A0000 4500800 0000 FF007F00 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 FF007F00 0000 0000 0000 0000 0000 008000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 00
21:49:495 .\Src\UCodes\UCode_Zelda_Voice.cpp:239 D[DSPHLE]: AFC PB: 10000 0000 B400E00 0000 0000 0000 0000 0000 61004800 0000 003F00 0000 6000D00 0000 0000 0000 C000D00 8E008000 0000 0000 2000E00 DC002700 0000 0000 0000 F0003F00 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 001600 0000 5800100 5800100 10000 0000 0000 0000 002000 0000 0000 0000 9B00400 0000 0000 0000 13008800 880000 4000A400 0000 8A00F300 5A00F900 D000FD00 7600400 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 8A00ED00 3000F800 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 90000 FF0000 B900F700 B900F300 200000 0000 0000 0000 9B00400 0000 FF00DF00 0000 80006600 880000 7500FA00 0000 FF007F00 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 FF007F00 0000 0000 0000 0000 0000 008000 0000 0000 0000 0000 0000 0000 0000 0000 00
