Page 5 of 9 FirstFirst ... 34567 ... LastLast
Results 41 to 50 of 88

Thread: Ubuntu Desires Lower Audio Latency For Gaming

  1. #41
    Join Date
    May 2010
    Posts
    684

    Default

    Quote Originally Posted by gQuigs View Post
    That seems like the only benefit for the *average* user, but pretty much no *average* user is ever going to modify per-application volume in this way. A "hack" to allow the volume control applet to directly modify volumes exposed from applications would let us get this benefit, while keeping the stack just ALSA.
    We should go forward, not backwards. Yeah, lets ditch pulseaudio for alsa and some ridiculous hacks!

  2. #42
    Join Date
    Jul 2008
    Location
    Greece
    Posts
    3,798

    Default

    Quote Originally Posted by Detructor View Post
    you are talking about OSS. With ALSA multiple programs can access the sound card.
    No, they cannot. You're confusing the dmix device with the hardware device.

  3. #43
    Join Date
    May 2012
    Posts
    90

    Default

    Quote Originally Posted by Lynxeye View Post
    You know sound is a considerable slower media than light. Your brain can't even tell apart single pictures if they are shown within 16ms, most people can't even at 40ms. If you have a really trained ear you'll be able to tell apart sounds with 10ms latency, but I doubt [b]you[/] are able to do so. Just remember 25ms is the latency of the sound from a piano standing 10m away from you. Can you really tell the latency between the pianist triggering the string and you hearing it?
    This is an utterly incorrect analogy, the visual cortex and auditory cortex of the brain work completely differently. As for the brain being able to separate out individual sounds - it's very fast. If someone clicks their fingers next to your ear, you know it's right next to your ear; if someone does it 10m away, you know it's 10m away - how? Because your brain 'measures' the time difference between reflections of the same signal as they take different paths down the ear canal (after bouncing off the folds of the outer ear), that's why you full 'surround' hearing despite only having two ears.

    If you're recording sound on a PC, and monitoring whilst playing (the usual setup), anything over 10ms becomes noticeable. Gaming can a have a slightly higher latency because your brain will tie together the visual information with auditory, and at 60Hz that's ~17ms before the sound is heard a single frame after it should have been.

  4. #44
    Join Date
    Feb 2008
    Location
    Linuxland
    Posts
    5,187

    Default

    Quote Originally Posted by Hamish Wilson View Post
    Again, people like to pick on Lennart Poettering but at least he actively tries to DO SOMETHING to fix up the Linux desktop, rather than just yakking over and over.
    Yay, flamebaiting! Name one thing he has fixed, instead of made worse.

  5. #45
    Join Date
    Jun 2012
    Posts
    358

    Default

    Quote Originally Posted by unknown2 View Post
    Take a look on Windows:

    Windows XP: hardware mixing
    Windows 7: change to software mixing which cause serious latency problem http://www.youtube.com/watch?v=iujDVsg_2xY
    Windows 8: http://msdn.microsoft.com/en-us/libr.../br259116.aspx they realize their mistake and go back to hardware mixing again

    I wonder those PA developers will follow the stupid Microsoft again?
    To be fair, it made sense to re-design the Directsound stack as of Vista; it WAS getting on in years. And other audio API's (OpenAL, etc) were still H/W accelerated, just not directsound.

    Problem is, XAudio2 basically beat out OpenAL as the API of choice, so OpenAL is basically dead on Windows at this point.

  6. #46
    Join Date
    Jun 2012
    Posts
    358

    Default

    Quote Originally Posted by cbamber85 View Post
    This is an utterly incorrect analogy, the visual cortex and auditory cortex of the brain work completely differently. As for the brain being able to separate out individual sounds - it's very fast. If someone clicks their fingers next to your ear, you know it's right next to your ear; if someone does it 10m away, you know it's 10m away - how? Because your brain 'measures' the time difference between reflections of the same signal as they take different paths down the ear canal (after bouncing off the folds of the outer ear), that's why you full 'surround' hearing despite only having two ears.

    If you're recording sound on a PC, and monitoring whilst playing (the usual setup), anything over 10ms becomes noticeable. Gaming can a have a slightly higher latency because your brain will tie together the visual information with auditory, and at 60Hz that's ~17ms before the sound is heard a single frame after it should have been.
    I agree. Audio latency is much easier to distinguish then video latency. And audio *should* be kept, at worse, in sync with Video output, meaning a latency < 16.67ms. Although less then 10 or so would be desirable.

  7. #47
    Join Date
    Dec 2007
    Posts
    146

    Default

    Quote Originally Posted by ssvb View Post
    Would it be possible to just bypass pulseaudio and talk directly to ALSA when playing games?
    I'm sorry to any PA developers but it's a steaming pile of crap. Ubuntu would be much better off ditching it and working on auto configuration utilities for ALSA.

  8. #48
    Join Date
    Dec 2007
    Posts
    146

    Default

    Quote Originally Posted by RealNC View Post
    That results in the game taking exclusive control of the card. Nothing else will be audible. Which is a disaster. Unless you talk to the dmix device. In that case, you're back to high latency.
    I've never had my dmix setup induce audio stuttering into games/other highly cpu intensive apps like PA does every other time.

  9. #49
    Join Date
    Jun 2011
    Posts
    840

    Default

    Quote Originally Posted by Lynxeye View Post
    You know sound is a considerable slower media than light. Your brain can't even tell apart single pictures if they are shown within 16ms, most people can't even at 40ms. If you have a really trained ear you'll be able to tell apart sounds with 10ms latency, but I doubt [b]you[/] are able to do so. Just remember 25ms is the latency of the sound from a piano standing 10m away from you. Can you really tell the latency between the pianist triggering the string and you hearing it?

    Bringing down latency to the technical minimum is just a waste of energy for the sake of some retards that use the latency numbers as a kind of benchmark.
    First off, you are in no position to be claiming what i can or can't perceive (nor can you make that claim about anyone else). secondly, Ears detect latencies that your sight can't even come close to detecting and that is a fact... third, humans can detect less than 10ms when it comes to audio. Fourth, I can easily tell the difference in latency when i am standing 10m away from my piano vs. sitting in front of it playing. (though, a more practical example would be using a keyboard + speaker, followed by moving the speaker 10ms away and testing again... Just like i can tell the difference between standing right next to my guitar amp vs. being at the other side of the basement (less than 10m). bringing down the latency to a technical minimum isn't a waste of energy, nor is it some 'benchmark'.

    if you can't tell the difference between being right in front of a sound source vs. being 10m away ~ then you clearly don't have very sensitive ears. (if fact, i would say you have a mild handycap). So rather than going on about this, maybe instead you should take two of the same wav file, double track them and offset the 2nd wave by 25ms and actually see if you can tell the difference - if you still can't under that circumstance - you have terrible hearing.

  10. #50
    Join Date
    Jun 2011
    Posts
    840

    Default

    Quote Originally Posted by psycho_driver View Post
    I've never had my dmix setup induce audio stuttering into games/other highly cpu intensive apps like PA does every other time.
    Yeah, something that i find analogous (on my jackd/ffado system) to the stuttering of PA, would be when i need to route an alsa app (ie: cannot use jackd directly - things like adobe flash, VMware, darkplays 11.1.c.a, skype(? i don't use it), etc). I have a couple of choices that use snd-aloop (alsa loopback device / virtual device) that these alsa apps will use - then i can use either alsa_in/alsa_out (tools that come with jackd that expose the loopback device into jack, as clients) or i can use zita-ajbridge....

    Well, in this scenario alsa_in/out would be PA, while zita-ajbridge would be ALSA.

    zita-bridge - solid, fast with no stuttering.
    alsa_in/alsa_out - 'can' be clunky/choppy in some scenarios (while in others being just 'okay'.) It also can be a bit lossy, unless i want to throw a little cpu at the problem.

    So obviously, you can imagine which solution that i personally use - zita-ajbridge instead of alsa_in/out, hands down. (and thus, in the scenario of ALSA vs. PA - i would be using alsa... Although, there are cases where PA is really needed, as discussed many many times here and elsewhere - i just wish ALSA had of been adapted/modernized/improved rather than introducing yet another soundserver (but that's just kicking a dead horse and isn't really my problem anyway... + if those were my only two choices i would probably be using CoreAudio, instead.).

    cheerz

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •