Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

C++ sound waveform functions

Status
Not open for further replies.

walters

Advanced Member level 2
Joined
Jun 5, 2005
Messages
599
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,296
Activity points
7,730
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?
 

Under windows you can create your own sounds using waveoutopen, MidiOutOpen() or directX.

There are other API's for playing sounds from files.

>Where do i find these functions and to call them ?
They are documented in MSDN. Sadly MSDN is normal microsoft quality so you usually have to read some tutorials on the web to figure out exactly how to use them.

> Do i have to find the Datasheets to the sound card chips?

Not unless you are programming for DOS.

EDIT: Wrong link
 

So how do u call waveforms and sounds off the soundchips or C++?

How do i use the sound functions and wave function in C++?
 

How do i change the frequency,waveshape,waveform,duration
of the sound chip when programming in C++?

You don't. You apply your sound modifications to your data buffer the chip will be mixing in with (possibly) other data buffers into a final output buffer that is output to speaker or whatever is hooked up to the output line of the card. You canalso give instructions to the OS to change some parameters like data size (8 or 16 or 24? bit), panning, volume, buffer size, sampling rate, stereo/mono etc, and you can also set up an FX chain (flanging, phase, reverb etc.) You do this in DirectSound, part of the DirectX package. Download the DirectX sdk and get to work.
 

Thanks for the information

How do i change the parameters in the data buffer on the soundcard chip?


How do i add a "FX chain" flanging, phase, reverb?
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top