public inbox for linux-msdos@vger.kernel.org
 help / color / mirror / Atom feed
From: Dave Phillips <dlphilp@bright.net>
To: linux-msdos@vger.kernel.org
Cc: Justin Zygmont <jzygmont@solarflow.dyndns.org>,
	Eemeli Kantola <ekantola@welho.com>
Subject: Re: Is sound in dosemu a myth?
Date: Sat, 27 Dec 2003 11:02:10 -0500	[thread overview]
Message-ID: <3FEDAD02.1030505@bright.net> (raw)
In-Reply-To: <Pine.LNX.4.44.0312270334070.13165-100000@solarflow.dyndns.org>

Justin Zygmont wrote:

>On Sat, 27 Dec 2003, Eemeli Kantola wrote:
>
>  
>
>>The biggest problem I am yet to overcome is the MIDI stuff. This is 
>>actually not a dosemu problem, but how do you people get TiMidity synth 
>>working WITH SoundBlaster sound effects at the same time? This needs 
>>some mixing, of course, but I haven't studied ALSA enough yet to do 
>>that. Can this be somehow done with ALSA's dmix plugin, or do I need a 
>>separate sound server of some kind?
>>    
>>
I use DOSemu with TiMidity on an almost daily basis to run Voyetra's 
Sequencder Plus MIDI sequencer. I link ~/.dosemu/run/dosemu-midi to 
/dev/snd/midiC1D0, which is the ALSA virtual MIDI module (virmidi). I'm 
then able to route the MIDI output to any hardware or software 
synthesizer available via the ALSA MIDI patch bay. Most often I utilize 
TiMidity loaded with the Fluid soundfont (I like its piano) and simply 
attach the first virtual MIDI Out port (there are four by default) to 
TiMidity's first MIDI In port (it has two).

I run a small script called tim-synth to invoke TiMidity, it consists of 
only these lines :

        #!/bin/sh
        timidity -iA -B2,8 -c /home/dlphilp/timidity.cfg -Os -EFreverb=0 
-EFchorus=0

Of course I chmod'd the script to executable status so I can run it from 
my home directory with './tim-synth'. Notice that the reverb and chorus 
have been turned off. Btw, my ~/timidity.cfg file consists of only this 
line :

        soundfont /mnt/dosc/soundfiles/sfonts/FluidR3_20GM.sf2

For those of you who try this, be aware that you *must* make a 
connection between the ALSA driver and TiMidity, i.e., it won't happen 
by default. If you don't have a graphic patch bay handy (such as the 
ALSA MIDI Patch Bay or qjackctl) you can always use ALSA's aconnect 
utility. It's easy, just see 'man aconnect' for the details.

Unfortunately I'm not aware of the correct procedure to get emulated 
sound fx from DOSemu, but I'm willing to give it a shot. If someone can 
point me to a typical game or other appropriate application I'll be glad 
to run some tests here. Actually, I've never used DOSemu for any audio 
and I'm quite willing to make the attempt.

Might it be possible to route a game's fx to TiMidity's effects instead 
of performing them in emulation ? TiMidity's effects aren't all that 
great, and they chew up CPU cycles (which is why I normally turn them 
off), but maybe that's a shorter route to the goal ? I don't know, I'm 
just musing aloud, perhaps Stas can give us more insight.

Btw, using dmix might work if the problem is indeed one of mixing. If 
your soundcard doesn't support hardware mixing you'll probably end up 
using dmix (if it's the right solution).

Anyway, this is an interesting topic, and I'll try to devote some time 
to it over the next week. Also, many thanks again to the DOSemu 
developers, it's truly among my favorite Linux software.

Best regards,

Dave Phillips



  parent reply	other threads:[~2003-12-27 16:02 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-26 20:17 Is sound in dosemu a myth? JLB
2003-12-27  8:23 ` Eemeli Kantola
2003-12-27  8:36   ` Justin Zygmont
2003-12-27  9:11     ` Eemeli Kantola
2003-12-27 16:02     ` Dave Phillips [this message]
2004-01-08 13:22 ` no MIDI input with dosemu ? Dave Phillips
  -- strict thread matches above, loose matches on Subject: below --
2004-06-02  7:57 Is sound in dosemu a myth? JLB
2004-06-02  9:44 ` Clarence Dang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3FEDAD02.1030505@bright.net \
    --to=dlphilp@bright.net \
    --cc=ekantola@welho.com \
    --cc=jzygmont@solarflow.dyndns.org \
    --cc=linux-msdos@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox