Using the internal speaker
-
I need to know how to get sound to come out of my internal speaker. I know that using the Beep command from the Kernel should do it, except it sends it out my sound card to my external speakers. It does this even when I have the power off to the speakers (and power unplugged). I have tried unplugging the speakers from the computer and then I get no sound, so it still wants to use my sound card. Two questions - why is this happening and how can I get the internal speaker to play for me? There is an internal speaker I have another program that uses it. soundmax integrated audio is what I have for a sound card, I think (not my comp, work comp) Thanks
-
I need to know how to get sound to come out of my internal speaker. I know that using the Beep command from the Kernel should do it, except it sends it out my sound card to my external speakers. It does this even when I have the power off to the speakers (and power unplugged). I have tried unplugging the speakers from the computer and then I get no sound, so it still wants to use my sound card. Two questions - why is this happening and how can I get the internal speaker to play for me? There is an internal speaker I have another program that uses it. soundmax integrated audio is what I have for a sound card, I think (not my comp, work comp) Thanks
On Windows 9x if there is an audio device installed and selected for playback Windows will not use the PC speaker (internal one). The beep statement doesn't always use the PC speaker like in QBasic. It's a wrapper for the Beep Windows API, which will use the sound card if possible. NT based systems will use the PC speaker for the Beep API. Why is it this way? Who knows, but it is. If you want to ensure you can use the PC speaker you'll have to do things manually. Fortunately, it's already been done. Look into using the following DLL to help you out... http://www.stormpages.com/bojanjurca/CSamples.htm#Speaker Jeremy L. Falcon "The One Who Said, 'The One Who Said...'"
-
On Windows 9x if there is an audio device installed and selected for playback Windows will not use the PC speaker (internal one). The beep statement doesn't always use the PC speaker like in QBasic. It's a wrapper for the Beep Windows API, which will use the sound card if possible. NT based systems will use the PC speaker for the Beep API. Why is it this way? Who knows, but it is. If you want to ensure you can use the PC speaker you'll have to do things manually. Fortunately, it's already been done. Look into using the following DLL to help you out... http://www.stormpages.com/bojanjurca/CSamples.htm#Speaker Jeremy L. Falcon "The One Who Said, 'The One Who Said...'"
Thx for the help with that. I think it will work. I'm not at the comp to test it on but I will find out in about an hour from now. :) Anyway I think the source coede to the DLL will help me in C++ as well. I've been meaning to learn how to write a DLL, that should help me a great deal. So I thank you two fold for your reply Quinn