Add mic/playback gain settings

Add upload/download bandwidth settings
This commit is contained in:
Yann Diorcet 2012-11-06 11:05:04 +01:00
parent ce480c92e0
commit 9aac229c4a
13 changed files with 320 additions and 10 deletions

View file

@ -124,6 +124,14 @@ extern void linphone_iphone_log_handler(int lev, const char *fmt, va_list args);
{
[self setInteger: linphone_core_get_audio_port(lc) forKey:@"audio_port_preference"];
[self setInteger: linphone_core_get_video_port(lc) forKey:@"video_port_preference"];
}
{
[self setInteger: linphone_core_get_upload_bandwidth(lc) forKey:@"upload_bandwidth_preference"];
[self setInteger: linphone_core_get_download_bandwidth(lc) forKey:@"download_bandwidth_preference"];
}
{
[self setFloat:linphone_core_get_playback_gain_db(lc) forKey:@"playback_gain_preference"];
//[self setFloat: linphone_core_get_microphone_gain_db(lc) forKey:@"microphone_gain_preference"];
}
{
LCSipTransports tp;
@ -482,6 +490,18 @@ extern void linphone_iphone_log_handler(int lev, const char *fmt, va_list args);
int video_port_preference = [self integerForKey:@"video_port_preference"];
linphone_core_set_video_port(lc, video_port_preference);
int upload_bandwidth = [self integerForKey:@"upload_bandwidth_preference"];
linphone_core_set_upload_bandwidth(lc, upload_bandwidth);
int download_bandwidth = [self integerForKey:@"download_bandwidth_preference"];
linphone_core_set_download_bandwidth(lc, download_bandwidth);
float playback_gain = [self floatForKey:@"playback_gain_preference"];
linphone_core_set_playback_gain_db(lc, playback_gain);
//float microphone_gain = [self floatForKey:@"microphone_gain_preference"];
//linphone_core_set_microphone_gain_db(lc, microphone_gain);
UIDevice* device = [UIDevice currentDevice];
bool backgroundSupported = false;
if ([device respondsToSelector:@selector(isMultitaskingSupported)])

View file

@ -574,10 +574,18 @@ static UICompositeViewDescription *compositeDescription = nil;
[hiddenKeys addObject:@"battery_alert_button"];
#endif
[hiddenKeys addObject:@"audio_advanced_group"];
[hiddenKeys addObject:@"playback_gain_preference"];
[hiddenKeys addObject:@"microphone_gain_preference"];
[hiddenKeys addObject:@"network_limit_group"];
[hiddenKeys addObject:@"upload_bandwidth_preference"];
[hiddenKeys addObject:@"download_bandwidth_preference"];
[hiddenKeys addObject:@"incoming_call_timeout_preference"];
[hiddenKeys addObject:@"in_call_timeout_preference"];
[hiddenKeys addObject:@"quit_button"]; // Hide for the moment
[hiddenKeys addObject:@"about_button"]; // Hide for the moment
if (!linphone_core_video_supported([LinphoneManager getLc]))
[hiddenKeys addObject:@"video_menu"];

View file

@ -1,7 +1,5 @@
[sip]
sip_random_port=1
sip_tcp_random_port=1
sip_tls_random_port=1
contact="Linphone iPhone" <sip:linphone.iphone@unknown-host>
keepalive_period=30000
default_proxy=0

View file

@ -1,7 +1,5 @@
[sip]
sip_random_port=1
sip_tcp_random_port=1
sip_tls_random_port=1
contact="Linphone iPhone" <sip:linphone.iphone@unknown-host>
keepalive_period=30000
default_proxy=0

View file

@ -120,6 +120,50 @@
<key>Type</key>
<string>PSToggleSwitchSpecifier</string>
</dict>
<dict>
<key>Key</key>
<string>audio_advanced_group</string>
<key>Title</key>
<string>Advanced</string>
<key>Type</key>
<string>PSGroupSpecifier</string>
</dict>
<dict>
<key>Key</key>
<string>playback_gain_preference</string>
<key>Title</key>
<string>Playback gain</string>
<key>Type</key>
<string>PSTextFieldSpecifier</string>
<key>AutocapitalizationType</key>
<string>None</string>
<key>AutocorrectionType</key>
<string>No</string>
<key>KeyboardType</key>
<string>NumberPad</string>
<key>DefaultValue</key>
<integer>0</integer>
<key>IASKTextAlignment</key>
<string>IASKUITextAlignmentRight</string>
</dict>
<dict>
<key>Key</key>
<string>microphone_gain_preference</string>
<key>Title</key>
<string>Microphone gain</string>
<key>Type</key>
<string>PSTextFieldSpecifier</string>
<key>AutocapitalizationType</key>
<string>None</string>
<key>AutocorrectionType</key>
<string>No</string>
<key>KeyboardType</key>
<string>NumberPad</string>
<key>DefaultValue</key>
<integer>0</integer>
<key>IASKTextAlignment</key>
<string>IASKUITextAlignmentRight</string>
</dict>
</array>
</dict>
</plist>

View file

@ -158,6 +158,50 @@
<key>DefaultValue</key>
<false/>
</dict>
<dict>
<key>Key</key>
<string>network_limit_group</string>
<key>Title</key>
<string>Limits</string>
<key>Type</key>
<string>PSGroupSpecifier</string>
</dict>
<dict>
<key>Key</key>
<string>upload_bandwidth_preference</string>
<key>Title</key>
<string>Upload bandwidth</string>
<key>Type</key>
<string>PSTextFieldSpecifier</string>
<key>AutocapitalizationType</key>
<string>None</string>
<key>AutocorrectionType</key>
<string>No</string>
<key>KeyboardType</key>
<string>NumberPad</string>
<key>DefaultValue</key>
<integer>0</integer>
<key>IASKTextAlignment</key>
<string>IASKUITextAlignmentRight</string>
</dict>
<dict>
<key>Key</key>
<string>download_bandwidth_preference</string>
<key>Title</key>
<string>Download bandwidth</string>
<key>Type</key>
<string>PSTextFieldSpecifier</string>
<key>AutocapitalizationType</key>
<string>None</string>
<key>AutocorrectionType</key>
<string>No</string>
<key>KeyboardType</key>
<string>NumberPad</string>
<key>DefaultValue</key>
<integer>0</integer>
<key>IASKTextAlignment</key>
<string>IASKUITextAlignmentRight</string>
</dict>
</array>
</dict>
</plist>

View file

@ -34,3 +34,11 @@
/* PCMA */
"PCMA" = "PCMA";
/* Advanced */
"Advanced" = "Advanced";
/* Playback gain */
"Playback gain" = "Playback gain";
/* Microphone gain */
"Microphone gain" = "Microphone gain";

View file

@ -49,3 +49,11 @@
/* ZRTP */
"ZRTP" = "ZRTP";
/* Limits */
"Limits" = "Limits";
/* Upload bandwidth */
"Upload bandwidth" = "Upload bandwidth";
/* Download bandwidth */
"Download bandwidth" = "Download bandwidth";

View file

@ -34,3 +34,11 @@
/* PCMA */
"PCMA" = "PCMA";
/* Advanced */
"Advanced" = "Avancés";
/* Playback gain */
"Playback gain" = "Gain sortie";
/* Microphone gain */
"Microphone gain" = "Gain microphone";

View file

@ -23,7 +23,7 @@
"Transport" = "Transport";
/* Media Encryption */
"Media Encryption" = "Encryption media";
"Media Encryption" = "Chiffrement";
/* Push Notifications */
"Push Notification" = "Push Notification";
@ -49,3 +49,11 @@
/* ZRTP */
"ZRTP" = "ZRTP";
/* Limits */
"Limits" = "Limites";
/* Upload bandwidth */
"Upload bandwidth" = "Débit montant";
/* Download bandwidth */
"Download bandwidth" = "Débit descendant";

View file

@ -16518,7 +16518,7 @@ Raison: %2$s</string>
</dict>
</dict>
<key>change date</key>
<date>2012-10-01T10:31:40Z</date>
<date>2012-11-06T09:45:46Z</date>
<key>changed values</key>
<array/>
<key>class</key>
@ -16528,7 +16528,7 @@ Raison: %2$s</string>
<key>flags</key>
<integer>0</integer>
<key>hash</key>
<string>d07bfbef0b1c424572d4ab830553e0d6
<string>d8b4f45bf8fca397a7f791bd55a61e1c
</string>
<key>name</key>
<string>Audio.strings</string>
@ -16812,6 +16812,81 @@ Raison: %2$s</string>
<key>snapshots</key>
<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>Advanced</string>
<key>errors</key>
<array/>
<key>flags</key>
<integer>0</integer>
<key>key</key>
<string>Advanced</string>
<key>localizations</key>
<dict>
<key>en</key>
<string>Advanced</string>
<key>fr</key>
<string>Avancés</string>
</dict>
<key>snapshots</key>
<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>Playback gain</string>
<key>errors</key>
<array/>
<key>flags</key>
<integer>0</integer>
<key>key</key>
<string>Playback gain</string>
<key>localizations</key>
<dict>
<key>en</key>
<string>Playback gain</string>
<key>fr</key>
<string>Gain sortie</string>
</dict>
<key>snapshots</key>
<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>Microphone gain</string>
<key>errors</key>
<array/>
<key>flags</key>
<integer>0</integer>
<key>key</key>
<string>Microphone gain</string>
<key>localizations</key>
<dict>
<key>en</key>
<string>Microphone gain</string>
<key>fr</key>
<string>Gain microphone</string>
</dict>
<key>snapshots</key>
<dict/>
</dict>
</array>
<key>old objects</key>
<array/>
@ -17377,7 +17452,7 @@ Raison: %2$s</string>
</dict>
</dict>
<key>change date</key>
<date>2012-09-18T15:13:17Z</date>
<date>2012-11-06T09:36:36Z</date>
<key>changed values</key>
<array/>
<key>class</key>
@ -17387,7 +17462,7 @@ Raison: %2$s</string>
<key>flags</key>
<integer>0</integer>
<key>hash</key>
<string>f5919fdebddf11e613578ee7ff05f05e
<string>bb988b6e05b6fdd4c767f75b9d73b087
</string>
<key>name</key>
<string>Network.strings</string>
@ -17783,6 +17858,81 @@ Raison: %2$s</string>
<key>snapshots</key>
<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>Limits</string>
<key>errors</key>
<array/>
<key>flags</key>
<integer>0</integer>
<key>key</key>
<string>Limits</string>
<key>localizations</key>
<dict>
<key>en</key>
<string>Limits</string>
<key>fr</key>
<string>Limites</string>
</dict>
<key>snapshots</key>
<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>Upload bandwidth</string>
<key>errors</key>
<array/>
<key>flags</key>
<integer>0</integer>
<key>key</key>
<string>Upload bandwidth</string>
<key>localizations</key>
<dict>
<key>en</key>
<string>Upload bandwidth</string>
<key>fr</key>
<string>Débit montant</string>
</dict>
<key>snapshots</key>
<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>Download bandwidth</string>
<key>errors</key>
<array/>
<key>flags</key>
<integer>0</integer>
<key>key</key>
<string>Download bandwidth</string>
<key>localizations</key>
<dict>
<key>en</key>
<string>Download bandwidth</string>
<key>fr</key>
<string>Débit descendant</string>
</dict>
<key>snapshots</key>
<dict/>
</dict>
</array>
<key>old objects</key>
<array>

View file

@ -34,3 +34,11 @@
/* PCMA */
"PCMA" = "PCMA";
/* Advanced */
"Advanced" = "Advanced";
/* Playback gain */
"Playback gain" = "Playback gain";
/* Microphone gain */
"Microphone gain" = "Microphone gain";

View file

@ -49,3 +49,11 @@
/* ZRTP */
"ZRTP" = "ZRTP";
/* Limits */
"Limits" = "Limits";
/* Upload bandwidth */
"Upload bandwidth" = "Upload bandwidth";
/* Download bandwidth */
"Download bandwidth" = "Download bandwidth";