Skip to content
Snippets Groups Projects
Commit 100ffbae authored by Sebastian Hahta's avatar Sebastian Hahta
Browse files

fix vr

parent d5db9e5d
Branches
Tags
No related merge requests found
......@@ -876,7 +876,8 @@ RECURSIVE = YES
EXCLUDE = "components/common/cpp/include/nlohmann/json.hpp" \
"components/common/cpp/include/loguru.hpp" \
"components/common/cpp/include/ctpl_stl.h" \
"build/"
"build/" \
"ext/"
# The EXCLUDE_SYMLINKS tag can be used to select whether or not files or
# directories that are symbolic links (a Unix file system feature) are excluded
......
......@@ -406,7 +406,7 @@ bool ftl::gui::Camera::setVR(bool on) {
else {
vr_mode_ = false;
setChannel(Channel::Left); // reset to left channel
// todo restore camera params
// todo restore camera params<
}
return vr_mode_;
......@@ -415,7 +415,7 @@ bool ftl::gui::Camera::setVR(bool on) {
void ftl::gui::Camera::setChannel(Channel c) {
#ifdef HAVE_OPENVR
if (isVR()) {
if (isVR() && (c != Channel::Right)) {
LOG(ERROR) << "Changing channel in VR mode is not possible.";
return;
}
......
......@@ -98,9 +98,9 @@ Speaker::~Speaker() {
void Speaker::queue(int64_t ts, ftl::audio::Frame &frame) {
auto &audio = frame.get<ftl::audio::Audio>(Channel::Audio);
LOG(INFO) << "Buffer Fullness (" << ts << "): " << buffer_.size();
//LOG(INFO) << "Buffer Fullness (" << ts << "): " << buffer_.size();
buffer_.write(audio.data());
LOG(INFO) << "Audio delay: " << buffer_.delay() << "s";
//LOG(INFO) << "Audio delay: " << buffer_.delay() << "s";
}
void Speaker::setDelay(int64_t ms) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment