Comment 48 for bug 996906

Revision history for this message
In , Raymond (superquad-vortex2) wrote :

(In reply to rkfg from comment #9)
> LMMS uses 64 frames, 1.5 ms but actually it has latency of 30-35 ms as
> "pacmd list-sink-inputs" says. Setting its output to ALSA results in
> extremely garbled sound, the only two options that actually produce
> reasonable sound is PulseAudio (bad latency) and SDL. Actually, latency
> isn't that bad if only PA doesn't increase it internally for every client.
>
> I've got a decent CPU here, G620 @ 2.6 GHz so I may understand skipping on
> high CPU load, BUT PulseAudio has very high realtime priority (15) and if I
> use pure ALSA there are no skips.

Refer to src/core/audio/AudioAlsa.cpp, it using 8 periods per buffer,

 how can lmms use 64 frames ?

minimum period bytes of snd-hda-intel and pulse plugin are 128 bytes (32 frames)

m_periodSize = mixer()->framesPerPeriod();
  m_bufferSize = m_periodSize * 8;