labstreaminglayer / App-AudioCapture

Capture audio and stream it over LabStreamingLayer
MIT License
11 stars 2 forks source link

Runs at wrong rate #1

Closed cboulay closed 4 years ago

cboulay commented 4 years ago

I don't know if something changed in Windows, but this app now seems to run at the wrong rate.

Maybe the way the time offset is being calculated is incorrect. See here.

Maybe the nominal rate is incorrect. See here

Also, while looking at this I noticed that boost is used for 1 line when launching a thread, and a couple other lines for sleeping. This can be replaced by stl. (stl sleep here)

tstenner commented 4 years ago

I've started a port to CMake+Qt somewhere, if someone could pick it up it'd also make this app cross-platform.

cboulay commented 4 years ago

Merged in Qt port in #2