OSDev.org

The Place to Start for Operating System Developers
It is currently Tue Apr 16, 2024 1:04 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: Added article on PC Speaker
PostPosted: Tue Mar 25, 2008 7:42 am 
Offline
Member
Member
User avatar

Joined: Fri Mar 07, 2008 3:40 am
Posts: 179
Location: Arad, Romania
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. :)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 25, 2008 8:53 am 
Offline
Member
Member
User avatar

Joined: Fri Aug 03, 2007 6:03 am
Posts: 536
Location: Cambridge, UK
i added some sample code, although much more detailed code could be added (plus comments)

looks like a good start

_________________
~ Lukem95 [ Cake ]
Release: 0.08b
Image


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 25, 2008 9:06 am 
Offline
Member
Member
User avatar

Joined: Sun Oct 22, 2006 7:01 am
Posts: 2646
Location: Devon, UK
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


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 25, 2008 10:07 am 
Offline
Member
Member
User avatar

Joined: Fri Mar 07, 2008 3:40 am
Posts: 179
Location: Arad, Romania
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. :)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 26, 2008 1:42 am 
Offline
Member
Member

Joined: Wed Jul 25, 2007 8:45 am
Posts: 391
Location: London, UK
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 :)

_________________
http://alex-smith.me.uk


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 26, 2008 1:53 pm 
Offline
Member
Member
User avatar

Joined: Sun Sep 23, 2007 4:53 pm
Posts: 141
Location: Buenos Aires, Argentina
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

_________________
Visit https://gzalo.com : my web site with electronic circuits, articles, schematics, pcb, calculators, and other things related to electronics.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 26, 2008 1:53 pm 
Offline
Member
Member
User avatar

Joined: Thu Dec 21, 2006 7:42 pm
Posts: 1391
Location: Unknown. Momentum is pretty certain, however.
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

_________________
SeaOS: Adding VT-x, networking, and ARM support
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 26, 2008 2:56 pm 
Offline
Member
Member
User avatar

Joined: Fri Mar 07, 2008 3:40 am
Posts: 179
Location: Arad, Romania
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.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 26, 2008 3:28 pm 
Offline
Member
Member
User avatar

Joined: Thu Dec 21, 2006 7:42 pm
Posts: 1391
Location: Unknown. Momentum is pretty certain, however.
Oh well, its not really that important

-JL

_________________
SeaOS: Adding VT-x, networking, and ARM support
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 27, 2008 5:43 am 
Offline
Member
Member
User avatar

Joined: Fri Aug 03, 2007 6:03 am
Posts: 536
Location: Cambridge, UK
Yeah, sorry i shouldv mentioned, it doesn't always work under emulators for some reason, but under real hardware it works "tip-top" ;)

_________________
~ Lukem95 [ Cake ]
Release: 0.08b
Image


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 27, 2008 7:56 am 
Offline
Member
Member
User avatar

Joined: Wed Oct 18, 2006 3:45 am
Posts: 9301
Location: On the balcony, where I can actually keep 1½m distance
lukem95 wrote:
doesn't always work under emulators
Race conditions... :-({|=

_________________
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 27, 2008 7:57 am 
Offline
Member
Member
User avatar

Joined: Fri Aug 03, 2007 6:03 am
Posts: 536
Location: Cambridge, UK
sorry? i dont follow.

im guessing its a criticism though :(

_________________
~ Lukem95 [ Cake ]
Release: 0.08b
Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 17 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group