Dolphin - The New Era of HLE Audio

Emu Talk Goes Here
Post Reply
Shogun
32-bit
Posts: 271
Joined: Fri Dec 31, 2010 8:21 am
Location: Denver, CO

Dolphin - The New Era of HLE Audio

Post by Shogun »

Full article with audio examples made for an interesting read:
https://dolphin-emu.org/blog/2015/08/19 ... hle-audio/

Image

In early 2013, Dolphin had began its first steps in a new focus on accurate emulation. The 3.5 release represented a shift in the emulator's focus, and as such, saw great improvements in terms of compatibility and accuracy over the previous release. But one area that stuck out like a sore thumb during this era was the quality of High Level Emulation (HLE) audio. Hundreds of games suffered from crashes associated to audio, and thousands had significant problems, with missing effects, incorrect volume, and random bursts of noise.

The problems of HLE were systemic, deeply rooted problems within its design, and would require a complete rewrite in order to solve. Rewriting HLE audio was always a priority, but the daunting task to reverse engineer, implement, and test kept most developers away. So instead they pursued Low Level Emulation (LLE) to great success. LLE audio worked so well, the developers were able to avoid the mess of HLE and more or less just tell users to dump a GameCube/Wii DSP-ROM and use that instead. The problem with that option is performance: LLE audio is incredibly demanding, especially when the DSP is being strained by many sound effects.

This situation finally changed right after Dolphin 3.5 when delroth merged New-AX-HLE-GC, a rewrite of the most common microcode (µcode) for GameCube games, AX-GC. Thousands of bugs disappeared over night and stability increased greatly. While previously there was argument among developers that HLE audio bugs could be ignored because of the option for LLE, as tens of thousands of users finally experienced accurate audio for the first time it became apparent just how important HLE audio truly was. Later in the year, the AX-HLE rewrite was expanded to Wii games in a second cleanup. The ability for users to use HLE audio for most games instead of LLE audio resulted in one of the greatest performance increases in Dolphin's history!
User avatar
samsonlonghair
Next-Gen
Posts: 5188
Joined: Tue Feb 17, 2009 2:11 pm
Location: Now: Newport News, VA. Formerly: Richmond. Before that: Near the WV/VA border

Re: Dolphin - The New Era of HLE Audio

Post by samsonlonghair »

Sounds like a breakthrough to me. Sometimes I take for granted just how far emulation has come. This is good news for the software preservation crowd.
fastbilly1
Site Admin
Posts: 13775
Joined: Tue Apr 17, 2007 7:08 pm

Re: Dolphin - The New Era of HLE Audio

Post by fastbilly1 »

Well now my Wii and Gamecube are irrelevant. You can finally get a better experience all around on the PC.
Tanooki
Next-Gen
Posts: 6947
Joined: Sun Jul 06, 2014 5:06 pm

Re: Dolphin - The New Era of HLE Audio

Post by Tanooki »

Stories like this bring back fun memories of decades past. I was deep in this community in the 1995-05 era and helped with various projects and just loved to experiment and experience the growth being greatly pleased when some wicked bug got cleared up for a game I owned as I'd compare them. The most fun though of it all was the time with both SNES96/97 before and after sound got added, and as I made friends with the author the ground floor of zsnes development through it going open source. I truly get what they're talking about there in that piece and the feeling they had seeing that wall busted wide open must have been huge.

I had to admit it but I really haven't bothered much with it in years except here or there to test drive stuff and to read to keep up on a few systems. This one I've always taken a watch but do not touch stance, never really had the hardware up until this and my last laptop, but by then, I lost all my good ties to not just info but ROMS and ISOs so I never really have fired up Dolphin. I can't think of a good reason I ever would care to touch it for wii games, but the GC has some amazing stuff that would be nice to try out at the least before poking around to buy a copy of a game to play. And of course there's always breaking that 480p wall into HD which it does too so very well.

The one thing, not GC related that still bothers me to date, no one seems to care enough to clean up N64 emulation, let alone get the microcode figured out for the most complicated game on there design wise Indiana Jones and the Infernal Machine, it and like 2-3 other games at most use its code.
Shogun
32-bit
Posts: 271
Joined: Fri Dec 31, 2010 8:21 am
Location: Denver, CO

Re: Dolphin - The New Era of HLE Audio

Post by Shogun »

The late 90's was a great time for the emulation scene. Everything was still really new and you didn't really care about accuracy and there wasn't a ton of drama. It was just cool to play the SNES on your computer. Things keep trucking along though and although progress has slowed for some emulators like Dolphin are blazing forward. Others like RetroArch and the Libretro interface are making great strides in emulation as well.
Post Reply