public inbox for linux-msdos@vger.kernel.org
 help / color / mirror / Atom feed
* Re: Sound support (2), using hardware directly
@ 2005-07-19  4:18 Stas Sergeev
  2005-07-19 11:11 ` Julius Schwartzenberg
  0 siblings, 1 reply; 17+ messages in thread
From: Stas Sergeev @ 2005-07-19  4:18 UTC (permalink / raw)
  To: linux-msdos

Hello.

Julius Schwartzenberg wrote:
> Is anyone else using a similar setup?
No.

> cards and it's wavetable for MIDI,
> but is the way I described this the 
> way to do it in this case?
In principle - not. MIDI can be achieved
by the more legitimate means.
sound-usage.txt describes many ways of
setting up midi under dosemu. That
includes the software synth and the
wavetable access ways, so you really
should have a look.

> be near perfect, but I'm really
> looking forward to have OPL3 support 
> within Dosemu :)
I think it will soon be there. At
least a lot of work is being done
in the sound area right now.


^ permalink raw reply	[flat|nested] 17+ messages in thread
* Re: Sound support (2), using hardware directly
@ 2005-07-23 19:18 Stas Sergeev
  2005-07-24 15:13 ` Julius Schwartzenberg
  0 siblings, 1 reply; 17+ messages in thread
From: Stas Sergeev @ 2005-07-23 19:18 UTC (permalink / raw)
  To: linux-msdos

Hello.

Julius Schwartzenberg wrote:
> Do you think it would be possible to allow complete direct access to 
> the Sound Blaster card in Dosemu, so that I could set the mixer from 
> Dosemu?
Yes, this must be possible.
You won't hear any sound in
most cases, but the mixer will
work, and so will the OPL3. Just
don't forget to tell your DOS
programs that it is the Adlib,
not SB, or the detection will fail.
Actually, even the sound will
work in some very old games like
"Another World", which do not use
the DMA.


^ permalink raw reply	[flat|nested] 17+ messages in thread
* Re: Sound support (2), using hardware directly
@ 2005-07-23 12:30 Stas Sergeev
  0 siblings, 0 replies; 17+ messages in thread
From: Stas Sergeev @ 2005-07-23 12:30 UTC (permalink / raw)
  To: linux-msdos

Hello.

