]> git.sesse.net Git - casparcg/blobdiff - modules/bluefish/util/blue_velvet.cpp
Disable audio output when closing a bf device after playback.
[casparcg] / 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());
        }