Audio process from game to speaker

varthshenon

Distinguished
Feb 6, 2012
44
0
18,530
First let me apologize if it's in the wrong section/forum

I've posted this in Unreal site but decided to post here too

How does it work? I mean, what's the process to take to output the sound to speaker?
Is it like, Game -> Directsound -> Sound card -> speaker ?
What data that transfered from game to directsound/anything, and what it do to the audio data?
What's the difference between the process taken with integrated/discrete sound card?
Is it different between game engine?

Well, summary, I want to know the detail of how it works :D
 
Solution
The hardware is controlled or communicated via the software driver.
It is then routed through the direct x suite (direct sound) of the windows operating system.

The card it`s self has two types of chips.

One is called an Analog to digital chip.
It converts and analog signal into a digital signal. zeros and one`s (ADC)

Binary that the computer understands. A microphone is analog for example.

The other chip that is on the Sound card or motherboard sound chip set is.
A digital to analog converter. (DAC)

It turn`s the digital signal of the computer into an analog signal.

Speakers and microphones need and analog signal because of the way they work.

There is a magnet and a copper coil in each the strength of the electricity passed to...
The hardware is controlled or communicated via the software driver.
It is then routed through the direct x suite (direct sound) of the windows operating system.

The card it`s self has two types of chips.

One is called an Analog to digital chip.
It converts and analog signal into a digital signal. zeros and one`s (ADC)

Binary that the computer understands. A microphone is analog for example.

The other chip that is on the Sound card or motherboard sound chip set is.
A digital to analog converter. (DAC)

It turn`s the digital signal of the computer into an analog signal.

Speakers and microphones need and analog signal because of the way they work.

There is a magnet and a copper coil in each the strength of the electricity passed to the coil to move the speaker cone, or the frequency/speed it oscillates a second. The voltage constantly changes of the coil. That causes air to move and produces the sound you hear with your ears.

By pushing air around is how the sounds are produced, from the speaker cones.

A speaker and a microphone are the same.

By talking into a microphone it picks up the vibrations of the air moving over it. and the copper coil with the magnet create an electrical signal, or wave form.

Where the (ADC) of the sound card converts it from analog to digital.

Binary for the computer to understand.

A speaker in reverse.


 
Solution

varthshenon

Distinguished
Feb 6, 2012
44
0
18,530
That's a really great explanation. I never knew any of them :D really big thanks
Actually I need to know the process inside the computer, or how should I say it, the audio itself inside the windows. Like, what data that the game output? PCM/MP3/Something?. How can the sound out from 5.1 channel? Where's the channel mixing happening? And the thing I really need to know is the route/layer the audio pass through. Is it Game -> Directsound -> Sound card -> speaker as I stated in first post? Or something else?
I didn't meant the hardware process :) but it's awesome that I know them.