Skip to content

Commit

Permalink
DeckLink cap.: reconf cleanup
Browse files Browse the repository at this point in the history
cleaned to match SDK examples - audio is never re-enabled in the samples
  • Loading branch information
MartinPulec committed Oct 23, 2023
1 parent 5e2815c commit 054668c
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/video_capture/decklink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -336,16 +336,6 @@ class VideoDelegate : public IDeckLinkInputCallback {
return result;
}
CALL_AND_CHECK(deckLinkInput->EnableVideoInput(mode->GetDisplayMode(), pf, s->enable_flags), "EnableVideoInput");
if (!device.audio) { //TODO: figure out output from multiple streams
deckLinkInput->DisableAudioInput();
} else {
deckLinkInput->EnableAudioInput(
bmdAudioSampleRate48kHz,
s->audio.bps == 2 ? bmdAudioSampleType16bitInteger :
bmdAudioSampleType32bitInteger,
max(s->audio.ch_count, 2)); // BMD isn't able to grab single channel
}
//deckLinkInput->SetCallback(s->state[i].delegate);
deckLinkInput->FlushStreams();
deckLinkInput->StartStreams();
}
Expand Down

0 comments on commit 054668c

Please sign in to comment.