]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-9922: [mod_conference] Auto Energy Level
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 13 Mar 2017 16:50:34 +0000 (11:50 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 13 Mar 2017 16:52:15 +0000 (11:52 -0500)
src/include/switch_frame.h
src/mod/applications/mod_conference/mod_conference.h

index ad739331c0d0245e87da7e7de2bc1abc498345f3..15c02f78394f4bb676957c8b4b70d0f705817db6 100644 (file)
 SWITCH_BEGIN_EXTERN_C
 
 typedef struct switch_frame_geometry {
-       uint32_t w;
-       uint32_t h;
-       uint32_t x;
-       uint32_t y;
-       uint32_t z;
-       uint32_t M;
-       uint32_t X;
+       int32_t w;
+       int32_t h;
+       int32_t x;
+       int32_t y;
+       int32_t z;
+       int32_t M;
+       int32_t X;
 } switch_frame_geometry_t;
 
 /*! \brief An abstraction of a data frame */
index 556380fa85427adfc4471e258329fe1f1cba9641..b13c7c0d58540230c6cb0fd2430e155a7f798ec8 100644 (file)
@@ -663,8 +663,8 @@ typedef struct conference_obj {
        uint32_t agc_margin;
        uint32_t agc_change_factor;
        uint32_t agc_period_len;
-       uint32_t max_energy_hit_trigger;
-       uint32_t auto_energy_sec;
+       int32_t max_energy_hit_trigger;
+       int32_t auto_energy_sec;
        uint32_t burst_mute_count;
        uint8_t min;
        switch_speech_handle_t lsh;
@@ -747,8 +747,8 @@ struct conference_member {
        switch_buffer_t *mux_buffer;
        switch_buffer_t *resample_buffer;
        member_flag_t flags[MFLAG_MAX];
-       uint32_t score;
-       uint32_t last_score;
+       int32_t score;
+       int32_t last_score;
        uint32_t score_iir;
        switch_mutex_t *flag_mutex;
        switch_mutex_t *write_mutex;
@@ -773,7 +773,7 @@ struct conference_member {
        int32_t energy_level;
        int32_t auto_energy_level;
        int32_t max_energy_level;
-       uint32_t agc_level;
+       int32_t agc_level;
        uint32_t agc_low_energy_level;
        uint32_t agc_margin;
        uint32_t agc_change_factor;