[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 638
  • Last Modified:

No PC Speaker.. can I emulate it?

Hi, I don't have a PC speaker, but I have normal speakers.

I made a game in assembly that uses the PC speaker.  Is there a way for me to hear the PC Speaker without actually having one?  Can I reroute the PC speaker signal to my soundcard or something?

Thanks
-Sam
0
samsonite1023
Asked:
samsonite1023
  • 4
  • 3
  • 2
  • +1
1 Solution
 
InteraXCommented:
Some soundcards have a PC speaker in port.
You would need to connect the PC speaker port on the motherboard to the soundcard in port to enable this to work. Just beware of the volumes!!!
;-)
0
 
HippyWarlockCommented:
It's a bit odd not to have an internal speaker?

Has someone just pulled the wires out to stop it beeping annoyingly?

If you've written the game in Assembly then (and I may be wrong) I assume you're running 98 or similiar. it's just that XP gets all uppity at low level calls n' stuff. So the soundcard may not then be an option.

Get your mobo manual, or download one from 'tinternet, and, if you feel capable, reconnect the internal speaker.

All BIOS's have what are called BIOS Beep codes, gives us an idea of what's happening on during [P.O.S.T] P.ower O.n S.elf T.est so I'd be V suprised if it never had a speaker at all.

Maybe the speakers just died, unlikely but if it has, fit an equal ohmage one as replacement, and Voltage o' course
0
 
CallandorCommented:
Your pc speaker voltage levels are on the order of 5v, and the line-in level of your sound card are on the order of 500millivolts, so these are inappropriately matched.  You can drive external speakers directly with the pc speaker output.
0
Sign your company up to try the MB 660 headset now

Take control and stay focused in noisy open office environments with the MB 660. By reducing background noise, you can revitalize your office and improve concentration.

 
InteraXCommented:
Certain card have a specific input connector for a PC speaker. These are labelled as PC speaker and NOT Line level inputs. I haven't tested these, but would expect them to be designed to support the majority of PC motherboards headers and would work without drivers being loaded as that would defeat the object of having them there. I have only seen them on the more recent soundcards, ie. last 3-4 years.
0
 
HippyWarlockCommented:
  FITTING A SPEAKER TO A SOUNDCARD may FRY THE S/CARD

 The 5V speaker (assuming he takes the system one out, which is a bit bizarre) will make a noise, just not very loud.

 The 5V is it's nominal Op Voltage.

 The problem would arise when the coil tries to draw too much current from a rather expensive soundcard.

 But if you guys are sure there are Speaker Outputs then I stand corrected.



   CAREFULL

 However I would still check the Ohmage and Voltage against any mentioned in the soundcards manual to prevent overloading your card.


   AMPLIFIED (PC) SPEAKERS or an amp and spkrs <welcome to hi-fi world>

 Much safer bet in my book, as far as the PC is concerned.



   B U T   !!!!!!

Why not use the internal spkr that I'm at a loss to figure out why you haven't got one.



   BEAR IN MIND XP THINKS IT OWNS ALL AREAS OF YOUR HARDWARE

XP really hates low level stuff trying to probe about, which is exactly what the Assembly code (unless a lorra time was spent on it) will have to do to access the soundcard).... b u t . . . . you might not have XP or the calls may be ignored
    :-( XP Pinched my 13h handle :-(



   WHY NOT

Tell me what yer mobo is and I'll do my best to get you a manual for it, then just put back the spkr that should have being there to start with
0
 
samsonite1023Author Commented:
Thanks for all your input.

This computer was built by me.. and the case is quite old.  Over the years of projects I've done to it (massive watercooling, overclocking, etc) a lot of it is gone.  

I don't have mini-bays for my hard drives.. one rests on a piece of anti-static bag, and the other rests on top of it (on an antistatic bag too).   I don't have side panels.  I don't have an on button (I rub together wires).  And I don't have a PC Speaker.

Now to questions...  it seems like I'd be better off running to some computer store in china-town and buying a PC speaker...  but I think it would be nice to see if I can put it into the input of my sound card (SB Live! Value).  What would I need to do this?  I'm assuming one of those wires that has jumper-like things on both ends?

Thank you all so much for your help.

-Sam

PS, the program's sound effects DO work, as I played it on my laptop (XP) and everything went as planned.  Here's the game if you want to play: http://homepages.nyu.edu/~sam370/MATIS.COM
0
 
samsonite1023Author Commented:
This one is for hippywarlock:

My note procedure doesn't use int13h (I'm new to assembly, so I don't even know what that does).  It uses the system timer (the 1.19MHz one), which has an AND circuit built directly to the speaker.  When the speaker bit is on, and the timer is on (square wave), the signal to the speaker will oscillate between on and off at the desired frequency the timer is set to, making a tone.

Anyway, it works.

-Sam
0
 
HippyWarlockCommented:
You're right it does work..... but like you I have drives balanced on bits of paper and no system spkr - it went a long time ago, ho hum....

Follow this for int 13


http://www.allensmith.net/Storage/HDDlimit/Int13h.htm

0
 
InteraXCommented:
I have just checked the Creative website and downloaded manuals.
The Creative Sounblaster Live Digital and Value have a PC Speaker connector.
Form the dowloadable manual it says,

PC Speaker Connector
Connects to your motherboards's speaker connector (refer to "Redirecting PC Sounds to External Speakers" in the online User's Guide for Details).

This is a special feature on these cards which should enable you to connect the mobo header to the soundscard and into you external speaker system.

Good luck.
;-)
0
 
HippyWarlockCommented:
I'll try that.
0

Featured Post

 The Evil-ution of Network Security Threats

What are the hacks that forever changed the security industry? To answer that question, we created an exciting new eBook that takes you on a trip through hacking history. It explores the top hacks from the 80s to 2010s, why they mattered, and how the security industry responded.

  • 4
  • 3
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now