You are here

TkWave 1.0

admin의 아바타

홈페이지 : http://www.doc.ic.ac.uk/~np2/software/

다이렉트 사운드를 사용하여 wave 포맷을 재생해주는 확장 패키지입니다.

About Tkwav
-----------

Tkwav is a binary package for Tcl/Tk that provides an interface to
the DirectSound API on Windows platforms.  Using Tkwav, a script can
load sound samples and play them asynchronously.  Sounds played
simultaneously are mixed together by DirectX.

There has been some discussion on the comp.lang.tcl newsgroup about
Tcl extensions for multimedia playback and manipulation.  I am 
releasing this package, and its source code, to further the discussion
and provide a simple example of what a media playback API could look
like.  This software is not supported in any way.


License
-------

Copyright (c) 1998, Nat Pryce

Permission is hereby granted, without written agreement and without
license or royalty fees, to use, copy, modify, and distribute this
software and its documentation for any purpose, provided that the
above copyright notice and the following two paragraphs appear in
all copies of this software.

IN NO EVENT SHALL THE AUTHOR BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, 
SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF 
THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE AUTHOR HAS BEEN ADVISED 
OF THE POSSIBILITY OF SUCH DAMAGE.

THE AUTHOR SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT 
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 
PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS ON AN "AS IS" 
BASIS, AND THE AUTHOR HAS NO OBLIGATION TO PROVIDE  MAINTENANCE, SUPPORT,
UPDATES, ENHANCEMENTS, OR MODIFICATIONS.


Installation Instructions
-------------------------

The src directory already contains a precompiled DLL.  If you want to
build it yourself, follow these steps.

1) "Cd" into the src directory
2) Edit the makefile to change the following variables:
        TCL     - the directory in which Tcl is installed on your system
        DIRECTX - the directory in which the DirectX SDK is installed
                  on your system.  Tkwav has been tested with DirectX 3,
                  but should, theoretically, compile with later versions.
3) Make the package.  Use the command:
        nmake -f makefile.vc

To install the extension so that it can be loaded by the Tcl "package"
command, run the srcinstall.tcl script with Wish.  This will pop up
a simple GUI showing you which files will be installed and where they
will be copied.  Press the "Install" button to install the package.


Documentation
-------------

HTML Documentation is in the doc directory.


Example Code
------------

The test directory contains an example script, test.tcl, that uses the 
Tkwav package. Run the script with the wish shell.  This will pop
up a window containing two buttons labelled "Open..." and "Exit".

Use the "Open..." button to load WAV files. 

Each file loaded is represented as a panel on the display. Each panel
contains four buttons.  The "Play" button plays the sound once, 
the "Loop" button loops the sound, the "Stop" button stops the playback 
of the sound and the "Destroy" button stops the sounds playback, if 
necessary, and destroy's the sound object.

The "Exit" button destroys all sounds and quits the program.
첨부 파일파일 크기
File Tkwav-1.0.tgz347.58 KB
Package icon Tkwav-1.0.zip353.03 KB