Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Feb 13th, 2006, 2:46 PM   #1
Markphaser
Newbie
 
Join Date: Feb 2006
Posts: 28
Rep Power: 0 Markphaser is an unknown quantity at this point
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?
Markphaser is offline   Reply With Quote
Old Feb 13th, 2006, 2:56 PM   #2
nnxion
Programming Guru
 
nnxion's Avatar
 
Join Date: Jun 2005
Location: elemental plane
Posts: 1,429
Rep Power: 5 nnxion is on a distinguished road
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
nnxion is offline   Reply With Quote
Old Feb 13th, 2006, 2:57 PM   #3
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
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
DaWei is offline   Reply With Quote
Old Feb 13th, 2006, 3:10 PM   #4
Markphaser
Newbie
 
Join Date: Feb 2006
Posts: 28
Rep Power: 0 Markphaser is an unknown quantity at this point
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?
Markphaser is offline   Reply With Quote
Old Feb 13th, 2006, 3:18 PM   #5
Klarre
Game engine designer
 
Klarre's Avatar
 
Join Date: May 2005
Location: Sweden
Posts: 301
Rep Power: 4 Klarre is on a distinguished road
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/
Klarre is offline   Reply With Quote
Old Feb 13th, 2006, 3:26 PM   #6
Markphaser
Newbie
 
Join Date: Feb 2006
Posts: 28
Rep Power: 0 Markphaser is an unknown quantity at this point
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?
Markphaser is offline   Reply With Quote
Old Feb 13th, 2006, 3:26 PM   #7
Markphaser
Newbie
 
Join Date: Feb 2006
Posts: 28
Rep Power: 0 Markphaser is an unknown quantity at this point
No not playing sound files i want to trigger the soundchips with C++ code
Markphaser is offline   Reply With Quote
Old Feb 14th, 2006, 4:10 AM   #8
ivan
Professional Programmer
 
ivan's Avatar
 
Join Date: Sep 2005
Location: serbia & montenegro
Posts: 484
Rep Power: 4 ivan is on a distinguished road
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
ivan is offline   Reply With Quote
Old Feb 14th, 2006, 10:00 AM   #9
babbling
Newbie
 
Join Date: Feb 2006
Posts: 11
Rep Power: 0 babbling is on a distinguished road
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)
babbling is offline   Reply With Quote
Old Feb 14th, 2006, 10:44 AM   #10
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Quote:
Modern operating systems do not allow direct access to the hardware.
Not strictly true, you just have to jump through the right hoops. It's easier to obtain other-party stuff or OEM stuff that has already made the jump.
__________________
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
DaWei is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 11:04 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC