summaryrefslogtreecommitdiff
path: root/plugins/mRadio/roptions.pas
diff options
context:
space:
mode:
authorAlexey Kulakov <panda75@bk.ru>2014-10-26 21:27:12 +0000
committerAlexey Kulakov <panda75@bk.ru>2014-10-26 21:27:12 +0000
commit7a3e8ee82e15a49677309d8ab9eb859d3879c215 (patch)
tree02e505adf7b4cf27aab5bdf0fc54fd609e3bede2 /plugins/mRadio/roptions.pas
parent7e7ed9956861201f33eaeb5fb485831bc1bcac12 (diff)
mRadio: fix for miranda-depended mute action
git-svn-id: http://svn.miranda-ng.org/main/trunk@10874 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/mRadio/roptions.pas')
-rw-r--r--plugins/mRadio/roptions.pas12
1 files changed, 10 insertions, 2 deletions
diff --git a/plugins/mRadio/roptions.pas b/plugins/mRadio/roptions.pas
index 347747521c..2932dbbcbd 100644
--- a/plugins/mRadio/roptions.pas
+++ b/plugins/mRadio/roptions.pas
@@ -28,7 +28,7 @@ implementation
uses
windows,
- common,dbsettings,mirutils,
+ common,dbsettings,mircontacts,m_api,
rglobal;
const
@@ -186,11 +186,19 @@ begin
sTimeout :=DBReadWord(0,PluginName,optTimeout,5000);
isEQ_OFF :=DBReadByte(0,PluginName,optEQ_OFF);
- gVolume :=DBReadByte(0,PluginName,optVolume,50);
+ gVolume :=integer(shortint(DBReadByte(0,PluginName,optVolume,50)));
ForcedMono:=DBReadByte(0,PluginName,optForcedMono);
NumTries :=DBReadByte(0,PluginName,optNumTries,1);
if NumTries<1 then NumTries:=1;
+ // volume changes
+ if AuMute<>0 then
+ begin
+ gVolume:=ABS(gVolume);
+ if DBReadByte(0,'Skin','UseSound')=0 then
+ CallService(MS_RADIO_MUTE,0,0);
+ end;
+
//-- Equalizer
szTemp[0]:='E';
szTemp[1]:='Q';