Skip to content
Snippets Groups Projects
Commit 08f8ed8b authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Add audio output to GUI

parent 46ab97e0
Branches
No related tags found
1 merge request!316Resolves #343 GUI and Frame Refactor
Pipeline #28003 failed
......@@ -33,9 +33,15 @@ void Camera::activate(int idx) {
filter = io->feed()->filter({Channel::Left, Channel::Right, Channel::Depth});
filter->on(
[this](ftl::data::FrameSetPtr fs){
[this, speaker = io->speaker()](ftl::data::FrameSetPtr fs){
if (paused || !view) { return true; }
std::atomic_store(&active_fs, fs);
// Deal with audio
if (fs->frames[source_idx].hasOwn(ftl::codecs::Channel::AudioStereo)) {
speaker->queue(fs->timestamp(), fs->frames[source_idx]);
}
view->fview->set(fs, source_idx, channel);
screen->redraw();
return true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment