jcorks / Dynacoe

C++ game and multimedia toolkit
MIT License
0 stars 0 forks source link

Effective audio latency should be lower #3

Open jcorks opened 6 years ago

jcorks commented 6 years ago

The real time it takes between an audio request and the audio heard through hardware is still rather high. The threading in place to process the audio is likely fine, but the method that the AudioManager uses to feed data to the system backend is likely to blame. Both Linux and Windows builds.

jcorks commented 6 years ago

The audio backend has been split and reorganized. Right now, audio latency is A LOT lower than it was at the time this bug was issued.

Though, at least on one test machine, the desired (and seemingly standard?) backend audio buffer size of 256 appears to be too little for RtAudio+DirectSound. So, for now, the buffer size is 512, leaving a slightly noticeable delay for windows people. Until further notice, this will continue to be the case. Linux appears to have no issue using RtAudio + ALSA