NOTES ON INSTALLATION
Once you unpack the tgz file, you should edit the Makefile, to set the destination directories, than do 'make install'. This should be done by user with write permissions for the destination directories, usualy root.
NOTES ABOUT SHARED OBJECT
'make' should produce a shared library 'mix.so' loadable from tclsh or wish.
mix.so features only one Tcl command, 'mix'. It has several subcomands though:
- mix volume [left right]
- mix treble [left right]
- mix bass [left right]
- mix synth [left right]
- mix pcm [left right]
- mix cd [left right]
- mix line [left right]
- mix mic [left right]
Each of those can have two parameters, each number between 0 and 100 inclusive, which set the mixer value for appropriate volume. If the parameters are absent, current values are returned.
- mix recsrc [line | mic | cd]
If parameters are present it sets the recording source, else returns the current value.
- mix device [devicename]
This subcommand returns or sets the name of mixer device file. Default is /dev/mixer
- mix mute [value]
Returns or sets mute. (I have no idea what it does, but it doesn't seem to actually mute anything on my SB16.)
- mix stereodevs
Returns stereodevs field.
- mix keepalive
Sets the library to such mode, that /dev/mixer is never closed, but opened as long as the program is running. This prevents unloading of module, so there is no strange effects when the the sound module is reloading.
- mix keepdead
Resets the library to mode, when /dev/mixer is opened when needed and than closed immediately.
