Emuforums.com

Go Back   Emuforums.com > General Discussion > Web development / Programming
Home Register Downloads FAQ Members List Calendar Arcade Mark Forums Read

Reply
 
Thread Tools Display Modes
Old June 30th, 2002, 16:00   #1
Syed Fawad
-PM to advertise here-
 
Syed Fawad's Avatar
 
Join Date: Nov 2001
Location: In an average country of an average planet of the solar system of an average star of an average galaxy of an average cluster. Still not average...
Posts: 8,262
Help needed in C

Actually my cousin need this help. Here is what he wants to know:

How to get output on soundcard through c language i.e linking computer beeps with the speakers in order to amplify it

or rombios interrupts for sound in C language.
__________________

Asus K8N (nForce3)
AMD64 3000+ (754)
768MB DDR 400MHz (PC 3200)
nVidia Geforce 6600GT 128MB (AGP)

Aquamark3 - 53,000

"Good friends mustn't always be together. It is the feeling of oneness when distant that proves a lasting friendship"

Syed Fawad is offline   Reply With Quote

Advertisement [Remove Advertisement]

Old June 30th, 2002, 18:08   #2
Pete Bernert
Emu author
 
Pete Bernert's Avatar
 
Join Date: Apr 2001
Location: Germany
Posts: 874
With the Windows API simply do in C:

MessageBeep(0xFFFFFFFF);



Dunno what else to say, you are very unspecific... 'sounds in C language' can mean everything, more important would be what OS you want to support, what kind of sounds you want to play, etc
Pete Bernert is offline   Reply With Quote

Old July 1st, 2002, 05:36   #3
Syed Fawad
-PM to advertise here-
 
Syed Fawad's Avatar
 
Join Date: Nov 2001
Location: In an average country of an average planet of the solar system of an average star of an average galaxy of an average cluster. Still not average...
Posts: 8,262
Actually I am designing a piano in c language and what i need is to get the output with the speakers. I am using win9x and directly want to call that, i.e without using directx, i do have sound libraries as well,
I am currently using this keyword:

sound (400);

What I am getting are beeps from the pc's internal speaker of 400 frequency. :confused:

Now if I want to produce that beeps from the speaker then what should I do because I want to amplify the sound and with pc's internal speaker i can't do that.

Thanks for your time and help.
__________________

Asus K8N (nForce3)
AMD64 3000+ (754)
768MB DDR 400MHz (PC 3200)
nVidia Geforce 6600GT 128MB (AGP)

Aquamark3 - 53,000

"Good friends mustn't always be together. It is the feeling of oneness when distant that proves a lasting friendship"

Syed Fawad is offline   Reply With Quote

Old July 1st, 2002, 06:29   #4
ammoQ
Emu author
 
ammoQ's Avatar
 
Join Date: Mar 2002
Location: Vienna/Austria/Europe
Posts: 1,168
Itīs not that easy as you think. Every PC since the first one had an internal speaker, so there is a command to make it beep. But there are many different sound cards on the market, different hardware with different features; so you need an API like directX to use them.
__________________
If you think my English is bad, wait till you read my Polish.
ammoQ is offline   Reply With Quote

Old July 1st, 2002, 07:12   #5
Syed Fawad
-PM to advertise here-
 
Syed Fawad's Avatar
 
Join Date: Nov 2001
Location: In an average country of an average planet of the solar system of an average star of an average galaxy of an average cluster. Still not average...
Posts: 8,262
SO u say its better to leave it to Directx then. What should I do then?
__________________

Asus K8N (nForce3)
AMD64 3000+ (754)
768MB DDR 400MHz (PC 3200)
nVidia Geforce 6600GT 128MB (AGP)

Aquamark3 - 53,000

"Good friends mustn't always be together. It is the feeling of oneness when distant that proves a lasting friendship"

Syed Fawad is offline   Reply With Quote

Old July 1st, 2002, 10:09   #6
ammoQ
Emu author
 
ammoQ's Avatar
 
Join Date: Mar 2002
Location: Vienna/Austria/Europe
Posts: 1,168
Get info about how to do it in DirectX. Since I dontīt program DirectX, Iīm sorry I canīt help you further.
__________________
If you think my English is bad, wait till you read my Polish.
ammoQ is offline   Reply With Quote

Old July 1st, 2002, 12:17   #7
Nezzar
NSBQ nut
 
Nezzar's Avatar
 
Join Date: Aug 2001
Location: .de
Posts: 1,208
I don't know much about programming in C (actually I can only make it print "Hello World") but I know the msdn is a great source for such stuff.
__________________
Bred for its skills in magic
Nezzar is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +1. The time now is 07:08.

© 2006 - 2012 Emu Forums | About Emu Forums | Advertisers | Investors | Legal | A member of the Crowdgather Forum Community


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.