From: Fabrice Bellard <fabrice@bellard.org>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] PC speaker emulation (fixed point)
Date: Tue, 24 Jan 2006 22:45:44 +0100 [thread overview]
Message-ID: <43D6A008.30606@bellard.org> (raw)
In-Reply-To: <43D67218.9000107@softax.com.pl>
Sebastian Kaliszewski wrote:
> Joachim Henke wrote:
>
>> Ok, these are really strong arguments. Thanks a lot for your
>> interesting statements! I'll do some testing on square waves and will
>> post an updated patch, as I am also not totally satisfied with the
>> current sound myself.
>
>
> One little suggestion...
>
> Real PC-speaker is rather poor source of sound, and I also noticed, that
> sound cards which took PC-speaker sound for themselves (some SB-clones
> did route PC-speaker sound into thier own output) liked to low-pass
> filter the resulting audio. So to make things as real as feasible, use
> your wave table to store something like square wave with rounded corners
> -- maybe sth like pow(sin(x), 0.2) (i.e. sinus rooted to 5th degree)
> will sound pleasant enough.
If you want to model the real PC speaker, the best to do is to generate
a square signal and to pass it thru a low pass filter with a cut off
frequency of a few kHz. Then you could even be able to play samples thru
the simulated PC speaker using the tricks used in old MSDOS programs,
provided QEMU implements a precise cycle counter (it will come someday !).
Fabrice.
next prev parent reply other threads:[~2006-01-24 23:03 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-09 19:01 [Qemu-devel] [patch] minimal PC speaker output Joachim Henke
2006-01-09 20:40 ` Fabrice Bellard
2006-01-10 9:11 ` he.jo
2006-01-18 23:05 ` [Qemu-devel] [PATCH] PC speaker emulation Joachim Henke
2006-01-18 23:32 ` [Qemu-devel] " Joachim Henke
2006-01-19 0:32 ` [Qemu-devel] " malc
2006-01-19 20:44 ` [Qemu-devel] [PATCH] PC speaker emulation (fixed) Joachim Henke
2006-01-19 23:29 ` malc
2006-01-20 9:42 ` Joachim Henke
2006-01-20 13:03 ` Johannes Schindelin
2006-01-20 12:03 ` Sebastian Kaliszewski
2006-01-23 21:10 ` [Qemu-devel] [PATCH] PC speaker emulation (fixed point) Joachim Henke
2006-01-24 12:35 ` Sebastian Kaliszewski
2006-01-24 15:50 ` Joachim Henke
2006-01-24 18:29 ` Sebastian Kaliszewski
2006-01-24 21:45 ` Fabrice Bellard [this message]
2006-01-25 0:38 ` Sebastian Kaliszewski
2006-01-25 21:54 ` [Qemu-devel] [PATCH] PC speaker emulation (square wave) Joachim Henke
2006-01-26 4:50 ` Jamie Lokier
2006-01-26 16:55 ` Sebastian Kaliszewski
2006-01-29 10:44 ` Joachim Henke
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=43D6A008.30606@bellard.org \
--to=fabrice@bellard.org \
--cc=qemu-devel@nongnu.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.