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


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Development Discussion v
1 2 3 4 5 ... 115 Next »

How does Dolphin handle audio resampling?
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
How does Dolphin handle audio resampling?
06-19-2022, 03:40 AM (This post was last modified: 06-19-2022, 03:46 AM by Nintendo Maniac 64.)
#1
Nintendo Maniac 64 Offline
Posting Freak
*****
Posts: 789
Threads: 27
Joined: Jan 2011
As one probably knows, a whole slew of GameCube and Wii games internally render their audio at 32000Hz, though there are some other games that use rates less than that (if Dolphin is to be believed than F-Zero GX uses a weird sub-32Khz sampling rate that I don't remember the value of off the top of my head).

From there it's my impression that, on real hardware, all audio is resampled to 48kHz for the final audio output.


Now 48kHz is a common enough sampling rate on PCs but, even then, you can still run into cases where it's not the default. Furthermore, what about when running WASAPI exclusive on Windows which ignores the default and instead just chooses the rate that is an identical match? (except on Sound Blaster and Asus sound cards which basically ignore exclusive mode)


So basically the way I see things is that there are two possibilities on how Dolphin currently handles audio resampling, but I do not know which manner is the way that it behaves; for this example we're running a 32kHz game with OS is set to 192kHz:
  • 32kHz --to-> 192kHz
  • 32kHz --to-> 48kHz --to-> 192kHz

Furthermore, there's always the possibility that Dolphin behaves differently when dealing with a final output that is less than 48kHz, e.g. if the OS is set to 44.1kHz instead. I don't suppose devs have insight into this as well, or if it behaves the same regardless of the final output sampling rate?

Even more-so, there's even the possibility that PulseAudio on Linux can further behave differently because it's my impression that, if you're using PipeWire in-place of PulseAudio, then it can actually be configured to automatically change the output sampling rate to whatever is the best-fit (presumably when only a single audio stream is playing at least - I say "presumably" because I've not gotten the function to work on my current Mint 20.3 config) in a manner similar to WASAPI exclusive (but without the "exclusive" - I don't suppose this is how WASAPI non-exclusive works?)
Dolphin 5.0 CPU benchmark

CPU: Pentium G3258 @ 4.5GHz 1.24v
GPU: Intel integrated
RAM: 4x4GB Corsair Vengence @ DDR3-1600
OS: Win7 SP1 x64 / Linux Mint of some variety
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