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


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Support v
« Previous 1 ... 607 608 609 610 611 ... 1198 Next »

How/why does Dolphin generate sound frequencies above 17 KHz?
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
How/why does Dolphin generate sound frequencies above 17 KHz?
11-10-2013, 01:47 PM
#12
Mere Offline
Junior Member
**
Posts: 13
Threads: 0
Joined: Nov 2013
I believe that's fairly normal with up-sampling, and often a low-pass filter is added to try and remove the unexpected data.

Looking at the code it's just doing a linear interpolation, without any kind of low pass filter on it, hence it going over 16khz (half the original sample rate).

I happened to be looking in that code just to see if there was anything in there causing audio break-ups, appears that it's not that area that's the problem, it's run out of samples in the mixer and so just repeats the last data (my old i7-920 isn't quite up to running things at full speed Sad)

Attached is a patch that might help a little bit, I add a special case for 32k to 48k conversions. By special casing the code it looks at the next 2 samples, and makes 3 samples from them (it's still a linear interpolation). It then applies a really basic low pass filter at 16khz.

To do the low pass filter properly would need a better algorithm for the conversion (at least it's in a different thread so could take the time to do something different)

Note that the patch isn't anywhere near as clean (or tidy) as I'd like, but I figured it might give you something to play with, and is against the git master from today.


Attached Files
.patch   Mixer-32-48-custom.patch (Size: 2.68 KB / Downloads: 84)
Find
Reply
« Next Oldest | Next Newest »


Messages In This Thread
How/why does Dolphin generate sound frequencies above 17 KHz? - nothingtosay - 11-08-2013, 08:23 PM
RE: How/why does Dolphin generate sound frequencies above 17 KHz? - haddockd - 11-09-2013, 12:10 AM
RE: How/why does Dolphin generate sound frequencies above 17 KHz? - delroth - 11-09-2013, 04:06 AM
RE: How/why does Dolphin generate sound frequencies above 17 KHz? - tueidj - 11-09-2013, 05:33 PM
RE: How/why does Dolphin generate sound frequencies above 17 KHz? - nothingtosay - 11-09-2013, 07:32 AM
RE: How/why does Dolphin generate sound frequencies above 17 KHz? - delroth - 11-09-2013, 11:53 AM
RE: How/why does Dolphin generate sound frequencies above 17 KHz? - moosehunter - 11-12-2013, 05:06 PM
RE: How/why does Dolphin generate sound frequencies above 17 KHz? - haddockd - 11-09-2013, 12:24 PM
RE: How/why does Dolphin generate sound frequencies above 17 KHz? - delroth - 11-09-2013, 05:41 PM
RE: How/why does Dolphin generate sound frequencies above 17 KHz? - nothingtosay - 11-09-2013, 08:02 PM
RE: How/why does Dolphin generate sound frequencies above 17 KHz? - haddockd - 11-10-2013, 01:23 AM
RE: How/why does Dolphin generate sound frequencies above 17 KHz? - nothingtosay - 11-10-2013, 08:01 AM
RE: How/why does Dolphin generate sound frequencies above 17 KHz? - Mere - 11-10-2013, 01:47 PM
RE: How/why does Dolphin generate sound frequencies above 17 KHz? - nothingtosay - 11-10-2013, 02:17 PM
RE: How/why does Dolphin generate sound frequencies above 17 KHz? - Mere - 11-10-2013, 10:56 PM
RE: How/why does Dolphin generate sound frequencies above 17 KHz? - nothingtosay - 11-11-2013, 05:49 AM
RE: How/why does Dolphin generate sound frequencies above 17 KHz? - Mere - 11-11-2013, 07:51 AM
RE: How/why does Dolphin generate sound frequencies above 17 KHz? - Link_to_the_past - 11-11-2013, 09:00 AM
RE: How/why does Dolphin generate sound frequencies above 17 KHz? - nothingtosay - 11-11-2013, 10:18 AM
RE: How/why does Dolphin generate sound frequencies above 17 KHz? - Mere - 11-11-2013, 10:32 AM
RE: How/why does Dolphin generate sound frequencies above 17 KHz? - nothingtosay - 11-12-2013, 09:19 PM
RE: How/why does Dolphin generate sound frequencies above 17 KHz? - Mere - 11-12-2013, 09:47 PM
RE: How/why does Dolphin generate sound frequencies above 17 KHz? - nothingtosay - 11-13-2013, 04:19 AM
RE: How/why does Dolphin generate sound frequencies above 17 KHz? - Mere - 11-13-2013, 07:03 AM
RE: How/why does Dolphin generate sound frequencies above 17 KHz? - nothingtosay - 11-13-2013, 10:22 AM
RE: How/why does Dolphin generate sound frequencies above 17 KHz? - Mere - 11-13-2013, 10:26 AM
RE: How/why does Dolphin generate sound frequencies above 17 KHz? - nothingtosay - 11-13-2013, 06:46 PM
RE: How/why does Dolphin generate sound frequencies above 17 KHz? - Mere - 11-14-2013, 11:45 AM
RE: How/why does Dolphin generate sound frequencies above 17 KHz? - Mere - 11-14-2013, 12:23 PM
RE: How/why does Dolphin generate sound frequencies above 17 KHz? - nothingtosay - 11-14-2013, 08:54 PM
RE: How/why does Dolphin generate sound frequencies above 17 KHz? - Mere - 11-14-2013, 11:15 PM
RE: How/why does Dolphin generate sound frequencies above 17 KHz? - delroth - 11-15-2013, 03:37 PM
RE: How/why does Dolphin generate sound frequencies above 17 KHz? - nothingtosay - 11-18-2013, 09:55 AM
RE: How/why does Dolphin generate sound frequencies above 17 KHz? - Mere - 11-15-2013, 11:57 PM
RE: How/why does Dolphin generate sound frequencies above 17 KHz? - skid - 11-16-2013, 08:49 AM
RE: How/why does Dolphin generate sound frequencies above 17 KHz? - Mere - 11-16-2013, 09:22 AM
RE: How/why does Dolphin generate sound frequencies above 17 KHz? - skid - 11-16-2013, 01:55 PM
RE: How/why does Dolphin generate sound frequencies above 17 KHz? - Mere - 11-17-2013, 02:03 AM
RE: How/why does Dolphin generate sound frequencies above 17 KHz? - tueidj - 11-17-2013, 09:43 AM
RE: How/why does Dolphin generate sound frequencies above 17 KHz? - mbc07 - 11-18-2013, 01:25 PM

  • 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