Skip to content

Commit 6466d12

Browse files
author
Rafal Harabien
committed
[CMAKE]
* Add sndrec32 to build * Fix build of mmc svn path=/branches/cmake-bringup/; revision=51534
1 parent 9ea47cc commit 6466d12

File tree

4 files changed

+14
-4
lines changed

4 files changed

+14
-4
lines changed

base/applications/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ add_subdirectory(regedt32)
2828
add_subdirectory(sc)
2929
add_subdirectory(screensavers)
3030
add_subdirectory(shutdown)
31-
#add_subdirectory(sndrec32)
31+
add_subdirectory(sndrec32)
3232
add_subdirectory(sndvol32)
3333
add_subdirectory(taskmgr)
3434
add_subdirectory(winhlp32)

base/applications/mmc/lang/sv-SE.rc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
LANGUAGE LANG_NORWEGIAN, SUBLANG_NEUTRAL
1+
/*
2+
* PROJECT: ReactOS RAPPS
3+
* FILE: \base\applications\mmc\lang\sv-SE.rc
4+
* PURPOSE: Swedish resource file
5+
* Translation: Jaix Bly
6+
*/
7+
LANGUAGE LANG_SWEDISH, SUBLANG_NEUTRAL
28

39
IDM_CONSOLEROOT MENU DISCARDABLE
410
BEGIN

base/applications/sndrec32/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11

2+
set_unicode()
3+
set_cpp()
4+
set_rc_compiler()
5+
26
add_executable(sndrec32
37
audio_format.cpp
48
audio_membuffer.cpp
@@ -12,4 +16,4 @@ add_executable(sndrec32
1216

1317
target_link_libraries(sndrec32 stlport)
1418
set_module_type(sndrec32 win32gui)
15-
add_importlibs(sndrec32 winmm user32 msacm32 comctl32 comdlg32 gdi32 msvcrt)
19+
add_importlibs(sndrec32 winmm user32 msacm32 comctl32 comdlg32 gdi32 msvcrt kernel32)

base/applications/sndrec32/sndrec32.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ WndProc_wave( HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam )
462462

463463
x = ( i * samples ) / WAVEBAR_CX;
464464

465-
line_h = ( abs(AUD_OUT->nsample( x )) * max_h ) / AUD_OUT->samplevalue_max();
465+
line_h = ( AUD_OUT->nsample( x ) * max_h ) / AUD_OUT->samplevalue_max();
466466

467467

468468
if ( line_h )

0 commit comments

Comments
 (0)