From 78a5885628328e26523115af24463269cdca7e55 Mon Sep 17 00:00:00 2001
From: Kirill Volinsky <mataes2007@gmail.com>
Date: Tue, 22 Jan 2013 13:58:52 +0000
Subject: geting sound preview on bass_interface frame if checked preview in
 options

git-svn-id: http://svn.miranda-ng.org/main/trunk@3229 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
---
 plugins/BASS_interface/src/Main.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/plugins/BASS_interface/src/Main.cpp b/plugins/BASS_interface/src/Main.cpp
index 35303457b0..59e88065f1 100644
--- a/plugins/BASS_interface/src/Main.cpp
+++ b/plugins/BASS_interface/src/Main.cpp
@@ -410,6 +410,9 @@ static LRESULT CALLBACK FrameWindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPAR
 						db_set_b(NULL, ModuleName, OPT_VOLUME, Volume);
 						BASS_SetConfig(BASS_CONFIG_GVOL_STREAM, Volume * 100);
 						SendMessage(hwndOptSlider, TBM_SETPOS, TRUE, Volume);
+						Preview = TRUE;
+						if (EnPreview)
+							SkinPlaySound("AlertMsg");
 					}
 				break;
 			}
-- 
cgit v1.2.3