• 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 ... 606 607 608 609 610 ... 1196 Next »

Is it unrealistic to expect the audio latency to be fixed eventually?
View New Posts | View Today's Posts

Pages (2): 1 2 Next »
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
Is it unrealistic to expect the audio latency to be fixed eventually?
10-17-2013, 10:08 AM
#1
ryan0991 Offline
Junior Member
**
Posts: 8
Threads: 1
Joined: Oct 2012
If you're wondering what I'm talking about, it's a nearly ever-present audio latency that is slight enough that many people may not notice it, but it still noticeable enough to be fairly evident to anyone who knows how it should sound. Even games that I can run at well above 100% still do it. And it gets much worse if I use anything other than the xaudio backend. I have been told before that it's simply a result of the audio instructions of LLE not being compatible with windows, thus introducing a delay. However, unlike before, I also now get the delay when using HLE. Sometimes the delay inexplicably disappears for a minute or two. I've tried to figure out what causes that, but I've been unsuccessful so far.

Basically what I'm asking is if this delay will always be a part of the emulator or if it's something that can be realistically fixed.
Find
Reply
10-17-2013, 10:15 AM
#2
skid Offline
skidau / skid_au
**********
Developers (Some Administrators and Super Moderators)
Posts: 2,006
Threads: 8
Joined: Aug 2009
I haven't looked in-depth into the cause of the audio latency, but I think it can be minimised by making the audio mixer process in real-time.

There is one aspect of emulation where we are constrained. The emulator "receives" the audio that is meant to be played that instant. But the audio backends have to buffer the audio data so that the audio does not stutter.
Find
Reply
10-18-2013, 02:40 PM
#3
ryan0991 Offline
Junior Member
**
Posts: 8
Threads: 1
Joined: Oct 2012
(10-17-2013, 10:15 AM)skid Wrote: I haven't looked in-depth into the cause of the audio latency, but I think it can be minimised by making the audio mixer process in real-time.

There is one aspect of emulation where we are constrained. The emulator "receives" the audio that is meant to be played that instant. But the audio backends have to buffer the audio data so that the audio does not stutter.
Thanks for the response. And are you just sort of thinking out loud with that audio mixer comment or is that something I can actually change?

Either way, you guys have definitely improved the audio a lot recently. HLE is actually pretty good now.
Find
Reply
10-18-2013, 10:25 PM
#4
skid Offline
skidau / skid_au
**********
Developers (Some Administrators and Super Moderators)
Posts: 2,006
Threads: 8
Joined: Aug 2009
It is not a one-liner change.

It will involve removing the "watermarks" from CMixer::Mix in Mixer.cpp and to make the audio synchronous on the CPU thread by having the scheduler (SystemTimers.cpp / CoreTiming.cpp) call CMixer::Mix at the appropriate interval in a fashion like OpenALStream::Update() does.

I wrote some more information in this issue: http://code.google.com/p/dolphin-emu/issues/detail?id=6272#c1

It would be great if someone could fix this properly.
Find
Reply
10-19-2013, 12:50 AM
#5
rokclimb15 Offline
Senior Member
****
Posts: 383
Threads: 4
Joined: Jul 2013
skid, the last update on that issue was in April. Was the original patch in the ticket ever committed to master? If you don't know, I'll see if I can find it and update some notes on the ticket.

It's been a day or two since I wrote some c++, but I'm willing to give it a shot. If there was a start to this effort I can pick it up where it left off.
Find
Reply
10-19-2013, 08:39 AM
#6
skid Offline
skidau / skid_au
**********
Developers (Some Administrators and Super Moderators)
Posts: 2,006
Threads: 8
Joined: Aug 2009
The original patch has to do with refactoring and does not affect latency.

No one has publically started the attempt to fix the audio latency / synchronous audio issue.
Find
Reply
10-19-2013, 10:47 AM
#7
rokclimb15 Offline
Senior Member
****
Posts: 383
Threads: 4
Joined: Jul 2013
Understood, but was it ever committed? As a relative newb to the codebase, it would probably be easier to read/understand refactored code.

I'll see what I can get going.
Find
Reply
10-19-2013, 12:33 PM
#8
skid Offline
skidau / skid_au
**********
Developers (Some Administrators and Super Moderators)
Posts: 2,006
Threads: 8
Joined: Aug 2009
No, it was not committed or merged to master.
Find
Reply
10-19-2013, 04:10 PM
#9
ryan0991 Offline
Junior Member
**
Posts: 8
Threads: 1
Joined: Oct 2012
I wish you guys luck.

It would be awesome if you could reduce the latency even just a little bit. I eagerly await any progress.
Find
Reply
11-13-2013, 05:40 PM
#10
ryan0991 Offline
Junior Member
**
Posts: 8
Threads: 1
Joined: Oct 2012
Just wondering if anything ever came of this.
Find
Reply
« Next Oldest | Next Newest »
Pages (2): 1 2 Next »


  • 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