• 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-16-2013, 09:22 AM
#35
Mere Offline
Junior Member
**
Posts: 13
Threads: 0
Joined: Nov 2013
I suspect the issue is that the audio system normally free wheels a little on the real hardware, it runs really close to 48k, but might not be spot on. Hence i think the audio interface includes the sample counter, and an interrupt when it passes a particular point.


While it requests a 48k output reality is that the timing is probably not precisely 48k, it's just really close. (as getting bang on accurate 48k is unlikely to be cheap)

So the backlog probably varies, IE you might get 47990hz, and it backs up 10 samples a second. Some may have one a little quicker, eg 48010 and end up not having enough samples.

If the real hardware works as I suspect, it uses the AI interrupt to trigger a request to the DSP to make new audio, which then ends up in the AI fifo, and that feeds into samples being consumed, which then triggers the next AI interrupt to get more data.

I'll have to do more digging, but my suspicion is the idea of the audio should be that it runs at the speed of the output clock.


I want to do some digging to work out what the AI interrupt actually does in game code, IE is it a trigger to push the next command at the dsp? And what the AI interrupt counter tends to get updated to, is it one frame of samples...

Of course I admit this is perhaps a naive view of the emulation.

Note I'm not saying it should be async to the cpu (as the HLE-zelda shows that async is different mess), just that the engine shouldn't bang out audio even if there's nothing to consume it. It might also be the cause of the audio lag that people have reported (in another thread) as the current mixer buffer is 8k samples (250ms @32khz)

Of course this could be a subtle bug hiding somewhere in the output path, but the buffer does fill up...
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