• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › General Discussion v
« Previous 1 ... 327 328 329 330 331 ... 368 Next »

AFC Looping and Zelda music..
View New Posts | View Today's Posts

Thread Rating:
  • 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
AFC Looping and Zelda music..
02-14-2010, 09:34 AM (This post was last modified: 02-14-2010, 09:35 AM by Xtreme2damax.)
#1
Xtreme2damax Offline
New & Improved
********
Global Moderators
Posts: 3,135
Threads: 91
Joined: Mar 2009
I think I may be on to something..

Quote:// PB.RestartPos = PB.LoopStartPos;
PB.RemLength = PB.Length; // - PB.RestartPos;
PB.CurAddr = PB.StartAddr; //+ (PB.LoopStartPos >> 4) * PB.Format + ;

Why is all that commented out?

Quote:// The loop start pos is incorrect, so samples will loop a bit wrong. However, at least this fixes the intro music in ZTP, Pikmin2.[quote]

Yeah I noticed this, however it produces more correct sound/music when uncommented and gets rid of that echoing in Zelda Windwaker when the AFC looping hack is enabled. However I did changed the above to the following:

[quote]
PB.RestartPos = PB.LoopStartPos;
PB.RemLength = PB.Length - PB.RestartPos;
PB.CurAddr = PB.StartAddr + (PB.LoopStartPos >> 4) * PB.Format;

Notice the the "4" in bold, when set to 4 there is no echoing in Windwaker with the AFC looping hack, more correct sound is output besides samples being looped somewhat incorrectly and best of all looping still works in Twilight Princess. Also notice the other parts I uncommented that coincide with this.

Now I ask, what is the correct LoopStartPos if it isn't "4"? Zelda Windwaker sounds magnificent besides the slightly incorrect looping, on the file screen the waves can be heard in the background where before it was just the music without the AFC Looping Hack and that annoying echoing with the hack enabled?
Find
Reply
02-14-2010, 11:02 AM (This post was last modified: 02-14-2010, 11:03 AM by Xtreme2damax.)
#2
Xtreme2damax Offline
New & Improved
********
Global Moderators
Posts: 3,135
Threads: 91
Joined: Mar 2009
Well so far that seems to fix the echoing in Zelda Windwaker when the AFC hack is enabled allowing intro music to work in ZTP, not sure about anything else yet.

It loops slightly incorrect, and I would like to fix that except I'm not sure what the correct LoopStartPos is for PB.LoopStartPos if it isn't 4. Would the correct LoopStartPos be "0" instead of "4"?

:Edit: Arghh, the board software isn't merging double posts anymore. o_O
Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode