CopyWave for OS/2 by Carsten Arnold
Version 1.05
eMail:  C.Arnold@Transnet.de
URL:    http://home.t-online.de/home/C.Arnold

This program is freeware.

The program copies parts from an existing PCM-Wave file starting 
from an indicated place in an indicated length into a new Wave file. 
The files can be very big.

Syntax:
CopyWave Sourcefile Targetfile [Options]

Options are:
/ss:n     start sample
/es:n     end sample
/cs:n     count of samples
   instead of samples can also specified time
/st:n     start time in seconds
/et:n     end time in seconds
/ct:n     length in seconds

Seconds can be decimal fraction, for example
/ct:20.2

   or bytes
/sb:n     startbyte
/eb:n     endbyte
/cb:n     count of bytes
/o        enable overwrite
/pr:c.d   priority
    c = class 0-4 (0->no change, 2 is default)
    d = delta 0 - 31
/Buffer:n Buffer size in Byte, default is 409600

Use with care, the buffer are allocated fom RAM, 
too big buffer will swapped out to swapper.dat

/Async    ansynchron read and write (2 threads), default is synchron

CopyWave can work with two threads, thread one read, thread two write.
This option is suggestive only, if copy from one physical HD to another
physical HD. This can increase the speed of copying.


/v        View only

shows file data, for example:
file size   94863936 byte
samples     23715984
duration    1075.000 seconds
channels    stereo
bits/sample 16
samples/sec 22050

/NoWc       No write cache

Normally the file-system driver should place data from I/O operations 
into its cache. If this switch is set I/O operations to the file need not 
be done through the file-system driver's cache. 
The setting of this bit determines whether file-system drivers should place 
data into the cache. Like the write-through flag. 

/NoRc       No read cache

See /NoWc

/WThrough

If this switch not set, data writes to the file may go through the file-system 
driver's cache. The file-system driver writes the sectors when 
the cache is full or the file is closed. 

If set, data writes to the file may go through the file-system driver's 
cache, but the sectors are written (the actual file I/O operation is 
completed) before a synchronous write call returns. This state of the file 
defines it as a synchronous file. For synchronous files, this flag must 
be set, because the data must be written to the medium for synchronous 
write operations. 

