Post Reply 
 
Thread Rating:
  • 3 Votes - 2.67 Average
  • 1
  • 2
  • 3
  • 4
  • 5
AFC Looping Checkbox for DSP Plugin
01-31-2010, 01:38 PM (This post was last modified: 01-31-2010 01:39 PM by Xtreme2damax.)
Post: #1
AFC Looping Checkbox for DSP Plugin
I PM'd ector about this, but I need a quicker response..

I'm trying to make a checkbox for AFC looping so users can enable/disable AFC looping from the DSP_HLE's plugins settings.

I already have everything done, all I need to do is hook the AFC looping function to the checkbox so it can be enabled or disabled.

Can anyone give me an idea how to do this, I'm a bit of a coding newbie so I could use the help.

Thanks. Smile

Get your daily dose of emulation news, updates, downloads and resources for all your emulation needs. We are revitalizing the emulation scene and making it better than ever, we've put the "emu" back into emulation!

Join Xtemulation Today!!!
Find all posts by this user
Quote this message in a reply
01-31-2010, 01:58 PM (This post was last modified: 01-31-2010 02:06 PM by James333.)
Post: #2
RE: AFC Looping Checkbox for DSP Plugin
I have the old "unlimited JIT cahce" patch maybe it can help to guide you ( I don't understand WxWidgets )

EDIT: It directly cuts the sound when it ends or it adds a fade out ?


Attached File(s)
.patch  UnlimitedJitCache_watchdog-fix.patch (Size: 12.56 KB / Downloads: 33)

MB : ECS GF7050VT-M
CPU : Intel Pentium Dual Core @2.00GHz E2180
Gfx : NVIDIA GeForce 8500 GT
Ram : 2 GB DDR2 PC2-5300 667MHz
OS : Windows XP x86

I speak Spanish Big Grin ( And a little English )
Find all posts by this user
Quote this message in a reply
01-31-2010, 02:49 PM
Post: #3
RE: AFC Looping Checkbox for DSP Plugin
I just want to add a checkbox to enable and disable the AFC looping hack, that way the best of both worlds are in one plugin..

Get your daily dose of emulation news, updates, downloads and resources for all your emulation needs. We are revitalizing the emulation scene and making it better than ever, we've put the "emu" back into emulation!

Join Xtemulation Today!!!
Find all posts by this user
Quote this message in a reply
01-31-2010, 03:00 PM
Post: #4
RE: AFC Looping Checkbox for DSP Plugin
And what about this ? ( I mean , for the checkbox )

http://code.google.com/p/dolphin-emu/sou...ail?r=4623

MB : ECS GF7050VT-M
CPU : Intel Pentium Dual Core @2.00GHz E2180
Gfx : NVIDIA GeForce 8500 GT
Ram : 2 GB DDR2 PC2-5300 667MHz
OS : Windows XP x86

I speak Spanish Big Grin ( And a little English )
Find all posts by this user
Quote this message in a reply
01-31-2010, 03:22 PM
Post: #5
RE: AFC Looping Checkbox for DSP Plugin
Not that either, the hack that made intro and cinematic music work in Twilight Princess, I'd like to be able to make it so it can easily be enabled/disabled..

Get your daily dose of emulation news, updates, downloads and resources for all your emulation needs. We are revitalizing the emulation scene and making it better than ever, we've put the "emu" back into emulation!

Join Xtemulation Today!!!
Find all posts by this user
Quote this message in a reply
01-31-2010, 03:56 PM (This post was last modified: 01-31-2010 03:58 PM by James333.)
Post: #6
RE: AFC Looping Checkbox for DSP Plugin
(01-31-2010 03:22 PM)Xtreme2damax Wrote:  Not that either, the hack that made intro and cinematic music work in Twilight Princess, I'd like to be able to make it so it can easily be enabled/disabled..
So a checkbox is not enough ? ;P
I could help you if can wait until tomorrow ( Once I made a checkbox to work by accident xD )

MB : ECS GF7050VT-M
CPU : Intel Pentium Dual Core @2.00GHz E2180
Gfx : NVIDIA GeForce 8500 GT
Ram : 2 GB DDR2 PC2-5300 667MHz
OS : Windows XP x86

I speak Spanish Big Grin ( And a little English )
Find all posts by this user
Quote this message in a reply
01-31-2010, 04:48 PM
Post: #7
RE: AFC Looping Checkbox for DSP Plugin
I'm asking how to make a checkbox to easily enable and disable the AFC looping hack.

In order to enable AFC looping which fixes the Zelda Twilight Princess intro music, requires you to edit the UCode_Zelda_Voice.cpp and change:

if (true || PB.RepeatMode == 0)

to:

if (PB.RepeatMode == 0)

I want to create a checkbox so users can easily enable and disable this from the DSP settings. I've already got everything done except for the code to actually make this work. I need to know how to hook this actual function to the checkbox so it can be enabled/disabled by checking/unchecking the check box.

Get your daily dose of emulation news, updates, downloads and resources for all your emulation needs. We are revitalizing the emulation scene and making it better than ever, we've put the "emu" back into emulation!

Join Xtemulation Today!!!
Find all posts by this user
Quote this message in a reply
01-31-2010, 11:23 PM (This post was last modified: 01-31-2010 11:24 PM by holymountain.)
Post: #8
RE: AFC Looping Checkbox for DSP Plugin
Does the code change affect other games in a bad way? If it gives only good results, there is no need to make a checkbox I suggest or it'll just make users confused (more "Is it better to check ..." thread).

  • BootCamp 3.1
  • Windows 7 Ultimate x64
  • Intel Core 2 Duo E8135
  • 3GB of Memory
  • ATI Radeon HD 2600 PRO with 256MB of GDDR3 SDRAM
Find all posts by this user
Quote this message in a reply
02-01-2010, 02:48 AM
Post: #9
RE: AFC Looping Checkbox for DSP Plugin
Yes it does, the hack tends to cause music in Twilight Princess to cease abruptly, causes sound oddities in Windwaker and Mario Galaxy. So therefore it would be nice to make it so users can optionally switch it on/off easily from the DSP settings. Wink

Get your daily dose of emulation news, updates, downloads and resources for all your emulation needs. We are revitalizing the emulation scene and making it better than ever, we've put the "emu" back into emulation!

Join Xtemulation Today!!!
Find all posts by this user
Quote this message in a reply
02-01-2010, 03:26 AM (This post was last modified: 02-01-2010 05:26 AM by James333.)
Post: #10
RE: AFC Looping Checkbox for DSP Plugin
I am almost done , I only need to test

EDIT: Here I have it but link just repeats "hey" all the time D: ( maybe I should keep the "PB.RepeatMode == 0" in the If )

EDIT2: Now it works in ZeldaTP Tongue

EDIT3: Added a Tipbox to avoid confusion Tongue


.patch  looping checkbox patch v2-b.patch (Size: 5.88 KB / Downloads: 65)

MB : ECS GF7050VT-M
CPU : Intel Pentium Dual Core @2.00GHz E2180
Gfx : NVIDIA GeForce 8500 GT
Ram : 2 GB DDR2 PC2-5300 667MHz
OS : Windows XP x86

I speak Spanish Big Grin ( And a little English )
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)