mirror of
https://github.com/reactos/RosBE.git
synced 2024-11-26 21:00:28 +00:00
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. svn path=/trunk/tools/RosBE/; revision=1193
This commit is contained in:
parent
6b4d801523
commit
6757760dc1
@ -75,7 +75,7 @@ function UPDCHECK {
|
||||
}
|
||||
|
||||
# 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"
|
||||
|
@ -64,7 +64,7 @@ if %_ROSBE_WRITELOG% == 1 (
|
||||
:: Highlight the fact that building has ended.
|
||||
|
||||
cd /d "%_ROSBE_BASEDIR%\samples"
|
||||
wav.exe Notification.wav
|
||||
playwav.exe Notification.wav
|
||||
|
||||
flash.exe
|
||||
|
||||
|
@ -17,7 +17,7 @@ setlocal enabledelayedexpansion
|
||||
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%
|
||||
|
@ -1,42 +0,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
|
||||
|
@ -8,7 +8,7 @@ STRIP := strip
|
||||
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 @@ getdate: getdate.c
|
||||
${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 @@ tee: tee.c
|
||||
$(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
|
||||
|
18
RosBE-Windows/Tools/playwav.cpp
Normal file
18
RosBE-Windows/Tools/playwav.cpp
Normal file
@ -0,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@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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user