New upstream version 26.0.0+dfsg1
This commit is contained in:
parent
8e020cdacb
commit
240080891f
837 changed files with 41275 additions and 9196 deletions
|
|
@ -20,6 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
#include <util/bmem.h>
|
||||
#include <util/platform.h>
|
||||
#include <util/threading.h>
|
||||
#include <util/util_uint64.h>
|
||||
#include <obs-module.h>
|
||||
|
||||
#include <alsa/asoundlib.h>
|
||||
|
|
@ -562,8 +563,9 @@ void *_alsa_listen(void *attr)
|
|||
}
|
||||
|
||||
out.frames = frames;
|
||||
out.timestamp = os_gettime_ns() -
|
||||
((frames * NSEC_PER_SEC) / data->rate);
|
||||
out.timestamp =
|
||||
os_gettime_ns() -
|
||||
util_mul_div64(frames, NSEC_PER_SEC, data->rate);
|
||||
|
||||
if (!data->first_ts)
|
||||
data->first_ts = out.timestamp + STARTUP_TIMEOUT_NS;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue