]> git.sesse.net Git - casparcg/commitdiff
Disable audio output when closing a bf device after playback.
authorJames Wise <james.wise@bluefish444.com>
Mon, 6 Feb 2017 03:29:33 +0000 (14:29 +1100)
committerJames Wise <james.wise@bluefish444.com>
Mon, 6 Feb 2017 03:29:33 +0000 (14:29 +1100)
modules/bluefish/util/blue_velvet.cpp

index dcc52f07da13c719f5dda454a8a5150078dd68f8..5e2bffa6fe682910dac3c756ed2b71f32ab1a048 100644 (file)
@@ -206,6 +206,9 @@ namespace caspar { namespace bluefish {
 
        BLUE_UINT32 bvc_wrapper::detach()
        {
+               // disable the audio on detach
+               unsigned int audio_value = 0;
+               bfcQueryCardProperty32((BLUEVELVETC_HANDLE)bvc_.get(), EMBEDEDDED_AUDIO_OUTPUT, audio_value);
                return bfcDetach((BLUEVELVETC_HANDLE)bvc_.get());
        }