Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

PC speaker

Name: Anonymous 2011-11-17 7:42

I've been reading about outputting PCM audio through the internal PC speaker using "Pulse-width modulation". If I understand correctly, this is acheived by retracting the speaker cone before it has a chance to fully extend. My question is now this: would it be possible, by spending all CPU resources on this task, to keep the speaker cone in its current mid-extension position, by rapidly (as fast as the CPU will allow) toggling the current to it?

Name: Anonymous 2011-11-17 16:57

>>1
Basically, PWM is a common trick in electromechanical, electromagnetic and electroluminescent transducer control to vary power with just one bit of resolution. When the delivery of power is divided in discrete windows, and those windows contain a time dependent switch of full power and no power, the total power per window is the integral of the on `area' of that window's graph. So you don't really need to wonder if it is because of physical inertial limitations of the cone or anything like that, the answer is just varied exertion of electricity into mechanical power into air vibrations. For the purpose of human perception this technique is convincing if the window size is small, hence, a very high sample rate. In audio this should be in the half million Hz range. PWMing of LEDs and LCDs is very common and can be done at 60Hz or less as the eyes are very slow at updates.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List