home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
MM1
/
SOUNDUTILS
/
mm1_play.lzh
/
PLAY
/
Read.Me
< prev
next >
Wrap
Text File
|
1994-10-10
|
2KB
|
42 lines
Here are my sound playing programs for MM/1. They can play NeXT/Sun *.au
files, Amiga IFF/8SVX files, Creative Voice *.voc files and Microsoft *.wav
files. There is a separate program to play each type of file. Information
about the sound file formats can be obtained in the form of audio-fmts.faq
file, available by anonymous ftp from directory pub/audio on ftp.cwi.nl or
from /pub/usenet/news.answers on rtfm.mit.edu.
The ideas behind writing these programs from scratch were:
- to be able to play various formats
- to see the parameters encoded in the files (number of channels, sample rate)
- to be able to find what is going on if something fails
- to have a compact documentation of the formats (in the form of the sources).
Eventually I wanted to merge these into one playing program and perhaps
add a graphical/mouse interface. This is not yet done and I decided to
release the sources now in order not to delay it any longer. A simple
program that tries to recognize the file format using the first four bytes
of the file has been added instead.
All the programs can play sound files of any length. This is done by
double buffering - one buffer is played when the other one is filled.
However, this has a side effect while reading the file from a slow medium
(like a diskette) - there are pauses between the buffers. The buffer size in
each program is called BUFFER_SIZE, is now equal to 100000, and can be
easily changed.
All files are played in stereo - the mono files are converted to stereo by
sending identical sounds to both channels. Although MM/1 has an
(undocumented) mono mode, it sends bytes to alternate channels. This causes
audible distortions of the sound (unless both channels are connected to the
same speaker).
I release these programs to the public domain.
Enjoy
Andrzej Kotanski
(kotanski@zeus02.desy.de) Cracow, Poland, October 10, 1994