home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 10
/
Fresh_Fish_10_2352.bin
/
useful
/
mus
/
play
/
play16
/
play16.doc
< prev
next >
Wrap
Text File
|
1995-07-02
|
22KB
|
510 lines
---------------------------------------------------------------------------
-- Play16 version 1.5 (02.07.95) - a versatile soundplayer for the Amiga --
---------------------------------------------------------------------------
Features in brief
-----------------
- autodetects and plays several soundfiles, up to 16 bit / 56 kHz / stereo
- full Workbench support (but not Intuition and no GUI)
- always correct playback speed, even for sounds >28 kHz
- realtime playback from harddisk, optimized assembler routines
- optional 14 bit output (less noise but not as good as true 16 bit)
- automatic or manual audio filter control
- plays mono sounds on *both* channels, not only on the left one
- plays (and loops) files that are larger than memory
- preloading for exactly timed start of playback
- fast uLaw decompression
- system friendly audio channel allocation
- optionally dump the output into a file (can be used to convert sounds)
- supported Filetypes are:
* Microsoft RIFF-WAVE (.WAV) mono / stereo, 8 / 16 bit, linear / uLaw
* Creative Voice File (.VOC) mono / stereo, 8 / 16 bit, linear
* Sun/NeXT Audio (.AU) mono / stereo, 8 / 16 bit, linear / uLaw
* MacroSystem MAUD (.MAUD) mono / stereo, 8 / 16 bit, linear / uLaw
* Apple/SGI/Amiga AIFF (.AIFF) mono / stereo, 8 / 16 bit, linear
* Amiga IFF-8SVX (.IFF) mono / stereo, 8 bit, linear / FibDelta
* Any raw sound data as long as it matches one of the following:
- 8 bit signed
- 8 bit unsigned
- 16 bit signed, Intel format (LSB first)
- 16 bit signed, Motorola format (MSB first)
- supported output devices are:
* Native Amiga chipset (Paula) 8 bit
* Native Amiga chipset (Paula) 14 bit
* Native Amiga chipset (Paula) 14 bit calibrated (Christian Buchner)
* MacroSystem Maestro Pro 16 bit 44.1kHz and 48kHz only
* IFF-8SVX file dump 8 bit
========================== Section 1: Quick start =========================
What do I need to use Play16?
-----------------------------
Any Amiga running Kickstart/Workbench 2.04 or greater.
To use the calibrated 14 bit output you need a valid CyberSound preferences
file in your ENVARC: directory. If you don't have one already it can be
generated with Christian's calibration package included in this distribution.
Maestix.library V38 or higher is required to use the MPro board for output.
Where do I find the latest version?
-----------------------------------
- FIDONET: Amiga Venture BBS, Germany (2:243/6050)
- AMINET: mus/play
- WWW: http://linux.rz.fh-hannover.de/~wenzel/Play16/
further I recommend to have a look at the following packages:
CyberSound:
- AMINET: disk/cdrom/14Bit_CDPlayer.lha
Maestix:
- AMINET: util/libs/Maestix39_00.lha
How do I use it?
----------------
From CLI: Simply type "Play16 <filename>" and that's it!
From Workbench: Just doubleclick on it's icon. A filerequester will pop up.
All possible options will be explained later. If you set none of them, the
defaults will be used.
==================== Section 2: Background information ====================
What does it do?
----------------
Basically, Play16 is capable of playing uncompressed and _some_ compressed
soundfiles through Amiga's standard audio device or an increasing number of
alternative devices. If the actual resolution or playback rate exceeds that
of the Amiga hardware, realtime conversion is done so that the sound is
being played back correctly.
You can even play 16 bit / 44.1 kHz sounds, providing all parts of
your system can keep up with the high data transfer rate and lots
of calculations needed for this task. (In this case an accelerated
Amiga is recommended :-)
The two audio channels at each side can be linked to perform as a single
14 bit channel. Again, this swallows lots of computing power.
Anyway, my Amiga 3000-16MHz is fast enough to play an uncompressed soundfile
with full 44.1kHz/14bit output (productivity) directly from harddisk !!!
I don't want Play16 to be a program that plays each and every exotic format
that exists somewhere. However, I intend to support as many popular file
types as possible.
Why Play16?
-----------
16 bit soundcards are becoming more and more popular, especially on the
PC. The common file format over there is Microsoft's (yuck! :)) RIFF-
WAVE format.
I didn't find any CLI based program to play back 16 bit recordings, on a
standard Amiga, so I decided to write one myself.
Why CLI based and no GUI?
-------------------------
There are so many GUI based directory utilities, simply use Play16 as an
external player. Consult the manual of your software package on how to
do it. Application example: Assign "Play16 <filename> PRELOAD" to a button
called "Jingle". Select the desired soundfile and press the Jingle-button.
Wait for the appropriate moment and hit the return key - here comes the
sound! Nice when audio dubbing your home videos or even on parties :-)
How does it work? (technical info)
----------------------------------
The standard Amiga audio device is limited to 8 bit / 28 kHz playbck
when using DMA. With the introduction of ECS the 28 kHz DMA barrier
was broken - but only if the current displaymode was one with double
scan rate like productivity. The reason for this is the dependency
between video and audio DMA. If you don't have ECS or if you simply
don't want to switch to Productivity just to listen to your desired
sound, Play16 can halve the sample rate during playback.
Another way to archieve high output rates is using IRQ. This works no
matter what the displaymode is. I've been experimenting on that long
before I started writing Play16 but there was so much jitter that my
current downsampling method sounds much better.
To play back even long sounds, the popular method of double buffering
is used. Alternatively, all data can be loaded into memory before
playback. This is useful when playing short sounds or when loading
the sound from floppy disk or slow CD ROM.
The 14 bit output is archieved by setting the first channel on each
side to volume 64 and the second to volume 1. The louder channel then
plays the upper 8 bits as usual while the other channel plays the
6 most significant bits of the low byte synchronously. Because timing
is very crucial in this case it is nessecary to write directly to
hardware registers instead of using the audio.device. This method may
not work on future amiga models if there ever will be any... :-/
Unfortunately, Amiga's DACs are not perfectly linear. A significant
increase in sound quality can be archieved by calibrating each
MSB conversion step individually for your machine. Christian Buchner's
CyberSound system supports this kind of calibration. Play16 can load
the preferences file generated by Christian's calibration program.
The MPro output uses the maestix.library by Richard Körber. Have a look
at the Maestix package available on AMINET for further details.
=========================== Section 3: Options ============================
What options are provided?
--------------------------
There are three ways to specify the options, which are:
CLI: In the commandline, using standard AmigaOS 2.x template
Workbench: In the icon, using standard Amiga Workbench tooltype entries
General: By setting environment variables. This is not possible for
all options yet.
If you are not familiar with the AmigaOS 2.x commandline template, see
the examples below and consult the AmigaOS manual for furhter information.
The tooltype entries are identical to the keywords you can specify in the
commandline. Also, the environment variables have the same names and reside
in ENV:Play16.
Basic options: (All options marked with (*) have corresponding env-vars.)
VERBOSITY/N Sets the level of verbosity.
0: Just display the banner and error messages
1: Print additional information about the sound file,
allocated memory, etc.
2: Progress information
3: Debugging information (may look a bit weird :)
Default is level 0.
FAST/S Do NOT automatically switch to half sample rat