From 4e8255c80a35cf1d9b895de2d28071ec21751bb3 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Thu, 31 Mar 2016 12:16:50 -0400 Subject: [PATCH] Add record_audio member --- src/zm_camera.cpp | 5 +++-- src/zm_camera.h | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/zm_camera.cpp b/src/zm_camera.cpp index 18950d341..f35f16e9c 100644 --- a/src/zm_camera.cpp +++ b/src/zm_camera.cpp @@ -20,7 +20,7 @@ #include "zm.h" #include "zm_camera.h" -Camera::Camera( int p_id, SourceType p_type, int p_width, int p_height, int p_colours, int p_subpixelorder, int p_brightness, int p_contrast, int p_hue, int p_colour, bool p_capture ) : +Camera::Camera( int p_id, SourceType p_type, int p_width, int p_height, int p_colours, int p_subpixelorder, int p_brightness, int p_contrast, int p_hue, int p_colour, bool p_capture, bool record_audio ) : id( p_id ), type( p_type ), width( p_width), @@ -31,7 +31,8 @@ Camera::Camera( int p_id, SourceType p_type, int p_width, int p_height, int p_co hue( p_hue ), colour( p_colour ), contrast( p_contrast ), - capture( p_capture ) + capture( p_capture ), + record_audio( p_record_audio ) { pixels = width * height; imagesize = pixels * colours; diff --git a/src/zm_camera.h b/src/zm_camera.h index ad8b7b366..eb161b9f0 100755 --- a/src/zm_camera.h +++ b/src/zm_camera.h @@ -47,9 +47,10 @@ protected: int colour; int contrast; bool capture; + bool record_audio; public: - Camera( int p_id, SourceType p_type, int p_width, int p_height, int p_colours, int p_subpixelorder, int p_brightness, int p_contrast, int p_hue, int p_colour, bool p_capture ); + Camera( int p_id, SourceType p_type, int p_width, int p_height, int p_colours, int p_subpixelorder, int p_brightness, int p_contrast, int p_hue, int p_colour, bool p_capture, bool p_record_audio ); virtual ~Camera(); int getId() const { return( id ); }