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: 14 2011-11-18 8:26

>>18
Your understanding of the speaker is probably still correct given the PWM explanation, what I meant by that part was to not worry too much about the physical details when choosing how to do the PWM. From the point of view of programming audio waveforms, power delivered to the speaker and what the speaker actually does with it is kinda decoupled, as it will have to do `something' with the power given, including stuff like compensating acceleration and velocity, `store' the power as EMF reflections that send out the indebted power along the other way of the coil movement, just releasing it as heat, etc. (and every speaker will be different in how it handles this anyway, I'm sure 8 ohm PC speakers will vary a lot even within the same batch as its cheap chinese crap).

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