home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BUG 4
/
BUGCD1997_05.BIN
/
aplic
/
clip4win
/
clip4win.exe
/
C4W30E.HUF
/
SOURCE
/
SNDBLAST.PRG
< prev
next >
Wrap
Text File
|
1995-07-31
|
1KB
|
51 lines
////////////////////////////
//
// Clip-4-Win Sound Blaster demo
//
// Copyright (C) 1995 Skelton Software, Kendal Cottage, Hillam, Leeds, UK.
// All Rights Reserved.
//
// To build: c4wbuild sndblast
//
////////////////////////////
#define WIN_WANT_ALL
#include "windows.ch"
#include "dll.ch"
#define NO_C4WCLASS
#include "commands.ch"
function main()
local oApp, oWnd
CREATE APPLICATION oApp WINDOW oWND TITLE "Clip-4-Win Sound Blaster demo" ;
ON WM_PAINT OnPaint(oWnd) ;
ON WM_KEYDOWN OnKey(oWnd)
return nil
static function OnPaint(hWnd)
SetPos(0, 0)
? ; ? " Press a key ..."
return nil
static function OnKey(hWnd)
local nIpSCB := OpenSpeech(hWnd, 0, 0)
Speak(nIpSCB, "Hello from Clip for Win")
CloseSpeech(nIpSCB)
return nil
_DLL function OpenSpeech(hWnd AS INT, nMode AS INT, nVoiceType AS LONG) ;
AS LONG Pascal:FB_SPCH.OpenSpeech
_DLL function Speak(nIpSCB AS LONG, cPhrase AS STRING) ;
AS INT Pascal:FB_SPCH.Say
_DLL function CloseSpeech(nIpSCB AS LONG) ;
AS INT Pascal:FB_SPCH.CloseSpeech