diff --git a/Easy Audio Player.vcxproj b/Easy Audio Player.vcxproj index 9fb3012..144297f 100644 --- a/Easy Audio Player.vcxproj +++ b/Easy Audio Player.vcxproj @@ -120,7 +120,7 @@ Windows true - uxtheme.lib;%(AdditionalDependencies) + uxtheme.lib;Winmm.lib;%(AdditionalDependencies) diff --git a/main.cpp b/main.cpp index 054bd75..0a79084 100644 --- a/main.cpp +++ b/main.cpp @@ -93,7 +93,9 @@ void FolderBrowseDialog(HWND window) { } } void PlaySound() { - + mciSendStringW(L"open D:\\grzan\\Music\\NIE.mp3 type mpegvideo alias mp3", NULL, 0, NULL); + mciSendStringW(L"play mp3 wait", NULL, 0, NULL); + mciSendStringW(L"close mp3", NULL, 0, NULL); } LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) { switch (msg) { @@ -112,7 +114,7 @@ LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) { FolderBrowseDialog(hwnd); } else if ((HWND)lParam == filesListCtrl) { - MessageBeep(MB_ICONERROR); + PlaySound(); } break; default: