1. Program list 1.1. mixer 1.2. mixmon 1.3. mixwrite 1.4. resample |
1.5. mixeridle 1.6. ecat 2. Requirements 3. Installation 4. Copying 5. Downloading |
Note that none of these programs (except ecat) talk directly with a soundcard. They only handle raw audio streams.
resample v1.17 - Copyright (C) 1992,2002 Bisqwit (http://iki.fi/bisqwit/) Portions copyright (C) 2001 ImageMagick Studio. This program is under GPL. streamixer-1.17.{rar,zip,tar.{gz,bz2}} are available at the homepage of the author. Usage: resample <inputspec> <outputspec> [<options> ...] Reads stdin, writes stdout. input- and outputspec: b=8-bit, m=mono, rxxx=xxx Hz, examples: "" = 16-bit 44100 Hz stereo m = 16-bit 44100 Hz mono b = 8-bit 44100 Hz stereo mb = 8-bit 44100 Hz mono mr22050 = 16-bit 22050 Hz mono br22050 = 8-bit 22050 Hz stereo etc. '-' is optional. Options: -V, --version Version information -b, --blur <num> blur: 0=normal, >0=blur (note: blurring requires cpu power.) -f, --filter <filter> Select filter of the following: none, linear (default), triangle, hermite, hanning, hamming, blackman, gaussian, quadratic, cubic, catrom, mitchell, lanczos, bessel, sinc -h, --help Help -s, --sharpen <num> sharpen: 0=normal, >0=sharper (note: blurring and sharpening are exclusive.)
... | lame -rxdh -b 128 - - | mpg123 -q -
Here's a nice experiment to lower music pitch:
$ spcplay -r60000 -uao- ff5-world2.spc |ecat File: ff5-world2.spc Song: Unknown Lands Game: Final Fantasy V Comments: http://members.xoom.com/oksam_ff Author: Nobuo Uematsu, Squaresoft Dumper: AtLaS Playtime: 0 Fadetime: 0 Emulator: Unknown (102) Rate 70 Volume 100 12345678And this plays two songs at the same time:
$ mixer & $ mixmon|ecat & $ mpg123 -s 01-Trust.mp3 |mixwrite & $ mpg123 -s 14-DesperateFeelings.mp3 |mixwrite &(total CPU load being around 25% with my 233 MHz laptop)
Hint: Sound card usually can't play arbitrary sampling rates. Use resample together with ecat to help.
$ mpg123 -r34500 -qvvs /mp3/OwaranaiNatsu.mp3 |ecat Using memory mapped IO for this stream. No supported rate found! $ mpg123 -qvvs /mp3/OwaranaiNatsu.mp3 |resample r44100 r34500 -f lanczos|ecat Using memory mapped IO for this stream. Audio: 1:1 conversion, rate: 44100, encoding: signed 16 bit, channels: 2 Frame# 2598 [ 7917], Time: 01:07.86 [03:26.81],This example upsampled 44.1 kHz stream a happy 28% and played it with 44.1 kHz sampling rate, still not damaging the sound hearably. Try "none" as the filter (that's what most programs do) and you really do hear the difference. Try "linear" as the filter (that's what most programs do when they are "interpolating") and it's still not as good as it is when more modern filters are being used.
$ make $ su # make installIf you do not want to install libargh (included in the archive), do not use "make install" and edit Makefile and enable the STATIC linking instead of DYNAMIC.
Note: If you want to look at earlier versions, have a look at wavegenerator. The earlier versions were together in a same archive.
Generated from
progdesc.php
(last updated: Thu, 23 May 2002 14:38:45 +0300)
with docmaker.php
(last updated: Wed, 15 May 2002 04:26:32 +0300)
at Thu, 23 May 2002 14:38:55 +0300