![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Feb 2006
Posts: 28
Rep Power: 0
![]() |
C++ sound and waveform functions
How do i change the frequency,waveshape,waveform,duration
of the sound chip when programming in C++? Where do i find these functions and to call them ? Do i have to find the Datasheets to the sound card chips? |
|
|
|
|
|
#2 |
|
Programming Guru
![]() Join Date: Jun 2005
Location: elemental plane
Posts: 1,429
Rep Power: 5
![]() |
What OS are you on? One generally uses libraries and drivers.
__________________
"Employ your time in improving yourself by other men's writings, so that you shall gain easily what others have labored hard for." -- Socrates |
|
|
|
|
|
#3 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
First you need to give more specific information. You could be on an Atari, for all we know. You might read the forum's rules/FAQ and a "How to Post a Question" thread. There's a place in the control panel to register your OS, Language, etc. Always good to check a community's standards when you join. Polite, anyway.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#4 |
|
Newbie
Join Date: Feb 2006
Posts: 28
Rep Power: 0
![]() |
Windows 98 or XP how do i use the sound functions and waveform functions ?
what libraries and drivers are for the sound functions and waveform functions? When writing code in C++ how do i use the sound functions and waveform functions? |
|
|
|
|
|
#5 |
|
Game engine designer
Join Date: May 2005
Location: Sweden
Posts: 301
Rep Power: 4
![]() |
I don't exactly get what you mean, but I guess you want to create an application that can play sound files. I should recommend you to take a look at fmod, which is a good sound API that is pretty simple to use. You can get it here http://www.fmod.org/
|
|
|
|
|
|
#6 |
|
Newbie
Join Date: Feb 2006
Posts: 28
Rep Power: 0
![]() |
On the Atari consoles when programming games u have to use the sound and waveform functions to change the frequency,pitch,waveshape,envelope,waveform from the librarys inside the soundcard inside the Atari consoles the soundcard was a microcontroller with sounds built in its the samething when buying a soundcard it has a soundchip how do i trigger the sounds when writing Code in C++ please?
|
|
|
|
|
|
#7 |
|
Newbie
Join Date: Feb 2006
Posts: 28
Rep Power: 0
![]() |
No not playing sound files i want to trigger the soundchips with C++ code
|
|
|
|
|
|
#8 |
|
Professional Programmer
Join Date: Sep 2005
Location: serbia & montenegro
Posts: 484
Rep Power: 4
![]() |
Why do you repeat the question? It has been told already in previous post:
-You must download a sound library ( i.e., fmod ) -You can not do that straight from c++ code |
|
|
|
|
|
#9 |
|
Newbie
Join Date: Feb 2006
Posts: 11
Rep Power: 0
![]() |
Modern operating systems do not allow direct access to the hardware. You can, however, create your own waveforms and then use a library that will play raw sound data for you. I know that SDL allows this. (www.libsdl.org)
__________________
Canonical Books: The best programming books around. |
|
|
|
|
|
#10 | |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Quote:
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|