Page 1 of 1

Added article on PC Speaker

Posted: Tue Mar 25, 2008 7:42 am
by Stevo14
I made a short article on the PC Speaker. It is mostly theory right now but will have concrete examples in the future. Please critique. :)

Posted: Tue Mar 25, 2008 8:53 am
by lukem95
i added some sample code, although much more detailed code could be added (plus comments)

looks like a good start

Posted: Tue Mar 25, 2008 9:06 am
by AJ
Hi,

Just had a look - seems good to me.

I remember a game back in the early 90's which was an NBA basketball thingie with commentary via the PC speaker - I remember thinking it was very advanced at the time!

Cheers,
Adam

Posted: Tue Mar 25, 2008 10:07 am
by Stevo14
I plan on expanding the pulse-width modulation section once I have actually used the technique myself. No use writing about something that I don't really know about. :)

Posted: Wed Mar 26, 2008 1:42 am
by xyzzy
AJ wrote:I remember a game back in the early 90's which was an NBA basketball thingie with commentary via the PC speaker - I remember thinking it was very advanced at the time!
I remember a DOS game that supported both SB16 and the PC speaker. I preferred the PC speaker sounds to the ones on the normal speakers :roll:

Anyway, good article :)

Posted: Wed Mar 26, 2008 1:53 pm
by gzaloprgm
Well done Stevo14 and Lukem95, it is a very interesting article for making sound (?) in old pcs which don't even have sound card.

Cheers,
Gonzalo

Posted: Wed Mar 26, 2008 1:53 pm
by piranha
Nice article.
I figure I'll ask this here, as it's related:
Does qemu beep the speaker using that code? I tried it in my kernel and nothing happens in qemu.

-JL

Posted: Wed Mar 26, 2008 2:56 pm
by Stevo14
piranha wrote:Nice article.
I figure I'll ask this here, as it's related:
Does qemu beep the speaker using that code? I tried it in my kernel and nothing happens in qemu.

-JL
My PC beep doesn't work at all under Linux (some driver conflict involving my sound card and the pcspkr module) but I use almost identical code in my own kernel, which produces the proper beeps on real hardware and Bochs (for windows). Can't say for Qemu though because I only have it installed under Linux.

Posted: Wed Mar 26, 2008 3:28 pm
by piranha
Oh well, its not really that important

-JL

Posted: Thu Mar 27, 2008 5:43 am
by lukem95
Yeah, sorry i shouldv mentioned, it doesn't always work under emulators for some reason, but under real hardware it works "tip-top" ;)

Posted: Thu Mar 27, 2008 7:56 am
by Combuster
lukem95 wrote:doesn't always work under emulators
Race conditions... :-({|=

Posted: Thu Mar 27, 2008 7:57 am
by lukem95
sorry? i dont follow.

im guessing its a criticism though :(