home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Audio 4.94 - Over 11,000 Files
/
audio-11000.iso
/
msdos
/
sndbords
/
proaudio
/
pcmtools
/
pcmtools.arj
/
TPCM.ARJ
/
TPCM.DOC
< prev
next >
Wrap
Text File
|
1992-08-31
|
7KB
|
186 lines
TPCM - Test PCM
Syntax
tpcm [-dqmls] [-v#] [-p#] [-c#] [-B#] [-D#] [-R#] [-iname OR wavfiles]
Options
-d debug mode, output status
-q quiet mode (no sound)
-m toggle use Monochrome Screen Buffer for DMA
-l Loop sound continuously
-s treat as stereo
-v[#] #= video Function # (1-3, see ref) default: 1
-p# #= palette # (1-8) default: 2 (6 if -v2 specified)
-c# #= palette cycle delay (default: 1)
-B# #= DMA Buffer size (KB), default: 4K if video, else 32K
-D# #= number of DMA Divisions, default: 8
-R# #= default samplerate (decimal) default: 11025
-i inpname inpname= name of input PCM file (use -R and -s)
OR
wavfiles ... filenames to play (overrides -R and -s)
Note: -iinpname and wavfiles... are mutually exclusive
Examples
C:> tpcm sound.wav
This simply plays the file "sound.wav".
C:> tpcm -v sound.wav
This displays and plays the file "sound.wav".
C:> tpcm -v *.wav
This displays and plays all .wav files.
C:> tpcm -vp7c600 *.wav
This displays and plays all .wav files using palette 7
with a delay of "600" (computer speed dependent).
C:> tpcm -isound.snd -R22050 -s
This plays the PCM file "sound.snd" at 22050Hz in stereo.
C:> tpcm -vm *.wav
This displays and plays all sound files, but uses
the monochrome screen memory for the DMA buffer.
Display Control
During display of the waveform, several keys are processed:
P palette select - the program waits for either:
0= no palette, 1 through 8= palettes 1 through 8
c,C auto cycle delay (+1/10), increasing delay as you hold key
r reverse cycle, c,C now decreases delay as you hold key
SPACE stop cycling
f,F manually cycle one way (256/16 colors)
b,B manually cycle the other (256/16 colors)
u,d change RGB up/down 1
U,D change RGB up/down 10
CR restore palette
ESC exit
Operation
This program requires the TSR pcm.com to be loaded in memory.
Use this program to play .wav files, and display them in real time.
As you can see, there are many options available to affect the flow
of the program.
Use the -q option to suppress the output of sound and have the program
simply run through the file. Note that there will be no display (if the
-v option was specified) as there is no DMA activity and so no User
Function calls. Use the -d option to see the progress of loading the
file and the associated simulated DMA transfers.
Use the -d option to observe the queueing of data and the waiting for
DMA to finish. When redirecting this output to a file on a ramdrive,
you can see how much time there is available for additional processing.
Use the -m option to cause the program to use monochrome screen memory
for the DMA buffer. Note: this memory may be used as DOS UMB (loadhigh),
and overwriting this area with sound data is not suggested! However, if
you do have a monochrome monitor, then you can watch the data slam by.
Why use the monochrome screen buffer for DMA? Well, nowadays,
with VGA and multi-megabyte-memory machines, the B segment is
a nice 32K block of memory commonly unused, and perfect for
scratch memory (like sound, where overwrites are merely noisy,
not fatal).
Unfortunately, this memory is too slow for use with 44,100 Hz
sounds, so this is not a perfect solution.
Use the -l option to loop on the sound file continuously. Press ESCAPE
to exit the loop and proceed to the next file (if any).
Use the -s option to cause the program to treat the -i specified file as
a stereo PCM file. Note: when files are specified without the -i option
and they are determined to be .wav files, then the format data specified
within is used, regardless of the -s and -R options.
Use the -i option to specify a filename (no DOS wildcards allowed). Use
the -s and -R options to specify the number of channels and the sample
rate.
Use the -B option to specify the size of the DMA buffer in KB. This
number is expressed in decimal, and should be either 4, 8, 16, 32 or 64.
This number is forced to at least 4, unless the -v option is given, in
which case it is made to be 4 for stereo output, and 2 for mono.
Use the -D option to specify the number of parititions for the DMA buffer.
This number is expressed in decimal, and should be a power of 2 greater
than 1. If the -V option is given, then it is made to be 2 in order to
ensure synchronous sound and display output.
Use the -R option to specify the samplerate for .wav files specified
with the -i option, and for non .wav files. This value can range from
100 (?) to 88200 for mono files, and 100 (?) to 44100 for stereo files.
Use the -V option to select a picture to display:
1 tpcm.scr 256-color gradient
2 tpcm2.scr me
3 tpcm3.scr lame-looking "deck" with useless knobs
These must be simple "memory dump" files, 320x200x8bit.
Mono/Stereo display is selected automatically according to the channels
for recognized .wav files.
You can specify multiple files to process, if the -i option is not also
used, by naming them at the end of the command line. You can use DOS
wildcards: "tpcm *.wav". These files are examined to determine their
type, and .wav files have their format information used to specify the
number of channels and samplerate, but the command line parameters or
default values are used for non-.wav files.
Requirements
MediaVision Pro Audio Spectrum (any model).
Does not support any compression.
This program requires a graphics monitor with the ability to display
320x200x256 colors in order to display the waveform.
Secrets
It is possible to specify the location of the DMA buffer manually using
two options not documented above, however, this can be very dangerous.
Use the -S# and -O# options to specify the segment and offset (in hex)
of the DMA buffer (use the -B# and -D# option to specify the size and
divisions). You can then have the program display the waveform using
the -V option, and direct the DMA buffer to A000:0, thus seeing the
PCM data appear on the screen in graphics mode. Interesting? Maybe,
but since we can, why not?
If you have the "setdma.exe" and "freedma.exe" programs,
you can use them to allocate and deallocate a 16K block of
memory from the very top (thereby eliminating any waste).
The "setdma.exe" program displays the segment to specify
with the tpcm -S option (and to "freedma.exe").
Copyright (c) 1992. Media Vision, Inc. All Rights Reserved.
Programmer: Bart Crane