Commit 58ac2372 authored by g3gg0's avatar g3gg0
Browse files

audio uses ml-cbr to ask for recording

--HG--
branch : unified
parent 46d2ca7dedc3
......@@ -3,6 +3,7 @@
#include "module.h"
#include "raw.h"
#include "zebra.h"
#include "ml-cbr.h"
int sound_recording_enabled_canon()
{
......@@ -15,15 +16,19 @@ static int (*mlv_snd_is_enabled)() = MODULE_FUNCTION(mlv_snd_is_enabled);
/* TODO: may need check for conditions like raw modules loaded and so on */
int sound_recording_enabled()
{
if (fps_should_record_wav())
uint32_t status = 0;
/* ask using ml-cbr */
ml_notify_cbr("snd_rec_enabled", &status);
if(status)
{
/* this is supposed to work with sound turned off from Canon menu */
return 1;
}
if (mlv_snd_is_enabled())
if (fps_should_record_wav())
{
/* check for mlv_snd (it may or may not depend on Canon menu setting - g3gg0? ) */
/* this is supposed to work with sound turned off from Canon menu */
return 1;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment