From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d4db,ca5aaff6b2da85c4,start X-Google-Attributes: gid10d4db,public X-Google-ArrivalTime: 2001-07-02 00:30:07 PST Return-Path: Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!cola.stump.algebra.com!robomod!not-for-mail X-COLA-Policy: http://stump.algebra.com/~cola X-COLA-Info-1: Send submissions to cola@stump.algebra.com X-COLA-Info-2: Send complaints to cola-admin@stump.algebra.com X-Comment: moderators do not necessarily agree or disagree with this article. X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov) Date: Mon, 2 Jul 2001 02:29:06 CST Message-ID: <3B40077F.69D4006B@home.com> From: "Warren W. Gay VE3WWG" X-Accept-Language: en MIME-Version: 1.0 Subject: AdaVox-0.5 Released Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Newsgroups: comp.os.linux.announce X-Auth: PGPMoose V1.1 PGP comp.os.linux.announce iQBVAwUAO0AiwiFvAtx2nXvNAQFh0QIAowe/HPf0EnCWC9JKFzRxDA6S1UcCV44W WGMS0c9S6cysNE+/8WIvV8vWNVDHh4iamloxa/s5UT6dUWZIjjku7A== =5Alh Xref: archiver1.google.com comp.os.linux.announce:993 AdaVox 0.5 is a wave player, which is written almost entirely in Ada95, using GNAT (3.13p). It has been tested for FreeBSD and Linux (Red Hat 7.0, 2.2.16 kernel). It currently does not record wave samples, but this will be coming in the future. If you are running a big-endian machine like the DEC Alpha, this should also be able to work with wave files that many wave players cannot, on a big endian host. AdaVox adjusts its endian handling, based upon the host characteristics and the expected endianness of the sound file. This is untested, but I am interested to hear any success stories, mailto:ve3wwg@home.com Download : http://members.home.net/ve3wwg/adavox-0.5.tar.gz FEATURES : ---------- *.wav : Wave File Formats - Plays standard PCM wave files - Plays Microsoft ADPCM wave files - Plays IMA/DVI ADPCM wave files [1] - Plays u-Law wave files - Plays a-Law wave files *.au : Sun file formats - Plays standard PCM wave files - Plays u-Law wave files - Plays a-Law wave files Other Features : - Plays several files in sequence [2] - Endian neutral ** - Ada 95 sound packages provided - Optional realtime scheduling [5] - For Linux and BSD (FreeBSD tested) - Netscape friendly [] see notes at the bottom Limitations : - Does not record sound files yet - Will not play from a pipe or socket [6] The project is also structured to permit the re-use of some of the WC.Streams.* Ada packages. This will allow developers to re-use some of the provided software modules. NOTES : ------- [1] The CODEC has been designed to work for 2, 3, 4, and 5 bit samples. The 2 and 5 bit formats are not standard formats, but are designed to be compatible with CoolEdit-2000. The provided CODEC works with all CoolEdit-2000 generated monophonic files. However, CoolEdit-2000 generated sterio files do not seem to play correctly, unless the 4-bit format is chosen. Even though CoolEdit-2000 plays its own files correctly, it is believed that CoolEdit-2000 incorrectly interleaves the samples for sterio files. [2] The files are played in the sequence given on the command line. [3] There are some older mainframe CPU types that use very odd endian formats that cannot be supported. However, it is not likely that this will be an issue with modern equipment. [4] The magic is localized in the source files wc-endian.ad[sb]. The rest of the application is totally unaware of the endian issue, which makes programming life much easier! [5] The adavox command will establish a default realtime priority of LO+1, where LO is the lowest realtime priority (on platforms that support it). This can be overrided on the command line with the -R option. For this to work, it must be installed setuid root (installed this way by default). Otherwise, the command runs at normal priorities. [6] Many people have asked me to fix wavplay to play files from a pipe or socket. I seriously looked at providing this functionality in adavox, but concluded that it is just too much trouble for the benefit gained. Some files like Microsoft's *.wav file are just too complex to deal with in a sequential fashion. Instead, the extra effort went into providing endian-neutral support. Look for server support to address streaming in the future. FUTURE DEVELOPMENT : -------------------- There was some MP3 support started, but this port is a large task. I have backed away from this at the present time, in favour of getting adavox out there for others to use. It is useful for a Netscape helper applicaton, replacing wavplay. It is hoped that adavox will eventually retire the wavplay project (currently wavplay 1.4). In the mean time, the next effort will be focused on record functionality. This will eventually include conversion of one wave file format to another (in addition to recording different formats). MP3 SUPPORT NEEDED : -------------------- If someone wants to submit MP3 support (in Ada), I will gladly integrate it into the existing code base. However, before submitting code, please keep the design goal firmly in mind. There is a minimum of module interaction within the current design. In a top level form, the interfaces are: [SRC-FORMAT] -> [CODEC] -> [DEST-FORMAT] The [SRC-FORMAT] represents one Ada stream (WC.Streams.Wave or WC.Streams.AU for sound files) as the source stream. The [DEST-FORMAT] is currently only supported by WC.Streams.DSP (the Digital Sound Processor). Eventually the WC.Streams.Wave and WC.Streams.AU packages will also serve as destinations, when the code is complete (allowing recording or file format conversions). Obviously, in order to record samples, the WC.Streams.DSP package will also have to be finished to act as a source. In the middle of all of this is the [CODEC]. It simply pumps wave samples from the source to the destination, performing decompression as required. This looks conceptually simple, but the implementation is very tricky in Ada without bringing in extra inter-module dependencies and APIs. MPEG support is nearly a nightmare, when you include ID3 Tag support. Maybe this is the challenge you have been waiting for? OGG-VORBIS SUPPORT : -------------------- It would also be nice to have Ada95 OGG-VORBIS support. Perhaps another ambitious person would like to have a go at it? -- Warren W. Gay VE3WWG http://members.home.net/ve3wwg ########################################################################## # Send submissions for comp.os.linux.announce to: cola@stump.algebra.com # # PLEASE remember a short description of the software and the LOCATION. # # This group is archived at http://stump.algebra.com/~cola/ # ##########################################################################