• 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 ... 36 37 38 39 40 ... 116 Next »

Question about the 60fps audio hack
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
Question about the 60fps audio hack
03-04-2015, 10:11 AM
#1
Jetman
Unregistered
 
I had a question about the 60fps audio hack line of code that requires changing. I'm quite the amateur with coding, I've never worked on anything other than GunZ: The Duel, so I might be totally wrong about this, but couldn't you include VideoConfigDiag.h, create a pointer to a video config option, and use a if statement to allow players to choose whether or not to enable it (thus preventing certain games from being messed up?). For example:

Code:
    int period;
    VideoConfig pConfig;
    if (pConfig.bAudioHack)
    {
        period = CPU_CORE_CLOCK / (AudioInterface::GetAIDSampleRate() * 4 / 32 * 2);
    }
    else
        period = CPU_CORE_CLOCK / (AudioInterface::GetAIDSampleRate() * 4 / 32);

Would something like that work(granted that type of pointer works, if not, would it work with a proper pointer?), or am I totally mistaken?
Reply
03-04-2015, 10:58 AM
#2
JMC47 Offline
Content Producer
*******
Content Creators (Moderators)
Posts: 6,543
Threads: 29
Joined: Feb 2013
You could do an option like that, but no one would ever accept a patch like that.
Find
Reply
03-04-2015, 11:02 AM
#3
Jetman
Unregistered
 
(03-04-2015, 10:58 AM)JMC47 Wrote: You could do an option like that, but no one would ever accept a patch like that.

Bad way to do it I assume?
Reply
03-04-2015, 02:19 PM
#4
mbc07 Offline
Wiki Caretaker
*******
Content Creators (Moderators)
Posts: 3,567
Threads: 47
Joined: Dec 2010
Well, it's a hack. Nowadays it looks like Dolphin developers are focusing on dropping as many hacks as possible in favour of accurate emulation. What surprises me is that Dolphin performance keeps increasing even with the whole accuracy-oriented goal, different of many other accuracy-focused emulators around which have insanely high system requirements...
Avell A70 MOB: Core i7-11800H, GeForce RTX 3060, 16 GB DDR4-3200, Windows 11 (Insider Preview)
ASRock Z97M OC Formula: Pentium G3258, GeForce GT 440, 16 GB DDR3-1600, Windows 10 (22H2)
Find
Reply
03-05-2015, 03:26 AM
#5
Jetman
Unregistered
 
Gotcha, well yeah I do think a game should be left in its original form when referring to framerate (especially since some games can have their animation system drastically altered by framerate), just wasn't sure if it was something anyone would be interested in or not. Dove deeper into the source last night, my god lol, talk about complex. Makes the GunZ source look like a joke.
Reply
03-05-2015, 05:17 AM
#6
Zooke Offline
Damaged
***
Posts: 107
Threads: 6
Joined: Feb 2015
(03-05-2015, 03:26 AM)Jetman Wrote: Gotcha, well yeah I do think a game should be left in its original form when referring to framerate (especially since some games can have their animation system drastically altered by framerate), just wasn't sure if it was something anyone would be interested in or not. Dove deeper into the source last night, my god lol, talk about complex. Makes the GunZ source look like a joke.

Dont get discouraged, It's just your patch to the main that's getting the thumbs down and that's no surprise because this is enhancement rather than emulation. there's a thread for this and plenty of us want games running at 60fps over there.

https://forums.dolphin-emu.org/Thread-game-modification-60-fps-hacks-and-patches
Find
Reply
03-05-2015, 08:03 AM
#7
Jetman
Unregistered
 
(03-05-2015, 05:17 AM)Zooke Wrote:
(03-05-2015, 03:26 AM)Jetman Wrote: Gotcha, well yeah I do think a game should be left in its original form when referring to framerate (especially since some games can have their animation system drastically altered by framerate), just wasn't sure if it was something anyone would be interested in or not. Dove deeper into the source last night, my god lol, talk about complex. Makes the GunZ source look like a joke.

Dont get discouraged, It's just your patch to the main that's getting the thumbs down and that's no surprise because this is enhancement rather than emulation. there's a thread for this and plenty of us want games running at 60fps over there.

https://forums.dolphin-emu.org/Thread-game-modification-60-fps-hacks-and-patches

Oh don't worry not discouraged, was simply curious as to whether or not my idea of the implementation would actually work. I tested it last night and got some pretty weird effects from it. Most of the time the sounds don't actually play. On occasion they'll play, but it cuts out after about 1/4th of a second.
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