12 ms·
What’s up with the Beep driver in Windows 7? (2010)
- jordache 10y agoAnyone else remember that driver that allowed the internal speaker to output wave sound? I remember days of playing SimCity 2000 and Doom without a sound card, so it was just beeps and buzzes. Then one day I discovered that driver and started to enjoy small sounding wave sound
- kubiiii 10y agoSomewhat (maybe) related : another world from Éric Chahi used to support the pc speaker as sound output, and had digitized sound effects and voices (very low quality but still incredible).
- rzzzt 10y agoThe PC port of Pinball Fantasies could also play MOD music through the internal speaker fairly nicely. My personal favorite is still the "Magic Mushroom" disk, which played the audio part of an Air-O-Zone air freshener commercial, all in 360K. :)
- 45h34jh53k4j 10y agohey. your story intrigued me, so i found it and hosted it somewhere more free. Its quite rare these days. It doesn't work in Dosbox on OSX unfortunately so I couldn't see it. This is: echo Magic Mushroom Echo -------------- echo This Program was made by the R&D Team at echo the Cleveland Corp. of Australia at Hendra echo To turn 'Magic Mushroom off press any key echo Bye,Bye,Bye virus total scan (its clean): https://www.virustotal.com/en/file/34b703cace0a2464899c67fa1ae8eb207613914676af2e7319e36c029039b823/analysis/1472767538/ https://www.virustotal.com/en/file/34b703cace0a2464899c67fa1... Because its so small (206K), it fits in a pastebin: curl http://pastebin.com/raw/D95mhEvE http://pastebin.com/raw/D95mhEvE | base64 -D > mushroom.zip
- hexwab 10y agoIt may not work in dosbox, but mushroom.ovl is just raw 8-bit[1] linear audio sampled at 8kHz so you can load it up in your raw-audio-capable app of choice. On linux try "aplay mushroom.ovl", for example. [1] Actually only 6 bits per byte are used; presumably this was done to improve decoding speed or something.
- 45h34jh53k4j 10y agoCool! Read as: signed 8-bit PCM at 8000 Hz with Audacity. I had to normalize it to remove a DC bias and reduce the volume. curl http://pastebin.com/raw/uunJFtcK http://pastebin.com/raw/uunJFtcK | base64 -D > mushroom.mp3
- rzzzt 10y agoMost of these applications employ this one weird trick to get digitized sound out of the speaker: https://en.wikipedia.org/wiki/PC_speaker#Pulse-width_modulation https://en.wikipedia.org/wiki/PC_speaker#Pulse-width_modulat... The result is 6 bits of resolution, along with a high pitched squeak during playback, depending on the output circuitry and speaker characteristics (it's less noticeable when a low-pass filter is added).
- voltagex_ 10y agoWhere'd you find this? I'm trying to find out what happened to "Cleveland Corp of Australia".
- corysama 10y agohttps://archive.org/details/msdos_Spelljammer_-_Pirates_of_Realmspace_1992 https://archive.org/details/msdos_Spelljammer_-_Pirates_of_R... had full music and sound effects through PC speaker. Very low quality, yes. But, it was amazingly close to the merely low quality audio of most PC games of the time even when you did have a sound card.
- fsiefken 10y agoYes, I remember, speaker.drv. there was also one for win 3.11. I have fond memories of squeezing Windows on a bootable 2M3.0 floppy with UC2 compression and ramdisk to use it on the dos machines in university
- morsch 10y agoSearching for that filename returns some very nostalgic websites. Here's one[0], which refers to speaker.drv as a way to play audio in NCSA Mosaic. It links to SPEAK.EXE on ftp.microsoft.com; incredibly, the URL[1] still works. The page must be about 20 years old. [0] https://boutell.com/faq/oldfaq/winsound.htm https://boutell.com/faq/oldfaq/winsound.htm [1] ftp://ftp.microsoft.com/Softlib/MSLFILES/SPEAK.EXE
- Yhippa 10y agoNot exactly that but a similar story for you. I was a huge dork in high school and figured out the sound API on my HP-48G which was just really a way to play a sound from the internal speaker at a frequency and duration. I programmed the first parts of Holst's Jupiter using my calculator and a friend's calculator. Man that was real fun to do. Created an API on top of that to simplify it to play notes at a certain length. That calculator was amazing. Real nice programming environment there for a high school kid that didn't have programming everywhere like we do today.
- qwertyuiop924 10y agoI did something similar with an Arduino. I managed to get an okay Star Wars out of it. As for calculators, my school unfortunately standardized in TI: You guys had RPL, we have TI-Basic, which is worse than actual BASIC. And our calculators cost more! (Second-hand, anyways, because let's face it, nobody buys their calculators new)
- godzillabrennus 10y agoI like to think my TI-83+ from 15 years ago is still being used by some kid who bought it off some kid who bought it off some kid who's the guy that bought it off me when I finished college.
- int_19h 10y agoWhat boggles the mind is that they still sell those calculators. For like $60 apiece.
- DanBC 10y agoI remember building a resistor ladder DA converter and connecting it to the parallel port. Software like No$ gameboy emulator used it, and it was easy enough to write to the parallel port directly.
- wila 10y agoI still have the connector with the resistor ladder laying in a drawer down here. A parallel port plug with a audio connector coming out of the back. :) Good times.
- simcop2387 10y agohttps://en.wikipedia.org/wiki/Covox_Speech_Thing https://en.wikipedia.org/wiki/Covox_Speech_Thing Was a fairly common thing back in the day for software to support it, also went by the name Disney Sound System.
- int_19h 10y agoThere were some DOS games that had that baked in. Here's one example from 1987 (!), that used CGA graphics. They couldn't really spare the processing power during the game itself, so they kept it for the intro and the main menu. https://www.youtube.com/watch?v=9yL-u7lsMxk https://www.youtube.com/watch?v=9yL-u7lsMxk
- jordache 10y agoWow that must have been magic to anyone not aware such capabilitily existed
- temac 10y agoThe first time I launched a game that played less beeppy sounds than usual on my PC without a soundcard, actually almost understandable words, I nearly had an heart attack because I knew very well this was impossible. I needed a few minutes to recover.
- int_19h 10y agoBack when I saw it for the first time on real hardware, my jaw did drop.
- stuaxo 10y agoThis was great, it's surprising it wasn't mentioned in the article or comments. A shame the isn't a speaker wddm.
- stuaxo 10y agoThis was great, it's surprising it wasn't mentioned in the article or comments. A shame the isn't a speaker wddm.
- makomk 10y agoI think Linux still has a driver that allows the internal speaker to emulate a sound card badly even now.
- axelfontaine 10y agoThis 8254 mention made me curious. Does anyone know which other parts of the original PC hardware are still present in modern machines for compatibility? (Real mode in CPUs, A20, ...)
- dogma1138 10y agoAlmost nothing, there are some components that are emulated in software/firmware.
- wyldfire 10y agoNot even chipset pins devoted to AT keyboards?
- AstralStorm 10y agoThere are mainboards without PS/2 ports. The beeper using ancient interface is also long gone. Nowadays, the HDA chip handles it most of the time. There is no reason except ancient compatibility to call into the beeper via the ancient interface.
- aaroninsf 10y ago_Challenge accepted_ j/k... but I hope a Hero Will Rise
- dogma1138 10y agoGood luck using an AT keyboard today :P there are some USB converters. Some motherboards that offer PS/2 connectivity (rare, mostly "gaming motherboards" for n-Key rollover fanatics) but I don't even know if that chipset would do AT.
- anexprogrammer 10y agoI wish it were a lot less rare as few ps/2-usb converters are very good, especially with a Model M for some reason. I don't want to retire it, it's still in great condition, unlike the dozen or more other keyboards I've had that have died after a year or two.
- tener 10y agoFrom 2010.
- pdw 10y agoVaguely related, can anybody explain why the Linux pcspkr driver lives under drivers/input?
- honkhonkpants 10y agoBecause the speaker output is on an integrated circuit with the keyboard controller in many machines.
- ChuckMcM 10y agoThat is a pretty awesome tour de force. Somewhere deep inside your computer is an (emulated) PC/AT trying to get out :-). An interesting lesson about the use of 'beep' for the assistive technologies. I see those sorts of things in architectures which have grown up over time and I wonder whether or not you could know at the time "Hey we're using this weird thing, please deprecated at your earliest convenience" or if it was more "there I fixed it." Compatibility at the GPIO level was so ingrained in the PC community early on (there was even a code name for it, "Is it FlightSim compatible?" which referred to Microsoft Flightsim, a game that tested the compatibility limits of clones.) So as a tenet to the community all sorts of hacks could be committed in its name. Something like "Well we can depend on this, if they changed it then it would break compatibility and they can't do that." Also an interesting take on how much Microsoft has had to unwind in a compatible way over the years. Finally, the Linux console used to beep the speaker this way (I have no idea if it still does) and sometimes when I lay there sleeping I would hear my server softly feeping, yes feeping on its console bell. Sadly it wouldn't stop until I got up and logged in and figured out what was complaining.
- mmastrac 10y ago"feeping"? Feeble beeping? :)
- teddyh 10y agoIt’s a quote from the HACTRN, the explanatory notes of which explains: “the TTY's bell […] on the CRT in the poem above is a particularly obnoxious flavor of "beep", […]” http://www.csd.uwo.ca/~magi/personal/humour/Computer_Audience/The%20Great%20Quux%20Poem%20Collection.html http://www.csd.uwo.ca/~magi/personal/humour/Computer_Audienc...
- qwertyuiop924 10y ago"So," say I, "what is the madness, The state of awful system sadness, That would cause Linux such distress?" After all, the days of yore, from which this reference came before, those days are long since gone. Yes, the PDP is long since gone, and though it legacy carries on, the once-great HACTRN is no more. So once again this begs the question, which I ask through my HN session, what did feep upon your console's bell? --qwertyuiop924 (with apologies to The Great Quux (with apologies to Edgar Allan Poe)) ...I have nothing to apologize for.
- wyager 10y ago>It turns out that they couldn’t. And the answer to why they couldn’t came from a totally unexpected place. The American’s with Disabilities Act. I wonder how much this act has cost society. Just in this particular instance, let's say keeping this chip on PC motherboards adds 5¢ to the cost of each motherboard. Multiply by a billion PCs sold in the last 10 years (The actual number is higher, but maybe some don't have the chip. Macs and stuff.). Did having the PC beep provide $50M worth of utility to society over the last ten years? I doubt it. $50M of research into e.g. sight restoration technology would also likely have been more useful to blind people in general.
- temac 10y agoNowadays that's not an actual chip anymore, but part of another (probably the superio that handles tons of legacy pc stuff in one chip). However it nevertheless needs dedicated hardware, in the form on a trace or a wire going to a more proper sound subsystem (or even a dedicated buzzer)
- huskyr 10y agoYou're making lots of wrong assumptions and insulting remarks here. This act is not just about 'blind people', but people with all kinds of disabilities. If you read the article, you'll see that Beep() API is used for assistive technologies, which can be anything, from devices for motor impairment to deafness. Not everyone who is disabled is blind. If this API would have suddenly disappeared the 'cost to society' would have been much higher than the assumed figure of $50M that you're stating here. Imagine if you'd wake up one day and your mouse doesn't work anymore because it's no longer compatible. That's how important assistive technologies can be to disabled people. Furthermore, the suggestion that blindness can be 'fixed' by donating $50M to 'sight restoration technology' (whatever that is) grossly underestimates the complexities and variety of sight related disabilities. Vision is not a switch you can turn on again with an operation.
- wyager 10y agoI'm well aware of the ADA and its effects. There was recently a good report about legal trolls suing small businesses for minor parking space violations under the ADA, so I took the chance to refresh my memory on the act. >Imagine if you'd wake up one day and your mouse doesn't work anymore because it's no longer compatible. Huh? This analogy doesn't make any sense. Things aren't compatible because of the ADA; they're compatible thanks to standards bodies and market pressure. > That's how important assistive technologies can be to disabled people. Only a small fraction of people need the beeper, and from what I understand based on a presentation from a deaf coworker a few years back, the best assistive technologies are those that emerged naturally, not from archaic ADA-imposed requirements. She cited OS X's accessibility features. >Vision is not a switch you can turn on again with an operation. I'm aware. I never said $50M in research would cure blindness; I said it would do more for blind people than a little beeper in the PC chassis. $50M is also quite a conservative estimate.
- digi_owl 10y agoSimpler times (after a fashion).
- yyhhsj0521 10y agoAnother problem of using hardware beeper is that when you are using a terminal, you may not hear the beep from the motherboard (which may be located in the next room or even miles away)
- david-given 10y ago...way back when, a lot of sound cards had a connector on the top which could be hooked up to your CD drive, so that the drive could play Red Book audio which would be sent (as analogue) to your speakers. Clever me noticed that the pinout of the CD drive matched the pinout of the PC's internal speaker. Aha, I thought; I can connect it up so that the internal speaker noises come out through my sound system. Turns out that full-voltage square-wave 5V, amplified and pushed through a set of decent speakers, is... slightly loud. (I was actually lucky not to damage the speakers. Or have a heart attack.)
- networked 10y agoThe big problem with Beep(), or so did thirteen-year-old me think, was that unless you were on Windows NT it ignored the arguments, always producing a sound with the same frequency and duration. It meant that, despite it seeming like a straightforward replacement, you couldn't really use Beep() to port MS-DOS code that relied on Borland Pascal's CRT unit [1] to produce sound effects with the PC speaker. [1] http://putka.upm.si/langref/turboPascal/0698.html http://putka.upm.si/langref/turboPascal/0698.html