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


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Development Discussion v
« Previous 1 ... 56 57 58 59 60 ... 116 Next »

AFC Looping Checkbox for DSP Plugin
View New Posts | View Today's Posts

Pages (9): 1 2 3 4 5 ... 9 Next »
Jump to page 
Thread Rating:
  • 3 Vote(s) - 2.67 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
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.)
#1
Xtreme2damax Offline
New & Improved
********
Global Moderators
Posts: 3,135
Threads: 91
Joined: Mar 2009
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
Find
Reply
01-31-2010, 01:58 PM (This post was last modified: 01-31-2010, 02:06 PM by James333.)
#2
James333 Offline
Above and Beyond
*******
Posts: 1,520
Threads: 8
Joined: Jul 2009
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 Files
.patch   UnlimitedJitCache_watchdog-fix.patch (Size: 12.56 KB / Downloads: 326)
MB : MSI Z68A-GD80
CPU : Intel Core i7 2600k @ 3.4 GHz (stock clock)
Gfx : ATI Raedon HD 6850
Ram : 4 GB DDR3-1333
OS : Windows XP x86

I speak Spanish Big Grin ( And a little English )
Find
Reply
01-31-2010, 02:49 PM
#3
Xtreme2damax Offline
New & Improved
********
Global Moderators
Posts: 3,135
Threads: 91
Joined: Mar 2009
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..
Find
Reply
01-31-2010, 03:00 PM
#4
James333 Offline
Above and Beyond
*******
Posts: 1,520
Threads: 8
Joined: Jul 2009
And what about this ? ( I mean , for the checkbox )

http://code.google.com/p/dolphin-emu/source/detail?r=4623
MB : MSI Z68A-GD80
CPU : Intel Core i7 2600k @ 3.4 GHz (stock clock)
Gfx : ATI Raedon HD 6850
Ram : 4 GB DDR3-1333
OS : Windows XP x86

I speak Spanish Big Grin ( And a little English )
Find
Reply
01-31-2010, 03:22 PM
#5
Xtreme2damax Offline
New & Improved
********
Global Moderators
Posts: 3,135
Threads: 91
Joined: Mar 2009
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..
Find
Reply
01-31-2010, 03:56 PM (This post was last modified: 01-31-2010, 03:58 PM by James333.)
#6
James333 Offline
Above and Beyond
*******
Posts: 1,520
Threads: 8
Joined: Jul 2009
(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 : MSI Z68A-GD80
CPU : Intel Core i7 2600k @ 3.4 GHz (stock clock)
Gfx : ATI Raedon HD 6850
Ram : 4 GB DDR3-1333
OS : Windows XP x86

I speak Spanish Big Grin ( And a little English )
Find
Reply
01-31-2010, 04:48 PM
#7
Xtreme2damax Offline
New & Improved
********
Global Moderators
Posts: 3,135
Threads: 91
Joined: Mar 2009
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.
Find
Reply
01-31-2010, 11:23 PM (This post was last modified: 01-31-2010, 11:24 PM by holymountain.)
#8
holymountain Offline
Junior Member
**
Posts: 26
Threads: 0
Joined: Jan 2010
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
Reply
02-01-2010, 02:48 AM
#9
Xtreme2damax Offline
New & Improved
********
Global Moderators
Posts: 3,135
Threads: 91
Joined: Mar 2009
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
Find
Reply
02-01-2010, 03:26 AM (This post was last modified: 02-01-2010, 05:26 AM by James333.)
#10
James333 Offline
Above and Beyond
*******
Posts: 1,520
Threads: 8
Joined: Jul 2009
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: 385)
MB : MSI Z68A-GD80
CPU : Intel Core i7 2600k @ 3.4 GHz (stock clock)
Gfx : ATI Raedon HD 6850
Ram : 4 GB DDR3-1333
OS : Windows XP x86

I speak Spanish Big Grin ( And a little English )
Find
Reply
« Next Oldest | Next Newest »
Pages (9): 1 2 3 4 5 ... 9 Next »
Jump to page 


  • 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