Тема: MobilePhone Plugin
Показать сообщение отдельно
Старый 06.09.2016, 16:24   #172
pierrotm777
Старший Пользователь
 
Аватар для pierrotm777
 
Регистрация: 07.11.2010
Регион: другой - для добавления сообщить ab
Сообщений: 324
pierrotm777 is just really nicepierrotm777 is just really nicepierrotm777 is just really nicepierrotm777 is just really nice
Smile

About the sound issue:
As duzzy say in the post 194, in the version 1.5.9, i try to use the maximum of the iCarDS events already defined into the ExecTBL.ini file !
For that i comment the lines that follow:
Код:
/ ------------------ Сохранение пресетов микшера для телефона --------------------
/---------------------------------------------------------------------------------

/ Входящий звонок
/"ONINCOMMINGCALLSTART","ByVar;IsPhoneTalk;INCOMMINGCALLSTARTif"
/"INCOMMINGCALLSTARTif","Menu;call_in.skin||StartPhoneCall"

/"ONINCOMMINGCALLEND","ByVar;IsPhoneTalk;<<INCOMMINGCALLENDTif"
/"INCOMMINGCALLENDTif","ByVar;IsMixerSkinLoad;<<Esc||ByVar;IsPhoneOverlay;Esc<<PhoneCloseOverlay||EndPhoneCall"

/ Исходящий звонок
/"ONINOUTGOINGCALLSTART","ByVar;IsPhoneTalk;INOUTGOINGCALLSTARTif"
/"INOUTGOINGCALLSTARTif","Menu;call_out.skin||StartPhoneCall"

/"ONINOUTGOINGCALLEND","ByVar;IsPhoneTalk;<<INOUTGOINGCALLENDif"
/"INOUTGOINGCALLENDif","ByVar;IsMixerSkinLoad;<<Esc||ByVar;IsPhoneOverlay;Esc<<PhoneCloseOverlay||EndPhoneCall"
and add mine:
Код:
/ (Incoming call)
"ONMOBILEPHONERINGING","ByVar;IsPhoneTalk;INCOMMINGCALLSTARTif"
"INCOMMINGCALLSTARTif","StartPhoneCall"
/ (End call)
"ONMOBILEPHONEHUNGUP","ByVar;IsPhoneTalk;<<INCOMMINGCALLENDTif"
"INCOMMINGCALLENDTif","ByVar;IsMixerSkinLoad;<<Esc||ByVar;IsPhoneOverlay;Esc<<PhoneCloseOverlay||EndPhoneCall"
/ (Outgoing call)
"ONMOBILEPHONEOUTCALL","ByVar;IsPhoneTalk;INOUTGOINGCALLSTARTif"
"INOUTGOINGCALLSTARTif","StartPhoneCall"
I have deleted all code that change the volume with a call in or a call out and think that the lines that follow do already that:
Код:
"StartPhoneCall","SetVar;IsPhoneTalk;1||ByVar;IsPausedMedia;<<CF_Pause||SaveMixerPreset_Media||LoadMixerPreset;Phone||volperc+;$vol_from_speed_full$"
"EndPhoneCall","SaveMixerPreset_Phone||LoadMixerPreset_Media||ByVar;IsPausedMedia;<<CF_Resume||SetVar;IsPhoneTalk;0"
In case we need to resume the old volume value, with a call in, the code do:
Код:
SETVARBYCODE;OLDVOLUME;VOLUME
So, it's possible to use this OLDVOLUME variable for restore the old value:
Код:
"EndPhoneCall","SaveMixerPreset_Phone||LoadMixerPreset_Media||ByVar;IsPausedMedia;<<CF_Resume||SetVar;IsPhoneTalk;0||SETVOL;MASTER;$OLDVOLUME$"
What the command 'LoadMixerPreset;Phone' load as file please ?
pierrotm777 вне форума   Ответить с цитированием