qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Sebastian Kaliszewski <Sebastian.Kaliszewski@softax.com.pl>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] PC speaker emulation (fixed point)
Date: Tue, 24 Jan 2006 13:35:32 +0100	[thread overview]
Message-ID: <43D61F14.8080209@softax.com.pl> (raw)
In-Reply-To: <EC593D76-359B-4211-B802-D2704CF1C751@gmx.de>

Joachim Henke wrote:
> I still prefer using a sine wave, it sounds more smooth and won't  hurt 
> our ears (and speakers) too much.

Well, it sounds rather dull, and even worse, on non hi-fi computer speakers 
(which is 90% of PC users use) low frequencies (<100Hz) are simply 
unhearable (since equipment is very poor at transmitting those frequencies).
While harmonics rich square wave will be hearable, due to harmonics being 
hearable.

> I don't think that people want  to 
> play square waves, when they have their PC connected to their hifi  
> system 

Many people connected their Apples IIs, Commodores 64s & Ataris 800s to 
their Hi-Fi equipment, and those didn't break their ears nor equipment.


> (c: The main purpose of the PC speaker is to generate tones  and 
> many programmers used it to play melodies. Why shouldn't we take  this 
> chance to make it sound as good as we can manage it?

Exactly. No real musical instrument generates sine wawes. Moreover as 
various psyhoacustics reaserch shows, using pure sine waes changes our 
perception of chords & harmony. Then 95% of home sound equipment degrages 
and attenuates low frequencies below 40-50Hz.

If Qemu is for emulation it should emulate things as close to reality as 
feasible. Why do more work & intentionally break the close emulation, while 
it's even easier to acheive?


[snip]
> However, this approach should still be sufficient for our purpose.  Most 
> programs don't use too low frequencies, and if they do, people  probably 
> won't notice.

Many PC games used low frequencies to emit varius buzzes and stuff (like 
engine noise). With sine wave those will be completely broken.


rgds
-- 
Sebastian Kaliszewski

  reply	other threads:[~2006-01-24 12:27 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 [this message]
2006-01-24 15:50                 ` Joachim Henke
2006-01-24 18:29                   ` Sebastian Kaliszewski
2006-01-24 21:45                     ` Fabrice Bellard
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=43D61F14.8080209@softax.com.pl \
    --to=sebastian.kaliszewski@softax.com.pl \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).