Newsgroup: comp.sys.palmtops


Newsgroups: comp.sys.palmtops
Path: icdoc!dds
From: dds@doc.ic.ac.uk (Diomidis Spinellis)
Subject: HP 95LX Sound play command and samples on eddie
Message-ID: <1992Jun22.181952.21805@doc.ic.ac.uk>
Keywords: sound hp95lx
Sender: usenet@doc.ic.ac.uk
Nntp-Posting-Host: dirty.doc.ic.ac.uk
Organization: Dept. of Computing, Imperial College, London, UK
Date: Mon, 22 Jun 1992 18:19:52 GMT
Lines: 61
Content-Length: 2757
I have put a DOS command to play unsigned byte digital sound files 
on the HP 95LX using its built-in D/A converter in eddie.  It is
available via anonymous ftp from:
eddie.mit.edu:/distrib/hp95lx/sound/hpsound.tar.  Use the Unix
"tar xvf hpsound.tar" command to unpack it.  At the end of this
article I have included the README file from the distribution.

Enjoy,

Diomidis

----------------------------------------------------------------------
Play HP 95LX (C) Copyright 1992 Diomidis Spinellis

Permission to use, copy, and distribute this software and its
documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
both that copyright notice and this permission notice appear in
supporting documentation.

THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.

This program provides a demonstration for the sound capabilities of the
HP 95LX.  For a quick demo just type test, which will run a batch file to
play all the sound sample files.  The play command takes three parameters.
The first is the file name containing the sound samples as unsigned bytes.
The second is the data rate.  If not data rate is specified the default
will be 8000 samples/sec.  The third parameter is the number of times
the sound will repeat.  Its default value is one.  I have provided some
samples together with the distribution.  You can find these and more
sounds available via anonymous ftp on:

clouso.crim.ca:/pub/sun-source/more_sounds
emx.utexas.edu:/pub/mnt/source/sun/ss-audio/sounds
faui43.informatik.uni-erlangen.de:/mounts/cyber/cyber/sounds/mudsounds
star.cs.vu.nl:/sparcsounds
tupac-amaru.informatik.rwth-aachen.de:/pub/sounds/soundfiles

and other hosts.  In order to convert the sound files from u-law to
unsigned bytes you will need sound tools.  These are available in
executable format from:

wuarchive.wustl.edu:/mirrors3/garbo.uwasa.fi/sound/sox04.zip
src.doc.ic.ac.uk:/ibmpc/wsmr-simtel20.army.mil/sound/sox4d.zip
buizerd.cwi.nl:pub/sox4d.zip
garbo.uwasa.fi:/pc/sound/sox4d.zip

and in source format from:

bode.ee.ualberta.ca:/pub/newstuff/sox.tar.Z
buizerd.cwi.nl:pub/sox.tar.Z
vab02.larc.nasa.gov:/pub/old/sox_v1.6.tar

I hope that you will enjoy this program.  When I find time I will
convert it to a device driver to change the standard 95LX beep sounds,
and incorporate the code into the clock.exm command.
-- 
Diomidis Spinellis    Internet: <dds@doc.ic.ac.uk>    UUCP: ...!ukc!icdoc!dds
Department of Computing, Imperial College, London SW7     #include "/dev/tty"



Newsgroup comp.sys.palmtops contents
Newsgroup list
Diomidis Spinellis home page

Creative Commons License Unless otherwise expressly stated, all original material on this page created by Diomidis Spinellis is licensed under a Creative Commons Attribution-Share Alike 3.0 Greece License.