John R. Sowden wrote:
> Since this thread has worked it way to "Dosemu talking directly to hardware", 
> I am interested in using my linux/dosemu box to connect to a local area 
> network that runs DOS only (we don't do windows).
This have nothing to do with
the direct hardware access.
Please refer to the dosemu
documentation to find out how
to set up the network access
under dosemu.


^ permalink raw reply	[flat|nested] 17+ messages in thread
* Re: Sound support (2), using hardware directly
@ 2005-07-23 12:27 Stas Sergeev
  2005-07-23 18:16 ` Julius Schwartzenberg
  0 siblings, 1 reply; 17+ messages in thread
From: Stas Sergeev @ 2005-07-23 12:27 UTC (permalink / raw)
  To: linux-msdos

Hello.

Julius Schwartzenberg wrote:
> Also not loading the OPL3 driver doesn't seem to be possible, since the 
> plain sounddriver seems to have a dependency on the OPL3 driver.
But as a test, you can just not
load the sound drivers at all,
disable the SB emulation in dosemu,
open the Adlib ports, and see if
that works.


^ permalink raw reply	[flat|nested] 17+ messages in thread
* Re: Sound support (2), using hardware directly
@ 2005-07-23  9:45 Stas Sergeev
  2005-07-23 11:16 ` Julius Schwartzenberg
  0 siblings, 1 reply; 17+ messages in thread
From: Stas Sergeev @ 2005-07-23  9:45 UTC (permalink / raw)
  To: linux-msdos

Hello.

Julius Schwartzenberg wrote:
> I have ran it succesfully on my AMD Athlon @ 1GHz, and I know there are 
> softsynths that need much less, although not for Linux.
As I said, you can tune timidity++
to work even on 386, just disable
some effects processing.
There are also the alternative
synthesizers, like fluidsynth,
as someone pointed out to me, but
I am not sure if they work as an
alsa sequencer backend, or have
the server interface for midid.

> running a softsynth inside Dosemu...
That is possible for FM synth, but
you really don't want to distribute
the instrument patchsets with dosemu.

> Well, the problem seemed to be at the time that the (OPL3) driver from 
> ALSA was conflicting with the OPL3 being accessed directly.
In this case simply not loading the
OPL3 driver from ALSA would help,
but IIRC it doesn't.


^ permalink raw reply	[flat|nested] 17+ messages in thread
* Re: Sound support (2), using hardware directly
@ 2005-07-22 17:56 Stas Sergeev
  2005-07-22 18:20 ` Julius Schwartzenberg
  0 siblings, 1 reply; 17+ messages in thread
From: Stas Sergeev @ 2005-07-22 17:56 UTC (permalink / raw)
  To: linux-msdos

Hello.

Julius Schwartzenberg wrote:
> to have both at the same time. My laptop does have hardware mixing, but 
> it isn't very fast (Pentium III 500MHz, 128MB RAM), so I don't know how 
> fast a softsynth will work.
Softsynth involves timidity++,
which requires ~P4 by default,
but can be tuned even for 386
I think.

> Yes I noticed your pc-speaker driver in ALSA :)
Yes, but the kernel interface
for it is still not in the kernel,
thats the problem.

> Is the goal really to get full sound and music from Dosemu through a 
> plain pc-speaker?
The goal is to make it compatible
with the modern sound systems like
alsa, and with the cheap soundcards
without the HW mixing and midi. The
pc-speaker, being the one of such a
cards, will work just in case, but
for me it is probably more important
than any other cards out there:)

> I understand the current OPL3 modules aren't suitable to be used in 
> this case?
Of course.

> I personally indeed do not really care about needing root access, 
> so a working solution using $_ports would work for me. Would you 
> recommend sending an e-mail to the ALSA mailing list about this?
About that the $_ports doesn't work
very well for the native OPL3? I
don't think they'll help here.


^ permalink raw reply	[flat|nested] 17+ messages in thread
* Re: Sound support (2), using hardware directly
@ 2005-07-22  4:03 Stas Sergeev
  2005-07-22 13:11 ` Julius Schwartzenberg
  0 siblings, 1 reply; 17+ messages in thread
From: Stas Sergeev @ 2005-07-22  4:03 UTC (permalink / raw)
  To: linux-msdos

Hello.

Julius Schwartzenberg wrote:
> The current system seems to work pretty well for me
It doesn't even work with ALSA.
Also, your AWE probably have the
hardware mixing, but for those
with the cheap sound cards, it
is not possible to get the midi
together with sound (provided they
do not have the wave-table too).
I myself can't get this to work on
my pc-speaker, and that really annoyed
me enough to start writing the new
code. Now as for the DOS programs:
FT2 doesn't work, sound in DOOM
stutters, sound in Aladdin have a
big latencies, etc. It is not very
good.

> While OPL3 emulation would be really nice, wouldn't it be better to 
> implement support for real OPL3 chips and emulate and OPL3 at another 
> level in the system if one isn't availlable?
Problematic. Access to the real OPL3
will require root or the kernel module.
And then you can just use $_ports to
get this working that way, no need to
write anything (yes, I know it doesn't
work for you right now, but thats a
different problem). So the real value
is to have the good OPL3 emulation.

> Then also other
> applications such as FreeSCI and
> ScummVM would be able to make use of
> it.
They all use the MAME OPL3 emulation
engine. I don't think they'll want
something else. And really, having
the OPL3 emulation system-wide doesn't
sound sane to me - this is too specific
to the old-PC emulators.

> About the new system. If the new code isn't comparable to the current 
> code yet, maybe release 1.4 of Dosemu should still contain the old 
> code?
Noone knows when 1.4 will be released.

> I'm really looking forward to the new stuff.
You will get it and the sound code
is not even the main part.


^ permalink raw reply	[flat|nested] 17+ messages in thread
* Re: Sound support (2), using hardware directly
@ 2005-07-19 12:54 Stas Sergeev
  2005-07-21 20:17 ` Julius Schwartzenberg
  0 siblings, 1 reply; 17+ messages in thread
From: Stas Sergeev @ 2005-07-19 12:54 UTC (permalink / raw)
  To: linux-msdos

Hello.

Julius Schwartzenberg wrote:
> Yes, I am aware of the MIDI support in Dosemu, but I thought it was 
> only for General Midi compatibility.
No. On the software synth side, midid
have the -m option which will give you
some basic mt32 support.
As for the directly passing the midi
stream to the wavetable - this is also
possible and described, and will allow
you to use your AWE synth fully, provided
it all goes via the mpu-401 in a
pass-through mode (almost always this is
the case).
So you can try and see if there are any
differences with what you now have - there
shouldn't be, but you won't need root,
which is very important in some cases.

> Sounds great! I'll watch the Dosemu
> development and try things out when 
> they get released :)
Well, the primary goal is to design the
very simple but robust sound subsystem
from zero, so that it won't depend on
OSS, but can work also with ALSA and
anything, and so that it can work with
many more DOS progs than the current one
does. But the OPL3, again, is not in the
list of the primary targets:)
Of course porting the MAME OPL3 emulator
to the planned sound system must be easy,
but we'll see where this all will end up.
It will probably take some time before
something can be released though - the
main problem is that the current code
also happened to work somehow, and the
replacement is possible only when the new
code matches the current one in the
functionality, which can take long enough.


^ permalink raw reply	[flat|nested] 17+ messages in thread
* Sound support (2), using hardware directly
@ 2005-07-18 19:25 Julius Schwartzenberg
  0 siblings, 0 replies; 17+ messages in thread
From: Julius Schwartzenberg @ 2005-07-18 19:25 UTC (permalink / raw)
  To: linux-msdos

Hi,

At some point there was a thread in which I was looking into using the 
OPL3 in my laptop with Dosemu. This only worked somewhat, the sound 
could only be partially be heard.

I've now set up a new Dosemu installation on another system for testing. 
It contains a Sound Blaster AWE64. I've currently installed Dosemu CVS 
from 17 July 2005.

With the following ports setting:
$_ports = "device /dev/snd/seq fast range 0x388 0x38b"
I get the same result as I got on my laptop with the OPL3 sound only 
partially working.

I thought it would also be an idea to look into using the wavetable 
stuff of the card directly from Dosemu. It seems the following port 
settings achieve this:
$_ports = $_ports, " device /dev/snd/midiC0D0 fast range 0x330 0x331"
$_ports = $_ports, " device /dev/null fast range 0x620 0x623"
$_ports = $_ports, " device /dev/snd/midiC0D1 fast range 0xa20 0xa23"
$_ports = $_ports, " device /dev/snd/midiC0D2 fast range 0xe20 0xe23"

This allows me to have pretty good music in Duke Nukem 3D :)
I haven't tried it from pure Dos yet, but it sound pretty good already. 
Also it seems I need to load a soundbank first before any MIDI plays at 
all and I haven't got the original ones from Creative, so I'm using one 
I downloaded somewhere.
Is anyone else using a similar setup? I don't know much about the AWE 
cards and it's wavetable for MIDI, but is the way I described this the 
way to do it in this case?

I'm still hoping to get OPL3 to work too though. Since the problem 
occurs on two pretty different systems, it isn't a problem specific to 
my laptop. Both systems probably use the same driver for OPL in ALSA though.
I thought that with the Sound Blaster, it might be easier to test it 
without the Linux driver, since it might be easier to get the Dos driver 
to work inside Dosemu. Could anyone comment on the possibility to use a 
Sound Blaster card completely from within Dosemu?

It would be really nice to have good sound support in Dosemu. The combo 
I have with the Dosemu Sound Blaster emulation and the AWE midi seems to 
be near perfect, but I'm really looking forward to have OPL3 support 
within Dosemu :)

Thanks in advance,
Julius

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2005-07-24 15:13 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-19  4:18 Sound support (2), using hardware directly Stas Sergeev
2005-07-19 11:11 ` Julius Schwartzenberg
  -- strict thread matches above, loose matches on Subject: below --
2005-07-23 19:18 Stas Sergeev
2005-07-24 15:13 ` Julius Schwartzenberg
2005-07-23 12:30 Stas Sergeev
2005-07-23 12:27 Stas Sergeev
2005-07-23 18:16 ` Julius Schwartzenberg
2005-07-23  9:45 Stas Sergeev
2005-07-23 11:16 ` Julius Schwartzenberg
2005-07-23 12:19   ` John R. Sowden
2005-07-22 17:56 Stas Sergeev
2005-07-22 18:20 ` Julius Schwartzenberg
2005-07-22  4:03 Stas Sergeev
2005-07-22 13:11 ` Julius Schwartzenberg
2005-07-19 12:54 Stas Sergeev
2005-07-21 20:17 ` Julius Schwartzenberg
2005-07-18 19:25 Julius Schwartzenberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox