diff options
author | Chris Robinson <[email protected]> | 2019-10-09 09:45:02 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-10-09 09:45:02 -0700 |
commit | 8bf3da0cd21e2a11d9ae7ef9ba7225dc36a5bbfa (patch) | |
tree | c0c3306976355518199e690bdecb69e02f4f4ef8 /alc | |
parent | 57cdac3368e45cdb27a7d4ab699e5045d016dd3c (diff) |
Remove a useless prebuf check with PulseAudio
Diffstat (limited to 'alc')
-rw-r--r-- | alc/backends/pulseaudio.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/alc/backends/pulseaudio.cpp b/alc/backends/pulseaudio.cpp index 63d9d8e9..5f9a64e6 100644 --- a/alc/backends/pulseaudio.cpp +++ b/alc/backends/pulseaudio.cpp @@ -986,20 +986,6 @@ bool PulsePlayback::reset() mDevice->BufferSize = mAttr.tlength / mFrameSize; mDevice->UpdateSize = mAttr.minreq / mFrameSize; - /* HACK: prebuf should be 0 as that's what we set it to. However on some - * systems it comes back as non-0, so we have to make sure the device will - * write enough audio to start playback. The lack of manual start control - * may have unintended consequences, but it's better than not starting at - * all. - */ - if(mAttr.prebuf != 0) - { - ALuint len{mAttr.prebuf / mFrameSize}; - if(len <= mDevice->BufferSize) - ERR("Non-0 prebuf, %u samples (%u bytes), device has %u samples\n", - len, mAttr.prebuf, mDevice->BufferSize); - } - return true; } |