Author: dreimer
Date: Thu Apr 1 17:11:05 2010
New Revision: 46641
URL:
http://svn.reactos.org/svn/reactos?rev=46641&view=rev
Log:
Add a own built wav play tool made in cpp for the Batch RosBE and remove the PowerBasic
one I added yesterday.
PRO: We can build it ourselves and its silent in the console.
CONS: None.
Added:
trunk/tools/RosBE/RosBE-Windows/Tools/playwav.cpp (with props)
Removed:
trunk/tools/RosBE/RosBE-Windows/Tools/WAV.BAS
Modified:
trunk/tools/RosBE/RosBE-Windows/Powershell/update.ps1
trunk/tools/RosBE/RosBE-Windows/Root/Build-Shared.cmd
trunk/tools/RosBE/RosBE-Windows/Root/update.cmd
trunk/tools/RosBE/RosBE-Windows/Tools/makefile
Modified: trunk/tools/RosBE/RosBE-Windows/Powershell/update.ps1
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Powershe…
==============================================================================
--- trunk/tools/RosBE/RosBE-Windows/Powershell/update.ps1 [iso-8859-1] (original)
+++ trunk/tools/RosBE/RosBE-Windows/Powershell/update.ps1 [iso-8859-1] Thu Apr 1 17:11:05
2010
@@ -75,7 +75,7 @@
}
# The Update Server.
-$_ROSBE_URL = "http://dreimer.bplaced.net/rosbe"
+$_ROSBE_URL = "http://svn.reactos.org/downloads/rosbe"
# Save the recent dir to cd back there at the end.
$_ROSBE_OPATH = "$pwd"
Modified: trunk/tools/RosBE/RosBE-Windows/Root/Build-Shared.cmd
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Root/Bui…
==============================================================================
--- trunk/tools/RosBE/RosBE-Windows/Root/Build-Shared.cmd [iso-8859-1] (original)
+++ trunk/tools/RosBE/RosBE-Windows/Root/Build-Shared.cmd [iso-8859-1] Thu Apr 1 17:11:05
2010
@@ -64,7 +64,7 @@
:: Highlight the fact that building has ended.
cd /d "%_ROSBE_BASEDIR%\samples"
-wav.exe Notification.wav
+playwav.exe Notification.wav
flash.exe
Modified: trunk/tools/RosBE/RosBE-Windows/Root/update.cmd
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Root/upd…
==============================================================================
--- trunk/tools/RosBE/RosBE-Windows/Root/update.cmd [iso-8859-1] (original)
+++ trunk/tools/RosBE/RosBE-Windows/Root/update.cmd [iso-8859-1] Thu Apr 1 17:11:05 2010
@@ -17,7 +17,7 @@
title Updating...
:: The Update Server.
-set
_ROSBE_URL=http://dreimer.bplaced.net/rosbe
+set
_ROSBE_URL=http://svn.reactos.org/downloads/rosbe
:: Save the recent dir to cd back there at the end.
set _ROSBE_OPATH=%CD%
Removed: trunk/tools/RosBE/RosBE-Windows/Tools/WAV.BAS
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Tools/WA…
==============================================================================
--- trunk/tools/RosBE/RosBE-Windows/Tools/WAV.BAS [iso-8859-1] (original)
+++ trunk/tools/RosBE/RosBE-Windows/Tools/WAV.BAS (removed)
@@ -1,42 +1,0 @@
-'==============================================================================
-'
-' WAV.EXE - Command line .WAV file player
-' Copyright (c) 1998 by PowerBASIC, Inc. All Rights Reserved.
-'
-'==============================================================================
-
-$INCLUDE "WIN32API.INC"
-
-FUNCTION PbMain() AS LONG
-
- DIM wav AS ASCIIZ * 256
-
- wav = COMMAND$
-
- STDOUT "WAV.EXE v1.0 - Command line .WAV file player"
- STDOUT "Copyright (c) 1998 by PowerBASIC, Inc."
- STDOUT ""
-
- IF LEN(wav) = 0 THEN
- STDOUT "Usage: WAV filename.wav
-
- SndPlaySound BYVAL %NULL, %SND_SYNC 'stop anything currently playing
-
- FUNCTION = 1
- EXIT FUNCTION
- END IF
-
- IF INSTR(wav, ".") = 0 THEN
- wav = wav + ".WAV"
- END IF
-
- IF LEN(DIR$(wav)) THEN
- STDOUT "Playing " & wav
- SndPlaySound wav, %SND_SYNC
- ELSE
- STDOUT "File not found: " & wav
- FUNCTION = 1
- END IF
-
-END FUNCTION
-
Modified: trunk/tools/RosBE/RosBE-Windows/Tools/makefile
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Tools/ma…
==============================================================================
--- trunk/tools/RosBE/RosBE-Windows/Tools/makefile [iso-8859-1] (original)
+++ trunk/tools/RosBE/RosBE-Windows/Tools/makefile [iso-8859-1] Thu Apr 1 17:11:05 2010
@@ -8,7 +8,7 @@
SUFFIX := .exe
WINVER := 0x500
-all: buildtime chknewer chkslash echoh flash getdate rquote tee
+all: buildtime chknewer chkslash echoh flash getdate playwav rquote tee
buildtime: buildtime.c
${CC} ${CFLAGS} buildtime$(SUFFIX) buildtime.c
@@ -34,6 +34,10 @@
${CC} ${CFLAGS} getdate getdate.c
$(STRIP) getdate$(SUFFIX)
+playwav: playwav.cpp
+ ${CC} ${CFLAGS} playwav playwav.cpp -lwinmm
+ $(STRIP) playwav$(SUFFIX)
+
rquote: rquote.c
${CC} ${CFLAGS} rquote rquote.c
$(STRIP) rquote$(SUFFIX)
@@ -43,4 +47,4 @@
$(STRIP) tee$(SUFFIX)
clean:
- del /f buildtime.exe chknewer.exe chkslash.exe echoh.exe flash.exe getdate.exe
rquote.exe tee.exe
+ del /f buildtime.exe chknewer.exe chkslash.exe echoh.exe flash.exe getdate.exe
playwav.exe rquote.exe tee.exe
Added: trunk/tools/RosBE/RosBE-Windows/Tools/playwav.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Tools/pl…
==============================================================================
--- trunk/tools/RosBE/RosBE-Windows/Tools/playwav.cpp (added)
+++ trunk/tools/RosBE/RosBE-Windows/Tools/playwav.cpp [iso-8859-1] Thu Apr 1 17:11:05
2010
@@ -1,0 +1,18 @@
+/*
+ * PROJECT: RosBE - ReactOS Build Environment for Windows.
+ * LICENSE: GNU General Public License v2. (see LICENSE.txt)
+ * FILE: Tools/playwav.c
+ * PURPOSE: WAVE Player
+ * COPYRIGHT: Copyright 2010 Daniel Reimer <reimer.daniel(a)freenet.de>
+ *
+ */
+
+#include <windows.h>
+#include <tchar.h>
+#include <mmsystem.h>
+
+int _tmain(int argc, TCHAR* argv[])
+{
+ PlaySound(argv[1],NULL,SND_FILENAME|SND_SYNC);
+ return 0;
+}
Propchange: trunk/tools/RosBE/RosBE-Windows/Tools/playwav.cpp
------------------------------------------------------------------------------
svn:eol-style = native