diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2013-06-27 17:15:22 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2013-06-27 17:15:22 +0000 |
commit | edc7c4fda8b2cfca3458324ad5071234732b3808 (patch) | |
tree | 7b4bb5ff212b60320af989982f3ed06127be028b /plugins/NewXstatusNotify/src/indsnd.cpp | |
parent | 89f4b8572977180ef6174557bf8037ce1956667f (diff) |
added bass_interface support
git-svn-id: http://svn.miranda-ng.org/main/trunk@5156 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/NewXstatusNotify/src/indsnd.cpp')
-rw-r--r-- | plugins/NewXstatusNotify/src/indsnd.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/plugins/NewXstatusNotify/src/indsnd.cpp b/plugins/NewXstatusNotify/src/indsnd.cpp index 6e7976a788..9d4a2d1675 100644 --- a/plugins/NewXstatusNotify/src/indsnd.cpp +++ b/plugins/NewXstatusNotify/src/indsnd.cpp @@ -43,7 +43,7 @@ void PreviewSound(HWND hList) else
{
PathToAbsoluteT(buff, stzSoundPath);
- PlaySound(stzSoundPath, NULL, SND_ASYNC | SND_FILENAME);
+ SkinPlaySoundFile(stzSoundPath);
}
}
@@ -72,13 +72,16 @@ TCHAR *SelectSound(HWND hwndDlg, TCHAR *buff) ofn.hwndOwner = GetParent(hwndDlg);
ofn.hInstance = hInst;
TCHAR filter[MAX_PATH];
- mir_sntprintf(filter, SIZEOF(filter), _T("%s (*.wav)%c*.WAV%c%s (*.*)%c*%c"), TranslateT("Wave Files"), 0, 0, TranslateT("All Files"), 0, 0);
+ if (GetModuleHandle(_T("bass_interface.dll")))
+ mir_sntprintf(filter, SIZEOF(filter), _T("%s (*.wav, *.mp3, *.ogg)%c*.wav;*.mp3;*.ogg%c%s (*.*)%c*%c"), TranslateT("Sound files"), 0, 0, TranslateT("All files"), 0, 0);
+ else
+ mir_sntprintf(filter, SIZEOF(filter), _T("%s (*.wav)%c*.wav%c%s (*.*)%c*%c"), TranslateT("Wave files"), 0, 0, TranslateT("All files"), 0, 0);
ofn.lpstrFilter = filter;
ofn.lpstrFile = buff;
ofn.Flags = OFN_FILEMUSTEXIST | OFN_PATHMUSTEXIST | OFN_EXPLORER | OFN_NOCHANGEDIR;
ofn.nMaxFile = MAX_PATH;
ofn.nMaxFileTitle = MAX_PATH;
- ofn.lpstrDefExt = _T("wav");
+ ofn.lpstrDefExt = _T("");
if (GetOpenFileName(&ofn))
return buff;
|