"Fossies" - the Fresh Open Source Software Archive

Member "dosemu-1.4.0/src/doc/README/sound" (23 Jun 2003, 2378 Bytes) of package /linux/misc/old/dosemu-1.4.0.tgz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 <sect1>
    2 <title>Sound</title>
    3 
    4 <para>
    5 The SB code is currently in a state of flux. Some changes to the code have been
    6 made which mean that I can separate the DSP handling from the rest of the SB
    7 code, making the main case statements simpler. In the meantime, Rutger
    8 Nijlunsing has provided a method for redirecting access to the MPU-401 chip
    9 into the main OS. 
   10 </para>
   11 
   12 <sect2>
   13 <title>Using the MPU-401 "Emulation"</title>
   14 
   15 <para>
   16 The Sound driver opens "/var/run/dosemu-midi" and
   17 writes the Raw MIDI data to this. A daemon is provided which can be can be used
   18 to seletc the instruments required for use on some soundcards. It is also
   19 possible to get various instruments by redirecting '/var/run/dosemu-midi' to
   20 the relevant part of the sound driver eg:
   21 </para>
   22 
   23 <para>
   24 
   25 <screen>
   26 % ln -s /dev/midi /var/run/dosemu-midi
   27 </screen>
   28 
   29 </para>
   30 
   31 <para>
   32 This will send all output straight to the default midi device and use whatever
   33 instruments happen to be loaded.
   34 </para>
   35 
   36 </sect2>
   37 
   38 <sect2>
   39 <title>The MIDI daemon</title>
   40 
   41 <para>
   42 
   43 <screen>
   44   make midid
   45 </screen>
   46 
   47 </para>
   48 
   49 <para>
   50 This compiles and installs the midi daemon. The daemon currently has support
   51 for the 'ultra' driver and partial support for the 'OSS' driver (as supplied
   52 with the kernel) and for no midi system. Support for the 'ultra' driver will
   53 be compiled in automatically if available on your system.
   54 </para>
   55 
   56 <para>
   57 Copy the executable './bin/midid' so that it is on your path, or somewhere you
   58 can run it easily.
   59 </para>
   60 
   61 <para>
   62 Before you run DOSEMU for the first time, do the following:
   63 
   64 <screen>
   65   mkdir -p ~/.dosemu/run           # if it doesen't exist
   66   rm -f ~/.dosemu/run/dosemu-midi
   67   mknod ~/.dosemu/run/dosemu-midi p
   68 </screen>
   69 
   70 </para>
   71 
   72 <para>
   73 Then you can use the midi daemon like this:
   74 
   75 <screen>
   76   ./midid &#60; ~/.dosemu/run/dosemu-midi &#38;; dosemu
   77 </screen>
   78 
   79 </para>
   80 
   81 <para>
   82 (Assuming that you put the midid executeable in the directory you run DOSEMU
   83 from.) 
   84 </para>
   85 
   86 </sect2>
   87 
   88 <sect2>
   89 <title>Disabling the Emulation at Runtime</title>
   90 
   91 <para>
   92 You can disable the SB emulation by changing the 'sound' variable in
   93 /etc/dosemu.conf to 'off'. There is currently no way to specify at runtime
   94 which SB model DOSEMU should emulate; the best you can do is set the T value
   95 of the BLASTER environment variable (see sound-usage.txt), but not all
   96 programs will take note of this.
   97 </para>
   98 
   99 </sect2>
  100 
  101 </sect1>
  102