public inbox for linux-msdos@vger.kernel.org
 help / color / mirror / Atom feed
* Re: Sound report
@ 2003-01-25  0:23 Stas Sergeev
  2003-01-26 16:12 ` Jochen Reinwand
  0 siblings, 1 reply; 8+ messages in thread
From: Stas Sergeev @ 2003-01-25  0:23 UTC (permalink / raw)
  To: linux-msdos

Hello.

Jan Willem Stumpel wrote:
>>> Sound Blaster not responding on selected port.
>> Yep, the same problem.
> It cannot be a hardware problem only
It is a hardware problem, which is a
lack of a hardware mixing. /dev/dsp gets
opened for adlib and then fails for
digital sound. Try SB Live and you'll
see its working.
When software mixing is added to dosemu,
the problem is no more.


^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: Sound report
@ 2003-01-26 21:16 Stas Sergeev
  0 siblings, 0 replies; 8+ messages in thread
From: Stas Sergeev @ 2003-01-26 21:16 UTC (permalink / raw)
  To: linux-msdos

Hello.

Jochen Reinwand wrote:
>> When software mixing is added to dosemu,
>> the problem is no more. 
>  Wouldn't it be simplier to add support for arts as output module? This 
>  should solve the problem in a very compatible way for most users.
Yes, but there are problems with this:
1. This will not solve that problem for
OSS, which is bad: dosemu must work with
OSS too.
2. Not all the sound servers can change
the sampling rate on a fly, so you will
have to close/open session when you want
to change the rate. I don't know about
arts in particular, maybe it have that
ability, but then we are incompatible
with everything else.
So indeed the internal mixing code is
required, and the mixing itself is not
on the first place: what we really need
is a resampling, which will allow dosemu
to change the sampling rate at any time
without a problems.

> This way you can 
> for example listen to music via xmms with the arts output plugin while 
> using dosemu.
When the internal mixing is added,
writing the output plugin for any
sound server would be a piece of cake:
only output a single stream at a single
rate. Without a mixing code it would be
a headache. Just look at linux_sound.c
to see what a headache it is. linux_sound.c
can be reduced 3-4 times if we have a
mixing code inside, and also a sound.c
can be cleaned up a bit.

> btw: I've tried to use artsdsp to redirect sound to an virtual dsp device 
> simulated through arts. Seems like dosemu is very "unfriendly" to the 
> dsp device...
Yes, that's why it fails even with some
OSS drivers, and will certainly fail
with any redirectors like esddsp or
artsdsp.
I have already patched the Aureal Vortex
driver to be dosemu-compatible as I was
provided with that card for testings, but
I know some other drivers are also failing.
Have we the internal mixing code, this
hell would be ended. But also threading
is required to solve everything for good.
Then all the DSP redirectors will suddenly
start working. Currently I think they
don't like a non-blocking I/O.


^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: Sound report
@ 2003-01-22 20:56 Stas Sergeev
  2003-01-23  7:12 ` Paul Eggleton
  2003-01-24 19:54 ` Jan Willem Stumpel
  0 siblings, 2 replies; 8+ messages in thread
From: Stas Sergeev @ 2003-01-22 20:56 UTC (permalink / raw)
  To: linux-msdos

Hello.

Jan Willem Stumpel wrote:
> I applied Stas's opl1a.diff to 1.1.4.6 and I got sound out of SB
> fmorgan! The sound is quite horrible
There is a note on my page that the code
is in an alpha stage, so the problem reports
should not be sent. You've just violated
that:)

> (tweaking DIRECT_WRITE_FREQ
> in linux_sound.h helps a bit)
Strange that it makes any differences
at all in that case...

> but this is the first time I have
> heard any sound at all from this program in many years.
Unfortunately this will take many years
for that code to became a part of dosemu
(if at all).
There was a person who is willing to
volunteer for that work, in which case
this have some more chances to be ever
finished. I hope he will get to it soon:)

> Also, I can get
> either music or shooting sounds, but not both.
That means that your card or driver
doesn't support multiple sound channels
(hardware mixing). You have to try SB Live.

> Sound Blaster not responding on selected port.
Yep, the same problem.

> Using kernel 2.4.16 + alsa
I've heard somewhere that the Commercial OSS
drivers have a built-in mixing. If this is
true, use these and you'll get everything
you want (the quality of the sound will
still be miserable as the Adlib code is not
finished - requires threading).


^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: fmorgan
@ 2002-12-24 20:40 Stas Sergeev
  2003-01-22 20:27 ` Sound report Jan Willem Stumpel
  0 siblings, 1 reply; 8+ messages in thread
From: Stas Sergeev @ 2002-12-24 20:40 UTC (permalink / raw)
  To: Jan Willem Stumpel; +Cc: linux-msdos

Hello.

Jan Willem Stumpel wrote:
>>> Talking Parrot: works somewhat; speed is too low, pitch is too
>>> low, there are gaps in the sound
>> URL where I can get that prog?
> Don't know.. here is what I have.
OK, this program uses a direct DAC
writes rather than a DMA output.
The problem is that the output frequency
is unknown in that case and can vary.
So this cannot be fixed.
The only thing you can do is to adjust
the DIRECT_WRITE_FREQ constant in
linux_sound.h to satisfy the needs of
a particular program (but you will not
get a perfection anyway as the frequency
is not necessary a constant in that mode).
DMA-less output is an extremely absolete
method and fortunately is rarely used with
a DMA-capable cards like SB.


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

end of thread, other threads:[~2003-01-26 21:16 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-25  0:23 Sound report Stas Sergeev
2003-01-26 16:12 ` Jochen Reinwand
  -- strict thread matches above, loose matches on Subject: below --
2003-01-26 21:16 Stas Sergeev
2003-01-22 20:56 Stas Sergeev
2003-01-23  7:12 ` Paul Eggleton
2003-01-24 19:54 ` Jan Willem Stumpel
2003-01-24 20:31   ` Bart Oldeman
2002-12-24 20:40 fmorgan Stas Sergeev
2003-01-22 20:27 ` Sound report Jan Willem Stumpel

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