Add adaptive rate control setting.

This commit is contained in:
Ghislain MARY 2013-06-26 13:14:53 +02:00
parent 5169e0aeea
commit f582f2e833
8 changed files with 57 additions and 8 deletions

View file

@ -183,6 +183,7 @@ extern void linphone_iphone_log_handler(int lev, const char *fmt, va_list args);
{ {
[self transformCodecsToKeys: linphone_core_get_audio_codecs(lc)]; [self transformCodecsToKeys: linphone_core_get_audio_codecs(lc)];
[self transformCodecsToKeys: linphone_core_get_video_codecs(lc)]; [self transformCodecsToKeys: linphone_core_get_video_codecs(lc)];
[self setBool:linphone_core_adaptive_rate_control_enabled(lc) forKey:@"adaptive_rate_control_preference"];
} }
{ {
@ -493,6 +494,8 @@ extern void linphone_iphone_log_handler(int lev, const char *fmt, va_list args);
linphone_core_enable_payload_type(lc,pt,[self boolForKey: pref]); linphone_core_enable_payload_type(lc,pt,[self boolForKey: pref]);
} }
linphone_core_enable_adaptive_rate_control(lc, [self boolForKey:@"adaptive_rate_control_preference"]);
linphone_core_set_use_info_for_dtmf(lc, [self boolForKey:@"sipinfo_dtmf_preference"]); linphone_core_set_use_info_for_dtmf(lc, [self boolForKey:@"sipinfo_dtmf_preference"]);
linphone_core_set_use_rfc2833_for_dtmf(lc, [self boolForKey:@"rfc_dtmf_preference"]); linphone_core_set_use_rfc2833_for_dtmf(lc, [self boolForKey:@"rfc_dtmf_preference"]);
linphone_core_set_inc_timeout(lc, [self integerForKey:@"incoming_call_timeout_preference"]); linphone_core_set_inc_timeout(lc, [self integerForKey:@"incoming_call_timeout_preference"]);

View file

@ -586,7 +586,6 @@ static UICompositeViewDescription *compositeDescription = nil;
[hiddenKeys addObject:@"battery_alert_button"]; [hiddenKeys addObject:@"battery_alert_button"];
#endif #endif
[hiddenKeys addObject:@"audio_advanced_group"];
[hiddenKeys addObject:@"playback_gain_preference"]; [hiddenKeys addObject:@"playback_gain_preference"];
[hiddenKeys addObject:@"microphone_gain_preference"]; [hiddenKeys addObject:@"microphone_gain_preference"];

View file

@ -188,6 +188,16 @@
<key>IASKTextAlignment</key> <key>IASKTextAlignment</key>
<string>IASKUITextAlignmentRight</string> <string>IASKUITextAlignmentRight</string>
</dict> </dict>
<dict>
<key>DefaultValue</key>
<true/>
<key>Key</key>
<string>adaptive_rate_control_preference</string>
<key>Title</key>
<string>Adaptive rate control</string>
<key>Type</key>
<string>PSToggleSwitchSpecifier</string>
</dict>
</array> </array>
</dict> </dict>
</plist> </plist>

View file

@ -42,3 +42,6 @@
/* Microphone gain */ /* Microphone gain */
"Microphone gain" = "Microphone gain"; "Microphone gain" = "Microphone gain";
/* Adaptive rate control */
"Adaptive rate control" = "Adaptive rate control";

View file

@ -42,3 +42,6 @@
/* Microphone gain */ /* Microphone gain */
"Microphone gain" = "Gain microphone"; "Microphone gain" = "Gain microphone";
/* Adaptive rate control */
"Adaptive rate control" = "Contrôle de débit";

View file

@ -42,3 +42,6 @@
/* Microphone gain */ /* Microphone gain */
"Microphone gain" = "Усиление микрофона"; "Microphone gain" = "Усиление микрофона";
/* Adaptive rate control */
"Adaptive rate control" = "Adaptive rate control";

View file

@ -17902,7 +17902,7 @@ Raison: %2$s</string>
</dict> </dict>
</dict> </dict>
<key>change date</key> <key>change date</key>
<date>2012-11-06T09:45:46Z</date> <date>2013-06-26T10:38:34Z</date>
<key>changed values</key> <key>changed values</key>
<array/> <array/>
<key>class</key> <key>class</key>
@ -17912,7 +17912,7 @@ Raison: %2$s</string>
<key>flags</key> <key>flags</key>
<integer>0</integer> <integer>0</integer>
<key>hash</key> <key>hash</key>
<string>d8b4f45bf8fca397a7f791bd55a61e1c <string>3d30b341d7d52a2764e5683a2ca348c1
</string> </string>
<key>name</key> <key>name</key>
<string>Audio.strings</string> <string>Audio.strings</string>
@ -18279,6 +18279,31 @@ Raison: %2$s</string>
<key>snapshots</key> <key>snapshots</key>
<dict/> <dict/>
</dict> </dict>
<dict>
<key>change date</key>
<date>2001-01-01T00:00:00Z</date>
<key>changed values</key>
<array/>
<key>class</key>
<string>BLStringKeyObject</string>
<key>comment</key>
<string>Adaptive rate control</string>
<key>errors</key>
<array/>
<key>flags</key>
<integer>0</integer>
<key>key</key>
<string>Adaptive rate control</string>
<key>localizations</key>
<dict>
<key>en</key>
<string>Adaptive rate control</string>
<key>fr</key>
<string>Contrôle de débit</string>
</dict>
<key>snapshots</key>
<dict/>
</dict>
</array> </array>
<key>old objects</key> <key>old objects</key>
<array/> <array/>

View file

@ -42,3 +42,6 @@
/* Microphone gain */ /* Microphone gain */
"Microphone gain" = "Microphone gain"; "Microphone gain" = "Microphone gain";
/* Adaptive rate control */
"Adaptive rate control" = "Adaptive rate control";