|
|
|||||||
| Home | Register | Downloads | FAQ | Members List | Calendar | Arcade | Mark Forums Read |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
-PM to advertise here-
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
|
|
|
| Advertisement | [Remove Advertisement] |
|
|
|
|
|
#2 |
|
Emu author
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
|
|
|
|
|
#3 |
|
-PM to advertise here-
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
|
|
|
|
|
#4 |
|
Emu author
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
|
|
|
|
|
#5 |
|
-PM to advertise here-
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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?
|
|
|
|
|
|
#6 |
|
Emu author
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|